Text_LanguageDetect
[ class tree: Text_LanguageDetect ] [ index: Text_LanguageDetect ] [ all elements ]

Element index for package Text_LanguageDetect

[ a ] [ b ] [ c ] [ d ] [ e ] [ g ] [ i ] [ l ] [ m ] [ n ] [ o ] [ p ] [ s ] [ t ] [ u ] [ v ] [ _ ]

_

$_clusters
in file LanguageDetect.php, variable Text_LanguageDetect::$_clusters
    Stores the result of the clustering operation
$_compile_trigram
in file Parser.php, variable Text_LanguageDetect_Parser::$_compile_trigram
    Whether the parser should compile trigrams
$_compile_unicode
in file Parser.php, variable Text_LanguageDetect_Parser::$_compile_unicode
    Whether the parser should compile the unicode ranges
$_data_dir
in file LanguageDetect.php, variable Text_LanguageDetect::$_data_dir
    The data directory
$_db_filename
in file LanguageDetect.php, variable Text_LanguageDetect::$_db_filename
    The filename that stores the trigram data for the detector
$_lang_db
in file LanguageDetect.php, variable Text_LanguageDetect::$_lang_db
    The trigram data for comparison
$_max_score
in file LanguageDetect.php, variable Text_LanguageDetect::$_max_score
    The maximum possible score.
$_name_mode
in file LanguageDetect.php, variable Text_LanguageDetect::$_name_mode
    Which type of "language names" are accepted and returned:
$_perl_compatible
in file LanguageDetect.php, variable Text_LanguageDetect::$_perl_compatible
    Whether or not to simulate perl's Language::Guess exactly
$_string
in file Parser.php, variable Text_LanguageDetect_Parser::$_string
    The piece of text being parsed
$_threshold
in file LanguageDetect.php, variable Text_LanguageDetect::$_threshold
    The size of the trigram data arrays
$_trigrams
in file Parser.php, variable Text_LanguageDetect_Parser::$_trigrams
    Stores the trigram frequencies of the sample
$_trigram_pad_start
in file Parser.php, variable Text_LanguageDetect_Parser::$_trigram_pad_start
    Whether the trigram parser should pad the beginning of the string
$_trigram_ranks
in file Parser.php, variable Text_LanguageDetect_Parser::$_trigram_ranks
    Stores the trigram ranks of the sample
$_unicode_blocks
in file Parser.php, variable Text_LanguageDetect_Parser::$_unicode_blocks
    Stores the unicode blocks of the sample
$_unicode_db_filename
in file LanguageDetect.php, variable Text_LanguageDetect::$_unicode_db_filename
    The filename that stores the unicode block definitions
$_unicode_map
in file LanguageDetect.php, variable Text_LanguageDetect::$_unicode_map
    Stores the map of the trigram data to unicode characters
$_unicode_skip_symbols
in file Parser.php, variable Text_LanguageDetect_Parser::$_unicode_skip_symbols
    Whether the unicode parser should skip non-alphabetical ascii chars
$_use_unicode_narrowing
in file LanguageDetect.php, variable Text_LanguageDetect::$_use_unicode_narrowing
    Whether to use the unicode block detection to speed up processing
_arr_rank
in file LanguageDetect.php, method Text_LanguageDetect::_arr_rank()
    Converts a set of trigrams from frequencies to ranks
_bub_sort
in file LanguageDetect.php, method Text_LanguageDetect::_bub_sort()
    Sorts an array by value breaking ties alphabetically
_checkTrigram
in file LanguageDetect.php, method Text_LanguageDetect::_checkTrigram()
    Checks if this object is ready to detect languages
_convertFromNameMode
in file LanguageDetect.php, method Text_LanguageDetect::_convertFromNameMode()
    Converts an $language input parameter from the configured mode to the language name that is used internally.
_convertToNameMode
in file LanguageDetect.php, method Text_LanguageDetect::_convertToNameMode()
    Converts an $language output parameter from the language name that is used internally to the configured mode.
_distance
in file LanguageDetect.php, method Text_LanguageDetect::_distance()
    Calculates a linear rank-order distance statistic between two sets of ranked trigrams
_get_data_loc
in file LanguageDetect.php, method Text_LanguageDetect::_get_data_loc()
    Returns the path to the location of the database
_next_char
in file LanguageDetect.php, method Text_LanguageDetect::_next_char()
    UTF8-safe fast character iterator
_normalize_score
in file LanguageDetect.php, method Text_LanguageDetect::_normalize_score()
    Normalizes the score returned by _distance()
