Module vi::validation
source · Expand description
Validation functions for verifying if a word is a valid vietnamese word.
The structure of a vietnamese word
1 optional consonant / consonant cluster + 1 compulsory vowel / vowel cluster + 1 optional consonant / consonant cluster
The starting consonant are called initial consonant, while the consonant at the end is called the final consonant. A cluster of consonant can contains 1 -> 3 characters. See: https://en.wikibooks.org/wiki/Vietnamese/Consonants
Functions
- Verify if a word is a valid vietnamese word.