GEN/deripand [ Modules ]

[ Top ] [ Modules ]

FUNCTION

Deripand realizes expanding of the derivation compaction of the morphological dictionary. The pattern inflection is also implemented here.


GEN/morfo_deripand_execute_rule [ Functions ]

[ Top ] [ Functions ]

NAME

morfo_deripand_execute_rule -- executes a rule on prepared data

SYNOPSIS

63  *  morfo_deripand_execute_rule(rule);

FUNCTION

The function derivates new lemma, root and referer from input data according to specified rule.

The derived lemma is stored before the derived root.

The referer is created only if rule says do to so. Otherwise its fields in RS structure are reseted.

ARGUMENTS

r -- rule to use

INPUTS

Input data are specified through the global variable rule_state. The body was written in the way to make modification from a global state to an argument as easy as possible.

The abbreviation RS refers to the rule state.

RS.dst -- a growing stack to store derived strings

RS.df -- derivations file RS.root -- root to derivate from RS.lemma -- lemma to derivate from RS.root_len -- precomputed strlen(RS.root)

OUTPUT

RS.lemma_out_len -- derived lemma lenght RS.lemma_out -- derived lemma reference into RS.dst RS.root_out_len -- derived root lenght RS.root_out -- derived root reference into RS.dst RS.referer_out_len -- derived referer lenght RS.referer_out -- derived referer reference into RS.dst