Module to make crude guess as to language family of text
  • Perl 94.1%
  • Roff 5.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-06-23 16:43:41 +01:00
bin Initial Checkin 2017-09-01 15:41:09 +01:00
dist bump version and links 2024-06-23 16:43:41 +01:00
lib/Lingua/Guess bump version and links 2024-06-23 16:43:41 +01:00
test Initial Checkin 2017-09-01 15:41:09 +01:00
LICENSE Licence & Makefile.PL 2017-09-25 20:29:33 +01:00
Makefile.PL bump version and links 2024-06-23 16:43:41 +01:00
README.md Initial Checkin 2017-09-01 15:41:09 +01:00

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::Simple requires utf8 & 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.