1. The Word Boundary Problem in South Asian NLP
Tokenization is universally recognized as the foundational pipeline step in Natural Language Processing. However, in South Asian languages characterized by agglutinative postpositions, compound noun formation, and Sandhi processes, whitespace cannot be naively treated as an invariant delimiter.
In contemporary Sinhala typography, two diametrically opposed errors dominate:
- Erroneous Conjoining (අනවශ්ය පද එකතු කිරීම): Independent clitics, emphatic particles (e.g., -ද, -නම්, -මිස, -ම, -ය), and case markers merged indiscriminately onto lexical stems (e.g., ඔහුදකියන්නේය* instead of ඔහු ද කියන්නේය).
- Erroneous Disjunction (අනවශ්ය පද වෙන් කිරීම): Semantically unified lexical units, reduplications, and prefixes erroneously split across spaces (e.g., ප්රති පත්ති* instead of ප්රතිපත්ති, or අන්තර් ජාලය* instead of අන්තර්ජාලය).
2. Sandhi Typology in Sinhala
Traditional Sinhala grammar recognizes several classes of euphonic combination (සන්ධි ක්රම):
Lopa Sandhi (ලෝප සන්ධි - Elision)
The dropping of a terminal vowel when juxtaposed with an initial vowel:
Adesha Sandhi (ආදේශ සන්ධි - Substitution)
The transmutation of vowels into semivowels (y, v) under glide formation:
3. The Sodupath Multi-Phase Segmentation Pipeline
To preserve genuine Sandhi whilst correcting colloquial conjoining and disjunction errors, Sodupath deploys a bidirectional sliding-window finite state automaton (FSA):