_readdb
in file LanguageDetect.php, method Text_LanguageDetect::_readdb()
    Loads the language trigram database from filename
_read_unicode_block_db
in file LanguageDetect.php, method Text_LanguageDetect::_read_unicode_block_db()
    Brings up the unicode block database
_sort_func
in file LanguageDetect.php, method Text_LanguageDetect::_sort_func()
    Sort function used by bubble sort
_trigram
in file LanguageDetect.php, method Text_LanguageDetect::_trigram()
    Converts a piece of text into trigrams
_unicode_block_name
in file LanguageDetect.php, method Text_LanguageDetect::_unicode_block_name()
    Searches the unicode block database
_utf8char2unicode
in file LanguageDetect.php, method Text_LanguageDetect::_utf8char2unicode()
    Returns the unicode value of a utf8 char
__construct
in file Parser.php, method Text_LanguageDetect_Parser::__construct()
    Constructor
__construct
in file LanguageDetect.php, method Text_LanguageDetect::__construct()
    Constructor
top

a

analyze
in file Parser.php, method Text_LanguageDetect_Parser::analyze()
    Executes the parsing operation
top

b

BLOCK_DETECTION
in file Exception.php, class constant Text_LanguageDetect_Exception::BLOCK_DETECTION
    Error during block detection
top

c

$code2ToName
in file ISO639.php, variable Text_LanguageDetect_ISO639::$code2ToName
    Maps ISO 639-1 2-letter language codes to the language names in the language database
$code3ToName
in file ISO639.php, variable Text_LanguageDetect_ISO639::$code3ToName
    Maps ISO 639-2 3-letter language codes to the language names in the language database.
clusteredSearch
in file LanguageDetect.php, method Text_LanguageDetect::clusteredSearch()
    Perform an intelligent detection based on clusterLanguages()
clusterLanguages
in file LanguageDetect.php, method Text_LanguageDetect::clusterLanguages()
    Cluster known languages according to languageSimilarity()
code2ToName
in file ISO639.php, method Text_LanguageDetect_ISO639::code2ToName()
    Returns the language name for the given 2-letter ISO 639-1 code.
code3ToName
in file ISO639.php, method Text_LanguageDetect_ISO639::code3ToName()
    Returns the language name for the given 3-letter ISO 639-2 code.
confidence.php
procedural page confidence.php
top

d

DB_EMPTY
in file Exception.php, class constant Text_LanguageDetect_Exception::DB_EMPTY
    Database file is empty
DB_NOT_ARRAY
in file Exception.php, class constant Text_LanguageDetect_Exception::DB_NOT_ARRAY
    Database contents is not a PHP array
DB_NOT_FOUND
in file Exception.php, class constant Text_LanguageDetect_Exception::DB_NOT_FOUND
    Database file could not be found
DB_NOT_READABLE
in file Exception.php, class constant Text_LanguageDetect_Exception::DB_NOT_READABLE
    Database file found, but not readable
detect
in file LanguageDetect.php, method Text_LanguageDetect::detect()
    Detects the closeness of a sample of text to the known languages
detectConfidence
in file LanguageDetect.php, method Text_LanguageDetect::detectConfidence()
    Returns an array containing the most similar language and a confidence rating
detectSimple
in file LanguageDetect.php, method Text_LanguageDetect::detectSimple()
    Returns only the most similar language to the text sample
detectUnicodeBlocks
in file LanguageDetect.php, method Text_LanguageDetect::detectUnicodeBlocks()
    Returns the distribution of unicode blocks in a given utf8 string
top

e

example_clui.php
procedural page example_clui.php
example_web.php
procedural page example_web.php
Exception.php
procedural page Exception.php
top

g

getLanguageCount
in file LanguageDetect.php, method Text_LanguageDetect::getLanguageCount()
    Returns the number of languages that this object can detect
getLanguages
in file LanguageDetect.php, method Text_LanguageDetect::getLanguages()
    Returns the list of detectable languages
getTrigramFreqs
in file Parser.php, method Text_LanguageDetect_Parser::getTrigramFreqs()
    Return the trigram freqency table
getTrigramRanks
in file Parser.php, method Text_LanguageDetect_Parser::getTrigramRanks()
    Returns the trigram ranks for the text sample
getUnicodeBlocks
in file Parser.php, method Text_LanguageDetect_Parser::getUnicodeBlocks()
    Returns the array of unicode blocks
top

i

