Comments (4)
Hi @Bramzor.
That’s not possible. See GH-19 for more details.
from franc.
Aren't 639-3 more or less dialects? I always used "locales" before like en_US etc which is common, those are never 3 characters long. So it gets a lot more complex if 639-3 is used instead of 639-1. I understand your reasoning why it is complex to do as the current version is created for 639-3, but I would prefer a way to easily fix this in your code instead of forking the code. In the end 639-1 can be seen as a lower resolution of the 639-3 table? So it should be possible to go from 639-3 to 639-1. Other way wouldn't be possible.
Would it be ok to just introduce a new function inside franc that in worst case, uses a different lib to guess the 639-1 version?
I think it makes sense as there are already multiple people that raised the question before :-)
from franc.
We could use the following library: https://github.com/adlawson/nodejs-langs
langs.where("3", "kor")["1"]
Would translate ISO 639-3 to 639-1
from franc.
Aren't 639-3 more or less dialects?
No.
I always used "locales" before like en_US etc which is common, those are never 3 characters long.
Those are called BCP-47 tags, in this case with a language part (en
, which may also be ISO 639-3) and a region indicator (US
).
So it gets a lot more complex if 639-3 is used instead of 639-1. I understand your reasoning why it is complex to do as the current version is created for 639-3, but I would prefer a way to easily fix this in your code instead of forking the code.
The way to ease this pain is by continuing work on GH-30. Feel free to start work on that if you’d like this feature.
In the end 639-1 can be seen as a lower resolution of the 639-3 table? So it should be possible to go from 639-3 to 639-1. Other way wouldn't be possible.
Correct! Similar to ASCII vs Unicode!
from franc.
Related Issues (20)
- Improved accuracy for small documents HOT 19
- Regular Expression Denial of Service in trim HOT 1
- Make available for commonJs HOT 2
- How to generate data.js in franc packages HOT 2
- Package update for 5.0.0 HOT 1
- issue
- Link in README broken HOT 1
- Problem to detect language HOT 5
- err "The requested module does not provide an export named 'default'" HOT 1
- Not working for single words like "Hello" HOT 1
- How can I do the same thing on html? HOT 1
- BCI language code
- Language detection error! HOT 3
- Norwegian detected as Deutch HOT 3
- Make a test
- Adding a language HOT 3
- "only" parameter returns always score = 1 HOT 3
- How can I install normally? HOT 1
- npm i franc results in 1 high severity vulnerability upon install HOT 2
- the official example of `only` not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from franc.