Socket
Socket
Sign inDemoInstall

basic-language-detector

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    basic-language-detector

Detects language by inspecting characters


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
16.7 kB
Created
Weekly downloads
 

Readme

Source

language-detector

To detect language by inspecting characters in text input.

INSTALLATION:

  1. npm install basic-language-detector
  2. 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

FAQs

Last updated on 14 Jan 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc