| Lingua-PT-Conjugate documentation | view source | Contained in the Lingua-PT-Conjugate distribution. |
$verb_forms = unconj( [-a] , $string )
@res = string_entries( ['l'], \%verb_forms )@res = list_entries( ['l'], \%verb_forms )Lingua::PT::UnConjugate - Recognition of the conjugated forms of portuguese verbs.
This module provides functions for the recognition of the conjugated forms of portuguese verbs.
Composed tenses are not recognized. The verb list contains many non-verbs that I have not removed yet.
$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".
The first argument may an option :
@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.
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.
| Lingua-PT-Conjugate documentation | view source | Contained in the Lingua-PT-Conjugate distribution. |