BSD Ports

textproc/p5-Text-Language-Guess 0.02_1 DragonFly

Trained module to guess a document's language

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
Categories
perl5, textproc
Package size
7.7 KiB, 12.8 KiB installed

Description

Text::Language::Guess guesses a document's language. Its implementation is simple: Using "Text::ExtractWords" and "Lingua::StopWords" from CPAN, it determines how many of the known stopwords the document contains for each language supported by "Lingua::StopWords".

Each word in the document recognized as stopword of a particular language scores one point for this language.

The "language_guess()" function takes a document as a parameter and returns the abbreviation of the language that it is most likely written in.

In the other systems

SystemPortVersion
DragonFlytextproc/p5-Text-Language-Guess0.02_1
FreeBSDtextproc/p5-Text-Language-Guess0.02_1
HardenedBSDtextproc/p5-Text-Language-Guess0.02_1
GhostBSDtextproc/p5-Text-Language-Guess0.02_1

Install

Binary package:

pkg install p5-Text-Language-Guess

From DPorts:

cd /usr/dports/textproc/p5-Text-Language-Guess && make install clean

Dependencies

Run dependencies 4

No port depends on this one.