Alphabet

Represents a language alphabet and allows to perform different stemming operations

Members

Aliases

region1
alias region1 = region!true

R1 is the region after the first non-vowel following a vowel, or the end of the word if there is no such non-vowel.

Static functions

endsWithShortSylable
bool endsWithShortSylable(string data)

Check if the word ens in a short sylable

get
immutable(string[]) get(string value)
immutable(string[2][]) get(string value)

Resolve a word by repplacing the placeholder characters("N", "V", "*")

isShortWord
bool isShortWord(string data)

A word is called short if it ends in a short syllable, and if R1 is null.

isVowel
bool isVowel(dchar ch)

Check if the provided letter is a Vowel

region
string region(string word)

Get a word region

region2
string region2(string word)

R2 is the region after the first non-vowel following a vowel in R1, or the end of the word if there is no such non-vowel.

replaceAny
string[] replaceAny(string value)

Return a list of words derived from value where the chars marked as any(*) are replaced with actual elements from the alphabet

replaceNonVowels
string[] replaceNonVowels(string value)

Return a list of words derived from value where the chars marked as non-vowels(N) are replaced with actual elements from the alphabet

replaceVowels
string[] replaceVowels(string value)

Return a list of words derived from value where the chars marked as vowels(V) are replaced with actual elements from the alphabet

Static variables

alphabet
string[] alphabet;
nonVowels
string[] nonVowels;

Meta