| static void Lingoona.Grammar.clearVariable |
( |
string |
name | ) |
|
|
inlinestatic |
Deletes a named variable.
- Parameters
-
| name | The name of the variable. Must consist of alphanumerical characters only and start with a letter. |
| static void Lingoona.Grammar.clearVariables |
( |
| ) |
|
|
inlinestatic |
Deletes all named variables.
| static string Lingoona.Grammar.generateName |
( |
string |
noun, |
|
|
List< string > |
components |
|
) |
| |
|
inlinestatic |
Composes a new name from a given noun and an individual amount of additional suffixes.
- Parameters
-
| noun | The tagged noun to be used, e.g. "sword^n". |
| components | The actual suffixes, each individual one might be tagged to describe the actual use, e.g. "strong^a". |
- Returns
- The finalized, generated name, including gender tags.
| static string Lingoona.Grammar.getLanguage |
( |
| ) |
|
|
inlinestatic |
Retrieve the Grammar Library's current language code.
- Returns
- A 2 character language code, e.g. "en", "de", or "fr".
| static void Lingoona.Grammar.setLanguage |
( |
string |
language | ) |
|
|
inlinestatic |
Set the Grammar Library's language to be used.
- Parameters
-
| language | A 2 character language code, e.g. "en", "de", or "fr". |
The available languages depend on your license agreement. Invalid values will fall back to English ("en").
| static void Lingoona.Grammar.setVariable |
( |
string |
name, |
|
|
string |
value |
|
) |
| |
|
inlinestatic |
Sets a named variable.
- Parameters
-
| name | The name of the variable. Must consist of alphanumerical characters only and start with a letter. |
| value | The value of the variable. |
| static string Lingoona.Grammar.useGrammar |
( |
string |
template, |
|
|
List< string > |
parameters |
|
) |
| |
|
inlinestatic |
Parses a string using the Grammar Library and returns the finalized text.
- Parameters
-
| template | The template string to be parsed, e.g. "Greetings, <<1>>!". |
| parameters | The actual parameters, each individual one might be tagged based on their gender, e.g. "dog^n". |
- Returns
- The finalized, generated string.
| static string Lingoona.Grammar.useGrammar |
( |
string |
template | ) |
|
|
inlinestatic |
Parses a string using the Grammar Library and returns the finalized text.
- Parameters
-
| template | The template string to be parsed, e.g. "Greetings, <<1>>!". |
- Returns
- The finalized, generated string.
The documentation for this class was generated from the following file: