🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

basic-language-detector

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-language-detector

Detects language by inspecting characters

1.0.4
latest
Source
npm
Version published
Weekly downloads
5
-28.57%
Maintainers
1
Weekly downloads
 
Created
Source

language-detector

To detect language by inspecting characters in text input.

INSTALLATION:

  • npm install basic-language-detector
  • Code Snippet:
const basicLangDetector = require('basic-language-detector');
const language = basicLangDetector.getLanguage('Hello');
console.log("Mmm.. looks like you used ", language);

USAGE EXAMPLES:

  • In Devanagari:
node index.js जागृती
Hindi | Marathi | Sanskrit | Devanagari
  • In English:
node index.js Jagrutee
English | Spanish | Basic Latin
  • In Gujarati:
node index.js જાગૃતી
Gujarati
  • In Tamil:
node index.js ஜஃருடீ
Tamil
  • In Telugu:
node index.js జాగ్రుతే
Telugu
  • In Malayalam:
node index.js ജാഗ്രത
Malayalam
  • In Japanese:
node index.js じゃgるてえ
Japanese | Hiragana
  • In Hebrew:
node index.js ונביאים  
Hebrew
  • In Arabic:
node index.js ثقففغب
Arabic
  • In Bengali:
node index.js কখগঘঘঘঘ
Bengali

SUPPORTED LANGUAGES:

  • English | Spanish | French (Basic Latin)
  • Hindi | Marathi | Sanskrit (Devanagari)
  • Malayalam
  • Tamil
  • Telugu
  • Gujarati
  • Hebrew
  • Japanese (Hiragana)
  • Armenian
  • Arabic
  • Syriac
  • Bengali
  • Oriya
  • Kannada
  • Myanmar
  • Georgian
  • Cherokee and many more..

Keywords

language

FAQs

Package last updated on 14 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts