Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

ffpriv_basic_cases.c File Reference

Implements the basic case inflection functions defined in ffpriv_basic_cases.h. More...

#include "ffpriv_basic_cases.h"
#include "ffpriv_genitive_stem.h"
#include "ffpriv_partitive_stem.h"
#include "ffpriv_plural_stem.h"
#include "ffpriv_ie_vowel_change.h"
#include "ffutil.h"
#include "ffregex.h"

Go to the source code of this file.

Functions

ffint32 ffpriv_nominative_singular (ffword *word)
 Transforms the given word to its nominative singular form (i.e.
ffint32 ffpriv_nominative_plural (ffword *word)
 Transforms the given word to its nominative plural form.
ffint32 ffpriv_genitive_singular (ffword *word)
 Transforms the given word to its genitive singular form.
ffint32 ffpriv_genitive_plural (ffword *word)
 Transforms the given word to its genitive plural form.


Detailed Description

Implements the basic case inflection functions defined in ffpriv_basic_cases.h.

Definition in file ffpriv_basic_cases.c.


Function Documentation

ffint32 ffpriv_genitive_plural ffword word  ) 
 

Transforms the given word to its genitive plural form.

Todo:
set rel [relic_consonant $word gen] if { $rel != "" } { return ${case}den }

Todo:
Check this regex

Todo:
Consider writing ffstring_tail_equals_many

Todo:
Add "n" or "en" if nothing else fits?

Definition at line 70 of file ffpriv_basic_cases.c.

References ffword::data, ffpriv_is_vowel(), ffpriv_partitive_stem(), ffpriv_plural_stem(), ffregex_match(), ffstring_append(), ffstring_compare_tail(), ffstring_dfe(), ffstring_last_equals(), ffword_copy(), and ffword_delete().

Referenced by ff_genitive_plural().

ffint32 ffpriv_genitive_singular ffword word  ) 
 

Transforms the given word to its genitive singular form.

Parameters:
word The word in its basic form
Returns:
0 on success, -1 on error.

Definition at line 56 of file ffpriv_basic_cases.c.

References ffpriv_genitive_stem(), and ffstring_append().

Referenced by ff_genitive_singular().

ffint32 ffpriv_nominative_plural ffword word  ) 
 

Transforms the given word to its nominative plural form.

Parameters:
word The word in its basic form
Returns:
0 on success, -1 on error.

Definition at line 43 of file ffpriv_basic_cases.c.

References ffpriv_genitive_stem(), and ffstring_append().

Referenced by ff_nominative_plural().

ffint32 ffpriv_nominative_singular ffword word  ) 
 

Transforms the given word to its nominative singular form (i.e.

does absolutely nothing to it).

Parameters:
word The word in its basic form
Returns:
0 on success, -1 on error.

Definition at line 38 of file ffpriv_basic_cases.c.


Generated on Sun May 15 21:50:47 2005 for FinFlect by  doxygen 1.4.1