BSD Ports

textproc/rubygem-whatlanguage 1.0.6 DragonFly

Natural language detection for text samples

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
rubygems, textproc
Package size
2778.0 KiB, 4919.8 KiB installed

Description

WhatLanguage, written in pure-Ruby, detects the human language of supplied text. It uses Bloom filters, so it is fast and memory efficient. It works well on text of over 10 words in length (e.g. blog posts or comments) and very poorly on short or Twitter-esque text.

It works with Arabic, Dutch, English, Farsi, Finnish, French, German, Greek, Hebrew, Hungarian, Italian, Korean, Norwegian, Pinyin, Polish, Portuguese, Russian, Spanish, and Swedish out of the box.

In the other systems

SystemPortVersion
DragonFlytextproc/rubygem-whatlanguage1.0.6
FreeBSDtextproc/rubygem-whatlanguage2.1.0

Install

Binary package:

pkg install rubygem-whatlanguage

From DPorts:

cd /usr/dports/textproc/rubygem-whatlanguage && make install clean

Dependencies

Run dependencies 2

No port depends on this one.