Socket
Book a DemoInstallSign in
Socket

language_detector

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

language_detector

0.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

== N-Gram Language Detection in Ruby

For technical details about language detection, I recommend this paper:

  • http://www.sfs.uni-tuebingen.de/iscl/Theses/kranig.pdf

== Installation sudo gem sources -a http://gems.github.com (you only have to do this once) sudo gem install igrigorik-language_detector

== Usage require 'language_detector'

using generated model (built from scratch)

d = LanguageDetector.new p d.detect('this text is in English')

using textcat n-gram model

d = LanguageDetector.new('tc') p d.detect('this text is in English')

== Thanks

FAQs

Package last updated on 14 Mar 2010

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.