lemma
lemma [$switch,[word1,word2,...],$type]
Send a list of words for lemmatization. Returns the wordlist as a list with
each member pointing to a list of possible lemmata, or to nothing if no lemmata
are found. If optional $type is supplied, each lemma will point to a list of
possible grammatical analyses of the supplied form, when this feature is
available for a language (Latin,Greek)
Input is a switch where $switch is one of
- "-LA" (Latin)
- "-IT" (Italian)
- "-NL" (Dutch)
- "-DE" (German)
- "-FR" (French)
- "-GRC" (Ancient Greek)
a reference to a list of words, such as
and optional $type, where $type is one of
Some typical calls to the "lemma" method would thus be:
- lemma,"-GRC",['esti/n','lu/w'],full
- lemma,"-DE",[Fuchs,Igel]
Return values are:
{word1 =>[lemma1,...], word2=>[lemma1, ...],...}
or, if $type=full is supplied,
{word1 =>[ lemma1 =>[ grammAnal1, grammAnal2], ...], word2 => [ lemma1 => [
grammAnal1, grammAnal2 ] ...], ...}
lemma.supported
lemma.supported
No parameters. Returns list of supported languages with switches and encodings to be used
for each language with the "lemma" method.
Languages are indicated by language codes as defined
in the
iso639-2 standard.
The following data structure will be returned
'la' => {
'enc' => 'unicode',
'switch' => '-LA'
},
'nl' => {
'enc' => 'unicode',
'switch' => '-NL'
},
'it' => {
'enc' => 'Perseus',
'switch' => '-FR'
},
'grc' => {
'enc' => 'beta code',
'switch' => '-GRC'
},
'de' => {
'enc' => 'unicode',
'switch' => '-DE'
},
'fr' => {
'enc' => 'Latin1',
'switch' => '-FR'
}
};
lemma.help
lemma.help
The uri of this document.