Lingua::PT::UnConjugate - Recognition of the conjugated forms of


Lingua-PT-Conjugate documentation  | view source Contained in the Lingua-PT-Conjugate distribution.

Index


NAME

Top

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

DESCRIPTION

Top

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

BUGS

Top

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

SYNOPSIS

Top

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

Top

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 )

Top

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 )

Top

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.

Top

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

Top

CREDITS

Top

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.