Etienne Grossmann > Lingua-PT-Conjugate-1.18 > Lingua::PT::UnConjugate

Download:
Lingua-PT-Conjugate-1.18.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Lingua::PT::UnConjugate - Recognition of the conjugated forms of portuguese verbs.

DESCRIPTION ^

This module provides functions for the recognition of the conjugated forms of portuguese verbs.

BUGS ^

Composed tenses are not recognized. The verb list contains many non-verbs that I have not removed yet.

SYNOPSIS ^

$verb_forms = unconj( [-a] , $string ) ^

Attempts to recognize a conjugated form of a Portuguese verb, and returns the result as a reference to hash : if the element

    C<$verb_forms-E<gt>{$infinitive}-E<gt>{$tense}-E<gt>[$person]>

is true, then the conjugation of the verb "$infinitive" at the tense "$tense" and the person "$person" should yield "$string".

OPTIONS

The first argument may an option :

-a : Try to match accentuation errors.
-A : If no match is found, try matching with option -a.

@res = string_entries( ['l'], \%verb_forms ) ^

Convert a hash of recognized forms into a list of strings "$verb, $tense, $person".

If the first argument is a 'l', then long forms of verb names will be used.

@res = list_entries( ['l'], \%verb_forms ) ^

Convert a hash of recognized forms into a list of triplets [ $verb, $tense, $person ].

If the first argument is a 'l', then long forms of verb names will be used.

SEE ALSO : unconj, conjug, treinar. ^

AUTHOR Etienne Grossmann, 1999 [etienne@isr.ist.utl.pt] ^

CREDITS ^

Thanks to Soraia Almeida (salmeida@logos.it) from the Logos project (http://www.logos.it) and Ulisses Pinto and José João Almeida from Projecto Natura (http://shiva.di.uminho.pt/~jj/pln) who made Ispell available.

A big part of the list of verb infinitives comes from files used in Ispell (http://shiva.di.uminho.pt/~jj/pln) and in Logos (http://www.verba.org, http://www.logos.it). these projects. Some verbs were removed and others added by hand.

syntax highlighting: