wooorm / franc

Natural language detection
https://wooorm.com/franc/
MIT License
4.07k stars 175 forks source link

Support ISO 639-1 codes alongside ISO 639-3 #19

Closed danivaan closed 9 years ago

danivaan commented 9 years ago

The two-letter ISO 639-1 codes are quite widely used, for example in MongoDB's text index. Are there plans for adding support for this language code variant in the future?

Mapping between the two is trivial as a post-process, but creates unnecessary clutter whereas getting the desired language code variant straight from Franc would be very neat and tidy.

wooorm commented 9 years ago

No, there are no plans, because many supported languages do not have a 639-1 code.

P.S. See GH-10.