nxt.lingua

Generic Language Constructs.

Members

Enums

Article
enum Article

Article (of noun).

Case
enum Case

Grammatical Case.

Comparation
enum Comparation

Comparation.

Count
enum Count

Subject Count.

EnglishConsonant
enum EnglishConsonant

English consonant type.

EnglishVowel
enum EnglishVowel

English vowel type.

Gender
enum Gender

Grammatical Gender.

Mood
enum Mood

(Grammatical) Mood.

Person
enum Person

Subject Person.

SentencePart
enum SentencePart

Part of a Sentence.

SwedishVerbInflection
enum SwedishVerbInflection

Swedish Verb Inflection (conjugation of a verb).

Tense
enum Tense

English Tense.

TokenId
enum TokenId

Computer token.

Usage
enum Usage

Computer Token Usage.

VerbForm
enum VerbForm

Verb Form.

Functions

inPlural
string inPlural(string word, int count, string pluralWord)

Return string word in plural optionally in count.

isEnglishAccentedVowel
bool isEnglishAccentedVowel(dchar c)

Check if c is an Accented Vowel.

isEnglishConsonant
bool isEnglishConsonant(dchar c)

Check if c is a Consonant.

isEnglishDoubleConsonant
bool isEnglishDoubleConsonant(const(char)[] s)

Check if s is an English Double consonant.

isEnglishLetter
bool isEnglishLetter(dchar c)

Check if c is a letter.

isEnglishVowel
bool isEnglishVowel(dchar c)

Check if c is a Vowel.

isGermanArticle
bool isGermanArticle(S s)

Check if s is a Vowel.

isGermanDefiniteArticle
bool isGermanDefiniteArticle(S s)

Check if s is a Vowel.

isGermanIndefiniteArticle
bool isGermanIndefiniteArticle(S s)

Check if s is a Vowel.

isIrrealis
bool isIrrealis(Mood mood)

Check if mood is a Irrealis Mood.

isRealis
bool isRealis(Mood mood)

Check if mood is a Realis Mood.

isSpanishAccentedVowel
bool isSpanishAccentedVowel(dchar c)

Check if c is a Spanish Accented Vowel.

isSpanishVowel
bool isSpanishVowel(dchar c)

Check if c is a Spanish Vowel.

isSwedishHardVowel
bool isSwedishHardVowel(dchar c)

Check if c is a Swedish hard vowel.

isSwedishSoftVowel
bool isSwedishSoftVowel(dchar c)

Check if c is a Swedish soft vowel.

isSwedishVowel
bool isSwedishVowel(dchar c)

Check if c is a Swedish Vowel.

isVowel
bool isVowel(dchar c, Lang lang)

Check if c is a Vowel in language lang.

lemmatized
S lemmatized(S s)

Return s lemmatized (normalized).

negationIn
string negationIn(Lang lang)

TODO Reuse knet translation query instead.

Manifest constants

spanishAccentedVowels
enum spanishAccentedVowels;

Spanish Accented Vowels.

Static variables

adjectiveNounSuffixes
auto adjectiveNounSuffixes;

English Noun Suffixes.

adjectiveSuffixes
auto adjectiveSuffixes;

English Adjective Suffixes.

englishAccentedVowels
dchar[] englishAccentedVowels;

English Accented Vowels.

englishArticles
auto englishArticles;

English definite articles.

englishConsonants
dchar[] englishConsonants;

English consontant characters.

englishDefiniteArticles
auto englishDefiniteArticles;

English definite articles.

englishIndefiniteArticles
auto englishIndefiniteArticles;

English indefinite articles.

englishLetters
dchar[] englishLetters;

English letters.

englishLinkingVerbs
auto englishLinkingVerbs;

English Linking Verbs in Nominative Form.

englishLowerConsonants
dchar[] englishLowerConsonants;

English lowercase consontant characters.

englishNegationPrefixes
auto englishNegationPrefixes;

English Negation Prefixes.

englishObjectPronouns
auto englishObjectPronouns;

English Object Pronouns.

englishSubjectPronouns
auto englishSubjectPronouns;

English Subject Pronouns.

englishUpperConsonants
dchar[] englishUpperConsonants;

English uppercase consontant characters.

englishVowels
dchar[] englishVowels;

English Vowels.

germanArticles
auto germanArticles;

German definite articles.

germanDefiniteArticles
auto germanDefiniteArticles;

German definite articles.

germanIndefiniteArticles
auto germanIndefiniteArticles;

German indefinite articles.

jobTitleSuffixes
auto jobTitleSuffixes;

English Job/Professin Title Suffixes.

swedishHardVowels
auto swedishHardVowels;

Swedish Hard Vowels.

swedishObjectPronouns
auto swedishObjectPronouns;

Swedish Object Pronouns.

swedishSoftVowels
auto swedishSoftVowels;

Swedish Soft Vowels.

swedishSubjectPronouns
auto swedishSubjectPronouns;

Swedish Subject Pronouns.

swedishVowels
auto swedishVowels;

Swedish Vowels.

verbSuffixes
auto verbSuffixes;

English Verb Suffixes.

wordSuffixes
auto wordSuffixes;

English Word Suffixes.

Structs

Verb
struct Verb(S)

Verb Instance.

See Also

https://en.wikipedia.org/wiki/Predicate_(grammar)

Note that ! and ? are more definite sentence enders than .

TODO isSomeString => isStringLike

TODO Use static foreach to add declarations for all isX, for each X

http://forum.dlang.org/thread/mgdtuxkuswfxxoithwxh@forum.dlang.org

Meta