Module to make crude guess as to language family of text
- Perl 94.1%
- Roff 5.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| bin | ||
| dist | ||
| lib/Lingua/Guess | ||
| test | ||
| LICENSE | ||
| Makefile.PL | ||
| README.md | ||
NAME
Lingua::Guess::Simple - Make a crude guess at the predominant language
VERSION
version 1.0
SYNOPSIS
$guess = Lingua::Guess::Simple->new;
$guess->analyse_string( 'some string or other' );
$guess->analyse_string( 'add some more data to the analysis' );
# return a short string of the likely language group
$lang = $guess->likely_language;
DESCRIPTION
Lingua::Guess::Simple is a module which analyses the characters in submitted strings and returns a crude guess as to the predominant language group in use based on code page.
METHODS
-
analyse_string
Analyses the provide string and updates the codepages counts for the characters therein.
-
likely_language
Returns the likely language group as a string. Currently this means one of the four values
- ascii
- euro
- ru
- han
COMPATIBILITY
Lingua::Guess::Simplerequiresutf8&Encode.
AUTHOR
Bernard Quatermass toolsmith@quatermass.co.uk
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Bernard Quatermass.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.