nxt.lingua

Generic Language Constructs.

Members

Aliases

Tempus
alias Tempus = Tense
Undocumented in source.
isEnglish
alias isEnglish = isEnglishLetter
Undocumented in source.
isSwedishConsonant
alias isSwedishConsonant = isEnglishConsonant
Undocumented in source.

Classes

Part
class Part
Undocumented in source.
Subject
class Subject
Undocumented in source.

Enums

Adverbial
enum Adverbial
Undocumented in source.
Article
enum Article

Article (of noun).

Case
enum Case

Grammatical Case.

Casing
enum Casing
Undocumented in source.
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.

Manner
enum Manner
Undocumented in source.
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.

isEnglishArticle
bool isEnglishArticle(S s)
Undocumented in source. Be warned that the author may not have intended to support it.
isEnglishConsonant
bool isEnglishConsonant(dchar c)

Check if c is a Consonant.

isEnglishDefiniteArticle
bool isEnglishDefiniteArticle(S s)
Undocumented in source. Be warned that the author may not have intended to support it.
isEnglishDoubleConsonant
bool isEnglishDoubleConsonant(const(char)[] s)

Check if s is an English Double consonant.

isEnglishIndefiniteArticle
bool isEnglishIndefiniteArticle(S s)
Undocumented in source. Be warned that the author may not have intended to support it.
isEnglishLetter
bool isEnglishLetter(dchar c)

Check if c is a letter.

isEnglishVowel
bool isEnglishVowel(dchar c)

Check if c is a Vowel.

isFuture
bool isFuture(Tense tense)
Undocumented in source. Be warned that the author may not have intended to support it.
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.

isPast
bool isPast(Tense tense)
Undocumented in source. Be warned that the author may not have intended to support it.
isPresent
bool isPresent(Tense tense)
Undocumented in source. Be warned that the author may not have intended to support it.
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

irrealisMoods
enum irrealisMoods;
Undocumented in source.
realisMoods
enum realisMoods;
Undocumented in source.
spanishAccentedVowels
enum spanishAccentedVowels;

Spanish Accented Vowels.

Static variables

adjectiveNounSuffixes
auto adjectiveNounSuffixes;

English Noun Suffixes.

adjectiveSuffixes
auto adjectiveSuffixes;

English Adjective Suffixes.

allNounSuffixes
auto allNounSuffixes;
Undocumented in source.
englishAccentedVowels
dchar[] englishAccentedVowels;

English Accented Vowels.

englishArticles
auto englishArticles;

English definite articles.

englishConsonants
dchar[] englishConsonants;

English consontant characters.

englishDefiniteArticles
auto englishDefiniteArticles;

English definite articles.

englishDoubleConsonants
auto englishDoubleConsonants;
Undocumented in source.
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.

implies
auto implies;
Undocumented in source.
jobTitleSuffixes
auto jobTitleSuffixes;

English Job/Professin Title Suffixes.

nounNounSuffixes
auto nounNounSuffixes;
Undocumented in source.
swedishHardVowels
auto swedishHardVowels;

Swedish Hard Vowels.

swedishLinkingVerbs
auto swedishLinkingVerbs;
Undocumented in source.
swedishNegationPrefixes
auto swedishNegationPrefixes;
Undocumented in source.
swedishObjectPronouns
auto swedishObjectPronouns;

Swedish Object Pronouns.

swedishSoftVowels
auto swedishSoftVowels;

Swedish Soft Vowels.

swedishSubjectPronouns
auto swedishSubjectPronouns;

Swedish Subject Pronouns.

swedishVowels
auto swedishVowels;

Swedish Vowels.

verbNounSuffixes
auto verbNounSuffixes;
Undocumented in source.
verbSuffixes
auto verbSuffixes;

English Verb Suffixes.

wordSuffixes
auto wordSuffixes;

English Word Suffixes.

Structs

Adjective
struct Adjective(S)
Undocumented in source.
Noun
struct Noun(S)
Undocumented in source.
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