Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Rubygems
  • Socket score

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc