Use
- Clone the repository
- Run npm install to download all the required dependencies
Some Examples:
-
$ node index.js "bonjour, je suis Charle"
Our Best Language Guess is French
-
$ node index.js "lakgdts"
Sorry, Couldn't guess its language
-
$ node index.js 'Alle menslike wesens word vry'
Our Best Language Guess is Afrikaans
-
$ node index.js "এটি একটি ভাষা একক IBM স্ক্রিপ্ট"
Our Best Language Guess is Bengali
-
$ node index.js "Alle menneske er fødde til fridom"
Our Best Language Guess is Norwegian Nynorsk
-
$ node index.js "This is the best language"
Our Best Language Guess is English
-
$ node index.js "यह टमाटर मीठा है"
Our Best Language Guess is Hindi
-
$ node index.js "Mango is king of fruits"
Our Best Language Guess is English
-
$ node index.js "fhwjedfkw cvah zzzzz"
Sorry, Couldn't guess its language
It also has color coding (green and red) for ease of understanding whether the language could be guessed or not.
Modules Used :
https://github.com/wooorm/franc
https://github.com/adlawson/nodejs-langs
https://www.npmjs.com/package/colors