INVALID_CHAR
in file Exception.php, class constant Text_LanguageDetect_Exception::INVALID_CHAR
    Character in parameter is invalid
iso.php
procedural page iso.php
ISO639.php
procedural page ISO639.php
top

l

languageExists
in file LanguageDetect.php, method Text_LanguageDetect::languageExists()
    Checks if the language with the given name exists in the database
languageSimilarity
in file LanguageDetect.php, method Text_LanguageDetect::languageSimilarity()
    Calculate the similarities between the language models
languages.php
procedural page languages.php
LanguageDetect.php
procedural page LanguageDetect.php
top

m

MAGIC_QUOTES
in file Exception.php, class constant Text_LanguageDetect_Exception::MAGIC_QUOTES
    Magic quotes are activated
top

n

$nameToCode2
in file ISO639.php, variable Text_LanguageDetect_ISO639::$nameToCode2
    Maps all language names from the language database to the ISO 639-1 2-letter language code.
$nameToCode3
in file ISO639.php, variable Text_LanguageDetect_ISO639::$nameToCode3
    Maps all language names from the language database to the ISO 639-2 3-letter language code.
nameToCode2
in file ISO639.php, method Text_LanguageDetect_ISO639::nameToCode2()
    Returns the 2-letter ISO 639-1 code for the given language name.
nameToCode3
in file ISO639.php, method Text_LanguageDetect_ISO639::nameToCode3()
    Returns the 3-letter ISO 639-2 code for the given language name.
NO_HIGHEST_KEY
in file Exception.php, class constant Text_LanguageDetect_Exception::NO_HIGHEST_KEY
    Error while clustering languages
top

o

omitLanguages
in file LanguageDetect.php, method Text_LanguageDetect::omitLanguages()
    Omits languages
top

p

PARAM_TYPE
in file Exception.php, class constant Text_LanguageDetect_Exception::PARAM_TYPE
    Parameter of invalid type passed to method
prepareTrigram
in file Parser.php, method Text_LanguageDetect_Parser::prepareTrigram()
    Turn on/off trigram counting
prepareUnicode
in file Parser.php, method Text_LanguageDetect_Parser::prepareUnicode()
    Turn on/off unicode block counting
Parser.php
procedural page Parser.php
top

s

setNameMode
in file LanguageDetect.php, method Text_LanguageDetect::setNameMode()
    Sets the way how language names are accepted and returned.
setPadStart
in file Parser.php, method Text_LanguageDetect_Parser::setPadStart()
    Turn on/off padding the beginning of the sample string
setPerlCompatible
in file LanguageDetect.php, method Text_LanguageDetect::setPerlCompatible()
    Make this object behave like Language::Guess
setUnicodeSkipSymbols
in file Parser.php, method Text_LanguageDetect_Parser::setUnicodeSkipSymbols()
    Should the unicode block counter skip non-alphabetical ascii chars?
simple.php
procedural page simple.php
top

t

Text_LanguageDetect
in file LanguageDetect.php, class Text_LanguageDetect
    Detects the language of a given piece of text.
Text_LanguageDetect_Exception
in file Exception.php, class Text_LanguageDetect_Exception
    Part of the PEAR language detection package
Text_LanguageDetect_ISO639
in file ISO639.php, class Text_LanguageDetect_ISO639
    Provides a mapping between the languages from lang.dat and the ISO 639-1 and ISO-639-2 codes.
Text_LanguageDetect_Parser
in file Parser.php, method Text_LanguageDetect_Parser::Text_LanguageDetect_Parser()
    PHP 4 constructor for backwards compatibility.
Text_LanguageDetect_Parser
in file Parser.php, class Text_LanguageDetect_Parser
    This class represents a text sample to be parsed.
top

u

unicodeBlockName
in file LanguageDetect.php, method Text_LanguageDetect::unicodeBlockName()
    Returns the block name for a given unicode value
UNKNOWN_LANGUAGE
in file Exception.php, class constant Text_LanguageDetect_Exception::UNKNOWN_LANGUAGE
    Language is not in the database
useUnicodeBlocks
in file LanguageDetect.php, method Text_LanguageDetect::useUnicodeBlocks()
    Whether to use unicode block ranges in detection
utf8strlen
in file LanguageDetect.php, method Text_LanguageDetect::utf8strlen()
    UTF8-safe strlen()
top

v

validateString
in file Parser.php, method Text_LanguageDetect_Parser::validateString()
    Returns true if a string is suitable for parsing
top

Documentation generated on Thu, 02 Mar 2017 16:30:02 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.