richtr / guessLanguage.js

A natural language detection library based on trigram statistical analysis for Node.js and the Web.
http://richtr.github.com/guessLanguage.js/
211 stars 39 forks source link

Lack a list of supported languages in the README file #2

Open clemsos opened 11 years ago

clemsos commented 11 years ago

It will be useful to have such a list at a glance. Thank you very much for the good job :)

PlNG commented 11 years ago

At quick glance of _languageData.js, the models object contains, according to Object.keys(models).length 62 languages. I dumped it through my language code database. Klingon was probably the biggest out of the blue appearance. Awesome that this supports that. I'll submit a pull request on the ReadMe.md file shortly, and a slight change to models to make it language tag parsable on the portuguese codes.

Afrikaans Arabic Azerbaijani Bulgarian Catalan, Valencian Cebuano Czech Welsh Danish German English Spanish, Castilian Estonian Basque Persian Finnish French Hausa Hawaiian Hindi Croatian Hungarian Indonesian Icelandic Italian Kazakh Kirghiz, Kyrgyz Latin Lithuanian Latvian Macedonian Mongolian Norwegian Bokmål Nepali Dutch, Flemish South Ndebele Pedi, Northern Sotho, Sepedi Polish Pushto, Pashto Portuguese Portuguese (Brazilian) Portuguese (Portugal) Romanian, Moldavian, Moldovan Russian Slovak Slovenian Somali Albanian Serbian Swati Southern Sotho Swedish Swahili (macrolanguage) Tagalog Klingon, tlhIngan-Hol Tswana Turkish Tsonga Ukrainian Urdu Uzbek Venda Vietnamese Xhosa Zulu

richtr commented 11 years ago

Actually, the library supports many more languages (~100). A full list of languages will be added to the README via pull request https://github.com/richtr/guessLanguage.js/pull/5.

Thanks @PING!