A Rule Based Syllabification Algorithm for Sinhala
Paper · 2005 · Ruvan Weerasinghe, Asanka Wasala and Kumudu Gamage
Summary
A written Sinhala word gives a speech synthesizer a sequence of letters, but the synthesizer also needs to know how the sounds group together. That means finding boundaries inside words. A consonant between vowels can join the syllable on either side, and a cluster of consonants gives the system still more places to make a cut. Weerasinghe, Wasala and Gamage develop a rule-based way to make those decisions for modern Sinhala. They use earlier linguistic descriptions to handle familiar syllable shapes and consult scholars about words borrowed or adapted from other languages, especially Sanskrit.
The algorithm works on phonemes, the sound units identified for a word by a separate letter-to-sound component. It finds a vowel and inspects the sounds up to the next vowel. A lone intervening consonant goes with the following vowel. A pair is split between the syllables. With longer runs, the decision can depend on the consonant immediately before the following vowel, on whether the cluster begins with stop consonants, or on which consonant has the lowest sonority. Sonority is a relative prominence that the paper uses to rank classes of sounds. Applying the rules in sequence yields one analysis per word, even when speakers or scholars can divide a word into syllables in several acceptable ways.
The authors test the procedure on the 30,000 most frequent distinct words in a newspaper-feature category of the UCSC Sinhala Corpus BETA. They compare each word’s output with an expert’s manual syllabification and report 99.95% word accuracy. The rule for a single intervening consonant accounts for 67,350 of the reported rule applications, and the rule that splits a pair accounts for 10,899. More elaborate cluster rules appear much less often. The counts show how the procedure was used on the test vocabulary. The same short syllable shapes occur in words of different origins, so the counts cannot establish how much of that vocabulary was borrowed.
The authors trace the errors they inspected to compounds and to foreign words written directly in Sinhala script, chiefly English words. Compounds can preserve a boundary between their component words that the algorithm cannot recognize from the nearby sounds alone. The results establish close agreement with the expert for this set of written word forms. The study leaves open how the procedure fares on vocabulary sampled differently, how other experts would judge the same outputs, and what audible difference the syllabification makes in a speech synthesizer.
Deep dive: A Rule Based Syllabification Algorithm for Sinhala
A rule-based algorithm for dividing Sinhala words into syllables, with an account of consonant clusters and a test against expert judgments. · about 33 minutes to read
The problem and its context
From a word to a sequence of syllables
A speech synthesizer that receives a word must decide how the sounds of that word belong together. Syllabification supplies part of that organization by locating the points where the units called syllables meet. The authors motivate the work with their Sinhala text-to-speech system, for which identifying those units is a step towards natural-sounding output. They also point to a use in speech recognition, where syllable structure can help a recognizer handle words outside its vocabulary. The research question is narrower than either application. Given the sounds of a Sinhala word, where should a program put its syllable boundaries?
The vowel provides an anchor for the analysis. In the patterns used by the paper, the vowel occupies the nucleus, the central part of a syllable. Consonants before that nucleus belong to the onset if they form part of the same syllable. Consonants after it belong to the coda if they stay with that nucleus. When a consonant occurs between vowels, it lies in a place where either kind of attachment is conceivable. It may close the preceding syllable or open the following one. A sequence of consonants between vowels raises the same question about each possible division of the sequence.
Knowing which syllables a language permits only partly resolves the question. Previous descriptions recognized vowel-only syllables in Sinhala, syllables with a consonant before the vowel, syllables with a consonant after the vowel, and syllables with both. With that inventory, a sequence alternating between vowels and consonants can often be divided in several ways while keeping every individual syllable within the permitted shapes. The authors illustrate this with a sequence that starts with a vowel and ends with a consonant. It admits a division into successive vowel–consonant units, as well as divisions involving a vowel-only unit and a syllable closed and opened by consonants. The inventory approves the pieces in each division. It takes a boundary rule to choose among the divisions.
That distinction gives the project its shape. The earlier linguistic descriptions offered examples of words already divided into syllables and a description of the units those divisions produced. The authors needed instructions that could start from an undivided word and reproduce the judgments. They describe their work as the first documented Sinhala syllabification algorithm they knew of and the first evaluation of a Sinhala syllabification scheme. The novelty they claim concerns an explicit procedure and an empirical check of its output. Their account draws directly on an existing linguistic discussion of modern Sinhala.
What general principles can decide
The paper discusses two principles that guide syllabification across languages. The Maximum Onset Principle favors assigning as many consonants as the language permits to the beginning of the following syllable. Material that belongs with the preceding vowel then forms its coda, subject to the language’s constraints. The word “permits” carries much of the burden. The principle can rank possible assignments once the analyst knows the legitimate onsets and codas. It leaves the analyst to establish those possibilities for Sinhala, including for words with clusters uncommon in the locally originating vocabulary.
The sonority profile describes a tendency for sounds to grow more sonorous as a syllable approaches its peak and to decline in sonority beyond it. The authors relate sonority to acoustic intensity and set out an ordering of broad sound classes. Obstruents sit at the low end, followed in ascending order by nasals, liquids, glides and vowels. The ranking gives a procedure a way to look for a low point between vowel peaks. It can also explain why the identity of an intervening consonant might matter even in a rule whose first test concerns the length of the cluster.
Festival, the speech synthesis framework used in the authors’ Sinhala project, already offers a procedure based on finding a position of minimum sonority between vowels. The paper also mentions another syllabifier based on a sonority scale. It cites linguistic work showing that the sonority profile leaves some observed cases unexplained and describes finite-state machines and neural networks as ways researchers have represented language-specific syllabification schemes. Its example of a multilingual approach uses weighted finite-state transducers. These examples establish the range of approaches the authors encountered. The Sinhala contribution takes the form of ordered linguistic rules, with sonority retained for a particular kind of cluster.
The paper’s own design already shows why the choice of a general principle and the choice of a boundary rule are distinct. For a familiar pattern containing a single consonant between vowels, an onset preference can motivate the authors’ decision to give that consonant to the next syllable. A complex cluster calls for more information about which part can travel together. Some rules inspect the final consonant beside the following vowel. Another uses the classes of the first consonants in the cluster. The sound hierarchy guides the cases that reach the sonority branch. This arrangement gives a broad phonological idea a specific role inside a procedure directed at Sinhala words.
Why the vocabulary matters
The linguistic literature discussed in the paper groups Sinhala words by their origin and the extent to which they changed on entering the language. Nishpanna refers to words of local origin. Thathsama refers to borrowings that retain a form close to that of the source language. Thadbhava refers to words that came from another language and underwent adaptation to Sinhala. The authors describe Sanskrit and Pali as major influences on the vocabulary. They also mention Tamil, Portuguese, Dutch and English in their account of the languages that have affected Sinhala.
The distinction matters because of the kinds of syllable shapes for which the authors could find prior descriptions. The locally originating words had a documented set of relatively simple shapes. The authors found no comparable documented account of the allowed structures across the other categories. Sanskrit words became a focus because the paper describes them as a substantial part of the Thathsama vocabulary, about 75% of that category, and because their clusters make decisions about onsets and codas particularly demanding. That figure concerns the category in the background literature. It describes neither the test set nor the share of rule applications devoted to Sanskrit words.
An application meant to process modern Sinhala encounters these words together. The paper observes that an ordinary speaker cannot readily tell a locally originating word from every word belonging to the other categories. A historical label might help a linguist choose an example to study, but requiring such a label at runtime would create a separate problem for a speech system. The authors could use word histories to investigate the range of patterns, then ask whether one set of rules could handle the resulting phoneme sequences. The simpler shape had to remain available inside the account that accommodated clusters.
The authors also make a distinction between the shape of a borrowed word in Sinhala and the syllabification it would receive in its language of origin. The scholars they consulted treated borrowed words as subject to the sound inventory and established syllable patterns of the receiving language. A Sanskrit origin therefore helped identify an area needing study. The actual division still had to be supported as a division of a Sinhala word. The paper reports comparable behavior for nearly all the examples it considered from several other borrowing sources, including Pali, Tamil and English. The historical source of a word and the phonological context of a boundary are different kinds of evidence.
This leaves a concrete task for the algorithm. It must handle the ordinary short patterns described in earlier work, make choices within the longer clusters found in borrowings, and apply both kinds of knowledge to the same sequence of phonemes. It must also settle on an output when the linguistic descriptions allow more than one. The paper builds up to that task by treating native examples, borrowed examples and ambiguous divisions as sources of information about what the rules should do.
The method, step by step
Establishing the shapes and the rules
The authors begin with linguistic descriptions of modern Sinhala. They review the proposals of scholars from different traditions and identify questions that a program would have to resolve explicitly. A description may name a permissible syllable or give a correctly divided word. To make that information operational, the authors ask which features of the undivided sequence would let a program find the same boundary. They then apply proposed rules to the examples discussed in the literature as an initial check of the divisions those rules produce.
For Nishpanna words, the shape given in the earlier literature is compact.
(C)V(C)
Here V denotes the vowel nucleus and C denotes an individual consonant. Parentheses around a consonant indicate that it may be absent. The first consonant position is the onset and the last is the coda. The expression thus includes a bare vowel, a vowel followed by a consonant, a consonant followed by a vowel, and a vowel with a consonant on each side. It describes the contents of an individual syllable and leaves open how to divide a word that contains several vowels.
For the borrowed and adapted vocabulary, the authors selected examples and asked scholars of Sinhala and Sanskrit to syllabify them and comment on the choices involved. The word list appears in an appendix. It makes the role of selected examples visible in the design process. The authors were looking for sequences that brought out the boundary problem in the borrowing vocabulary, especially where clusters could give rise to a complex onset or coda. They analyzed what the scholars recommended and formulated rules for those contexts.
They express the resulting proposal for words of Sanskrit origin in Sinhala with a broader shape.
(C)(C)(C)V(C)(C)(C)
Again, V stands for the vowel nucleus, and each parenthesized C is an optional consonant. The positions before V form the onset and those after it form the coda. The expression allows several consonants on either side. It includes the earlier Nishpanna shape whenever the additional consonant positions are absent. It is a description of the range of shapes the authors propose. Decisions about the placement of particular consonants come from the rules.
That inclusion explains how the paper can move from separate linguistic discussions to a single algorithm. A word with an uncomplicated vowel–consonant pattern can use the ordinary rules regardless of its history. A word with a larger cluster activates further tests. Each individual decision uses what appears in the phoneme sequence. The design process uses examples and judgments to arrive at the tests, with no fitted parameters or word-origin field in the described input. The later corpus comparison evaluates the rules after they have been formulated.
Making the sounds available to the algorithm
The function syllabify() receives the phonemes of a word in order. They come from the project’s letter-to-sound module, so this stage begins after a pronunciation has been represented. The function also receives current_position, the place in the sequence that currently needs attention. Its initial value is 0, the position from which the algorithm begins processing. A boundary-marking function records the location chosen by a rule. The procedure calls itself repeatedly to process what remains.
The sound representation matters because a mark on the page and a sound in the pronunciation need not have the same role. The paper describes spoken Sinhala as having 40 segmental phonemes, comprising 14 vowels and 26 consonants in its inventory. It also discusses diphthongs, marginal nasalized vowel sounds, and a vowel for which Sinhala has no separate letter. Conversely, the paper identifies a written consonant symbol whose corresponding sound it excludes from the phoneme inventory. These observations help explain why the algorithm starts with sound units. Its immediate question is whether the current phoneme is a vowel and how its neighbors are classified.
Two helpers support the vowel search. One counts vowels in a phoneme array, and another tests whether an individual phoneme is a vowel. A further helper counts consonants from a position up to the next vowel. Two more supply information for the complex cases. One determines whether a consonant is a stop, and the other returns a position of minimum sonority. In the special cluster patterns the paper writes /r/ and /y/ as phoneme labels. The slashes identify sounds in the paper’s transcription. The branch checks those identities in the phoneme array.
When the current position is at the start of a consonant sequence, the algorithm advances to the first vowel. That scan locates the nucleus around which it will make the next decision. The consonants passed on the way remain part of the word and can form the onset of the current syllable. A word beginning with a vowel reaches this decision point immediately. The same distinction recurs after a boundary has been selected. Some branches can advance straight to the following vowel because they have already identified the intervening consonants that belong with it. Others resume before that vowel and use the scan again.
How the algorithm places syllable boundaries
The steps in order.
The short stretches between vowels
For a newcomer, the easiest way to follow the rules is to imagine a window between the vowel the algorithm has just reached and the next one. The consonants in that window are candidates for attachment to either syllable. The consonants before the window already belong to the part leading up to the current vowel. The next decision concerns where the current syllable ends and which, if any, of the consonants in the window begin the following syllable.
Rule 1 handles a single consonant between vowels.
xVCV… → (xV)(CV…)
V represents a vowel and C represents the intervening consonant. In the Nishpanna presentation of the rule, x represents an optional initial consonant. In the combined procedure, material leading into the current vowel can already include a longer onset. The ellipsis represents continuation beyond the displayed pattern, and the arrow gives the segmentation chosen by the rule. Each parenthesized group is on one side of the new boundary. The first ends with the current vowel. The following syllable starts with the consonant. Its full extent will be determined by the later decisions.
This rule answers a question the inventory alone cannot answer. A vowel with a final consonant is an allowed syllable. A vowel with an initial consonant is also allowed. Between vowels, the authors’ rule assigns the consonant to the following onset. In a sequence with several successive vowels separated by individual consonants, the same choice is made again at the next vowel. The procedure reaches a whole-word division by repeating a local decision that would be underspecified if the program were only checking permissible syllable shapes.
Rule 2 addresses a pair of intervening consonants.
xVCCV… → (xVC)(CV…)
x is the material before the current vowel, optional and at most a single consonant in the rule’s original Nishpanna setting. Each V denotes a vowel and each C denotes a consonant. The arrow gives the selected division and the parentheses group the material on either side of it. The ellipsis allows the word to continue. The first consonant after the current vowel closes its syllable. The other consonant opens the syllable centered on the following vowel.
For these short clusters, the number of consonants determines the cut. The authors give the two-consonant environment a coda and an onset, each containing a single consonant from the cluster. The implementation does not ask which of the two is more sonorous or whether one is a stop. It marks the boundary after the first consonant and moves its position to the following vowel. Once that vowel becomes current, a later decision can give its syllable a coda as well.
Rule 3 covers adjacent vowels in the phoneme sequence.
xVV… → (xV)(V…)
x denotes the material, if any, before the first vowel, and each V denotes a vowel unit recognized by the procedure. The arrow points to the resulting division. Parentheses enclose the material before and after the new boundary, and the ellipsis represents what follows. With no consonant in the window, the first syllable ends at the first vowel and the next begins at the second.
The authors found few examples of words with this relevant adjacency. They give a city name and a word glossed as “Alphabet” as illustrations. In their account a syllable consisting of a bare vowel is otherwise most likely at the beginning of a word. The computational condition is adjacency in the phoneme sequence. The paper separately lists diphthongs in spoken Sinhala. The adjacent-vowel rule should therefore be read at the level of the units that the input supplies, with a vowel position followed directly by another vowel position. The function does not independently determine how a written sequence should be pronounced or how a diphthong should be represented.
Clusters with three consonants
A longer cluster gives the following vowel more than one possible onset. It also creates a choice about the size of the preceding coda. The authors first distinguish clusters of three consonants from longer clusters. For the three-consonant case, the tests have an order. The last consonant is examined first. A test involving stops is reached only if the last consonant fails the first test.
Rule 4 applies when the cluster ends in /r/ or /y/.
xVCCRV… → (xVC)(CRV…)
x represents any consonants already leading into the current vowel, or no consonants. V indicates a vowel, C an unrestricted consonant, and R the particular consonant in the final position, which must be /r/ or /y/ for this rule. The arrow shows the cut and the parenthesized groups contain the material on its two sides. The ellipsis indicates the possible continuation of the word. The first consonant in the cluster stays with the preceding vowel. The consonant beside R moves with it into the following onset.
The final consonant here is the one immediately before the following vowel. The result is clearest from the pattern and from the indexed test in the algorithm listing. Looking at the rule as a choice about the following onset also clarifies why it cuts after the first member of the cluster. It preserves the pair at the end as a unit going into the next vowel. In the selected examples of loanword syllabification, a cluster ending with these sounds can be exactly where alternative divisions compete.
Rule 5 handles the next eligible case, with stops at the start of the cluster.
xVSSC V… → (xVS)(SCV…)
x denotes the consonants, if any, before the current vowel. V denotes a vowel, each S is a stop consonant, and C is the final consonant of the cluster. The space before the following V only sets it apart visually. This branch is reached when C is neither /r/ nor /y/. The arrow gives the resulting division, the parentheses enclose its groups, and the ellipsis denotes continuation. The first stop closes the current syllable. The second stop and the final consonant belong to the next onset.
The boundary is in the same place as under Rule 4, but it is reached through a different observation about the sounds. The earlier rule checks the identity of the cluster’s final member. This one checks the classes of the initial members. Keeping the cases separate records what licensed the same split in different environments and shows what the algorithm would do if the final consonant were changed. In the listing, the stop test concerns both initial consonants together. A match on either one alone is insufficient.
Rule 6 supplies the remaining split for a cluster of this length.
xVCCCV… → (xVCC)(CV…)
x stands for any consonants before the current vowel, V for a vowel, and C for each member of the cluster. The arrow indicates the selected division, with parentheses grouping the two sides of the boundary and an ellipsis marking the rest of the sequence. Because this is the remaining case, neither of the earlier conditions for a cluster of this length has selected a split. The first two consonants of the cluster become the coda. Only the last starts the next syllable.
The fallback shows why the general permission to have a complex onset does not settle where a boundary lies. Even at the same cluster length, the authors sometimes retain most of the cluster with the preceding syllable and sometimes assign a pair to the following one. Every branch can advance to the following vowel once the boundary is recorded. Changing the assignment of consonants changes the division of the word while leaving the sequence of nuclei that drives the next decisions intact.
Longer clusters and the sonority decision
For a cluster longer than the three-consonant cases, the algorithm again looks at the consonant immediately before the following vowel. Rule 7 preserves a pair at the onset when the last consonant is /r/ or /y/.
xVCCC…CRV… → (xVCCC…)(CRV…)
x denotes consonants, if any, leading into the first displayed vowel. V represents a vowel, C a consonant, and R the last consonant in the cluster, which in this branch is /r/ or /y/. The internal ellipsis allows the cluster to extend. The ellipsis after the second vowel represents the remainder of the word. The arrow gives the division and the parentheses enclose its two sides. The pair immediately before the second vowel opens the next syllable. The rest of the intervening cluster closes the preceding one.
The practical instruction is to find the pair at the far end of the cluster and put the cut immediately before it. In the pseudocode, this branch resumes at the first sound of that pair. The next scan can then locate the vowel after the onset. The placement of the cut and the position from which processing resumes are related but distinct. One is a division in the output. The other is where the procedure begins looking for its next nucleus.
Rule 8 handles the remaining long clusters. It identifies the least sonorous consonant within the cluster and records the boundary just after that sound. The sonority scale supplies an order for comparing the consonants available in the window. The rule does not require new acoustic measurements for the word in hand. It uses the linguistic categories described in the paper. The authors specify the first occurrence of a minimum if several consonants have the same lowest rank. That choice makes the procedure determinate even when the hierarchy assigns equal sonority to several positions.
The placement after the minimum matters. The consonant identified by the search remains with the preceding vowel. Any cluster members after it go forward with the following vowel. If the chosen consonant comes early in the run, several sounds can continue into the next onset. If it comes late, more of the cluster stays with the preceding syllable. The rule is sensitive to the ordering of the particular consonants and their classes. Length by itself tells the procedure only that it has reached a branch where sonority can matter.
The authors describe these long clusters as rare. Their procedure reserves a general phonological hierarchy for the long cases that miss the special ending test. This is a different use of sonority from running a minimum search at every stretch between vowels. A short cluster, or a longer one that ends with the designated consonants, receives a boundary without reaching that search. The order of the branches defines the scope of the hierarchy as much as the hierarchy defines the eventual cut.
Moving through the word and handling alternatives
The procedure returns to the same question at each successive vowel. It first identifies the nucleus for the syllable under consideration, then looks at what follows. When a rule marks a boundary, the letters or sounds of the word themselves stay in order. The recorded boundary determines where one syllable ends. Processing resumes on the following side of the division or directly at the following nucleus, depending on the branch. At the end of a word, the remaining material through the final phoneme closes the last syllable. This is the terminal operation illustrated by the appendix’s case for a phoneme array with a single vowel.
The authors describe the procedure as recursive. An implementation of the intended rule sequence needs to preserve the distinction between the full word, the unprocessed part and the position used to find the next vowel. This is visible in the appendix because the recursive calls keep passing a phoneme array and change the position argument. The prose directs the reader to continue on the remainder as though it were a new word. The handling of the last vowel has to give those descriptions the same effect. The appendix’s test for the number of vowels is written on the array, with the current position expressed separately. The paper does not give the implementation of that helper to show exactly how its count is limited as the position advances.
A separate issue is what the program should return when expert analyses differ. The paper discusses ambisyllabic words whose medial consonant can be assigned to the preceding coda or the following onset. For the word glossed as “transmit,” the example contains a cluster with /p/ before /r/. An analysis may place /p/ on the earlier side of the division. Another may start the following syllable with the pair containing /p/ and /r/. The branch for a cluster of three consonants ending in /r/ chooses the division that retains that pair in the onset. The example makes the algorithm’s treatment of ambiguity concrete. The input remains the same and the branch selects one output.
The word glossed as “number” illustrates a similar choice with a cluster ending in /y/. Moving the boundary changes whether the consonant just before /y/ belongs with the preceding vowel or begins the next syllable alongside /y/. The paper also describes a different variation in certain Sanskrit loans. A consonant may occur once in one analysis and be repeated across a boundary in another pronunciation. That version involves a change in the phoneme sequence itself. The boundary-marking function operates on the sequence it receives. Recognizing or supplying a pronunciation variant belongs to the representation of the input.
Together, these cases define the sense in which the procedure aims for a unique answer. Once the sequence and the classification of its phonemes are fixed, the tests and their order determine a place to cut. Linguistic judgments can still accept more than one analysis, and different pronunciations can supply different sequences. The algorithm’s single answer is a design choice about the form of the output, with consequences for what a comparison against manual syllabification can measure.
Experiments and results
The words selected for the comparison
The evaluation used the UCSC Sinhala Corpus BETA. The authors describe it as unbalanced and draw their test vocabulary from a category of newspaper feature material. They chose that category because they judged its texts varied enough to give relatively broad coverage of Sinhala within that version of the corpus. They first extracted distinct words, ranked them by how often they occurred, and retained the 30,000 most frequent forms in the selected category.
Frequency enters the experiment at selection time. Once a form is in the set, it is one of the distinct words compared with the expert’s version. A form that appeared repeatedly in the newspaper texts remains a single evaluation item. The reported evaluation is accordingly about different word forms from that frequency-ranked vocabulary. It does not weight a boundary decision more heavily merely because the word containing it occurred more often in the source texts.
This detail matters when transferring the result to a sequence of text read aloud. The corpus procedure favors common word forms when drawing the list, while the scoring treats each included form as an item. A speech system operating on continuous text would encounter repeated forms and whatever other words appeared in its input. The experiment instead asks whether the rule system can reproduce the reference divisions across a large set of familiar forms that occur in the chosen writing. The paper reports no separate results for rarer forms, other corpus categories, or a separate partition by word origin.
The authors report that these words yielded 78,775 syllables. They also give the distribution of the syllables across the rules. That distribution provides some information about which parts of the procedure the vocabulary exercised. It serves a different purpose from the overall comparison against an expert. A rule can be applied often because its triggering pattern is common, and an infrequent rule can still be needed to handle a pattern that other rules cannot divide in the same way.
What counts as a correct result
The manual comparator is an expert’s syllabification of the same words. The metric is the percentage of words correctly syllabified. At that level, agreement requires the word’s divisions to match the manual analysis. A word containing several syllables is still one item. Consequently, a disagreement on a single boundary can affect the same word-level measure as several disagreements within another word. The paper gives the word accuracy as 99.95% on the selected 30,000 distinct forms.
The expert analysis supplies the reference against which correctness is scored. The paper discusses Festival’s syllabifier and other approaches in the background, but reports no accuracy for a competing automatic syllabifier on these words. The comparison therefore answers how closely the proposed outputs agree with the manual reference. It cannot measure a gain over Festival’s default, a general sonority procedure, or a simpler system that uses only the common rules. Nor does the reported word percentage give the fraction of individual boundary decisions that went wrong. That would require results at the level of the boundary.
This way of scoring is well matched to a practical question about the algorithm’s output. A caller receives the division of a word as a whole, and exact word agreement measures whether the caller would receive the expert’s full division. It is also a demanding reading of a local decision when a word contains several opportunities for disagreement. The paper’s description of permissible alternatives introduces another consideration. If evaluation accepts a single manual analysis, a different acceptable division may be scored as a disagreement. The authors do not explain how acceptable alternatives were represented in the manual reference.
How often each rule was used
The results include rule frequencies, with 67,350 reported for Rule 1 and 10,899 for Rule 2. Adjacent vowels under Rule 3 account for 71. Among the cases for three-consonant clusters, the paper lists 324 under Rule 4, 28 under Rule 5 and 77 under Rule 6. It gives 21 for Rule 7. The final entry in the printed distribution has an asterisk where a rule number would be expected and gives a count of 5. It appears in the position corresponding to Rule 8 in the ordered list. The chart preserves the distinction between that reading and the paper’s printed label. The star after Rule 1 marks the most-used branch of the proposed algorithm.
Syllables attributed to each rule in the UCSC Sinhala Corpus BETA test set
The single-consonant rule accounts for the most syllables, and the rule that splits a consonant pair is the next most frequent.
The numbers
| System or setting | syllables counted |
|---|---|
| Rule 1, single intervening consonant (this paper) | 67,350 |
| Rule 2, split consonant pair | 10,899 |
| Rule 3, adjacent vowels | 71 |
| Rule 4, three-consonant cluster ending in r or y | 324 |
| Rule 5, three-consonant cluster beginning with stops | 28 |
| Rule 6, remaining three-consonant cluster | 77 |
| Rule 7, longer cluster ending in r or y | 21 |
| Final entry, printed with an asterisk | 5 |
The chart compares the branches by frequency in the test results. Its order of magnitude differences describe the vocabulary the algorithm saw. The single-consonant pattern dominated, and the split for a consonant pair handled much of the other work. The later branches still applied to observed cases. Their small counts also explain how the overall accuracy can say relatively little about any particular rare rule. A branch with few opportunities to run can contribute little to the aggregate even if its decisions are especially difficult.
The authors explicitly caution against treating these counts as an estimate of the vocabulary’s origins. A often triggered rule for a simple boundary does not identify the word as Nishpanna. The simple shapes occur within the broader range of syllables found in borrowings and adaptations, and a single word may need different rules at different boundaries. To draw conclusions about how many of the words came from each historical category, the evaluation would have needed information about those words’ origins. The branch counts instead characterize the local structures encountered in the chosen corpus vocabulary.
What the ablations show
The paper reports no ablations or controlled comparisons between rule configurations. Its analyses concern how the full procedure was used, which kinds of words led to errors, and why some examples admit more than one plausible division. These analyses address different questions. Rule counts show how frequently a condition arose in the test material. The error inspection identifies places where the overall procedure ran into difficulty. The ambiguous examples show why exact agreement is a separate issue from producing a linguistically acceptable output.
What the branch counts explain
The common branches are reached through minimal information about the stretch between vowels. To place their boundaries, the algorithm needs the vowel locations and the count of intervening consonants. The observed frequency of those branches explains how this comparatively simple information can carry much of the work on the test vocabulary. A special consonant identity, the presence of stops, and the sonority ranking are needed in more restricted environments. The distribution supports this description of workload. It leaves open the accuracy of each rule on the words where it fires.
Consider the sonority branch. It addresses an environment that the authors describe as rare, so its intended value is coverage for cases lying beyond the more specific branch conditions. To measure its contribution to correctness, an experiment would need an alternative treatment of those same clusters and expert judgments on the resulting divisions. The paper provides neither such a comparison nor a separate count of correct decisions for that branch. The fact that a general hierarchy fills a gap in the algorithm’s decision tree is a property of the design. Whether it gives the best boundaries for that gap remains an empirical question.
The same reasoning applies to the alternatives for a cluster of three consonants. The ending test and the test for stops can produce the same boundary, but each captures a different environment. The frequencies show that the algorithm saw each environment. They cannot tell us how often the fallback would also have agreed with the expert, since the paper does not evaluate the same clusters under that alternative. The distribution is useful for understanding where distinctions in the linguistic rules enter actual processing. It does not identify which distinctions were causally responsible for the overall accuracy.
What the errors reveal
The first reported class of errors consists of compound words, forms made by joining words that can occur separately. The current procedure looks across vowels and intervening consonants throughout the phoneme sequence. At a junction inside a compound, it can treat a pair of neighboring vowels and their consonants as if they belonged to an ordinary stretch within a single constituent. The authors’ proposed treatment is to recognize the component words, syllabify each independently, and then join the syllabified components. The proposal follows from the diagnosis that the junction itself can supply information about the relevant boundary.
The second reported class consists of foreign words directly represented in Sinhala writing, mainly English ones. The authors had developed special rules partly to handle borrowed vocabulary, so their observation distinguishes a troublesome subset of forms within a much broader domain. Borrowings already fitted to the pronunciation patterns studied by the authors can exhibit the cluster structures their rules were designed for. A direct encoding can present a different boundary problem. The paper does not tabulate the errors in these subsets, isolate exactly which phoneme patterns led to the mismatches, or evaluate an alternative rule set for the direct encodings.
The examples that admit competing analyses complicate error interpretation in another way. An alternative division may arise because the same consonant can be heard or analyzed as closing one syllable or beginning the next. In that situation, agreement with one written answer measures conformity to an analysis, even if the other answer also has linguistic support. In contrast, a compound whose internal junction should have remained intact raises the question of whether the algorithm saw all the information needed to identify it. The paper describes both phenomena, but supplies no breakdown showing how often disagreements reflected ambiguity, missing information about the word’s structure, or another cause.
Limitations
Limits identified by the authors
The authors identify the corpus as unbalanced. Selecting a heterogeneous newspaper-feature category was a judgment about the suitability of the material already available in that corpus. The test vocabulary therefore has a clear domain and a clear frequency selection procedure. Its accuracy applies directly to the frequent distinct forms chosen from that material. The paper does not claim to have surveyed the full vocabulary of spoken or written Sinhala through this sample.
The authors also emphasize that the proposed rule inventory accommodates syllables shared across word-origin categories. The broad shape associated with borrowings contains the simple shape used for Nishpanna words. Because of that overlap, the distribution of rule applications cannot establish the proportions of locally originating, borrowed and adapted words. The point holds even if the corpus had been balanced. The rules classify environments inside words, and those environments are not exclusive markers of origin. Improving the corpus balance would change the basis of a frequency estimate but would still leave the historical categories unobserved.
The treatment of ambiguous words is another explicit limitation of the output. The authors allow that some words can have more than one acceptable division, and they specify that the procedure will produce one. Their aspiration to derive an accurate division through rules is therefore best understood as a goal of selecting an analysis that agrees with accepted syllabification. The account itself allows several accepted analyses. The difference can matter to applications that need to preserve alternatives or to evaluations that use a single reference.
The observed compound and direct-encoding errors identify concrete gaps in the rule set as tested. The authors describe a way to approach the compound gap by processing constituents independently. The function described in the paper receives no constituent boundaries, so carrying out that proposal would require identifying them by another means. For direct encodings, the paper names the class of errors without establishing a further procedure that resolves them. The reported accuracy includes the performance of the algorithm before either gap has been addressed in an evaluated extension.
Limits of the evaluation
The manual comparison gives strong agreement with the particular expert reference. The paper does not report an independent second annotation, provide agreement among annotators, or specify a scoring policy for multiple permissible divisions. The original consultation with Sinhala and Sanskrit scholars helped define rules for the difficult vocabulary. The later manual comparison verifies agreement with an expert. Those activities play different roles, and the account leaves open whether another expert would choose the same boundaries in every ambiguous case. A measure of expert agreement would help distinguish inconsistency in the reference task from difficulty in the algorithm.
The corpus experiment also leaves the comparison with alternative methods open. The paper mentions other syllabifiers to explain earlier approaches and motivates language-specific decisions with known difficulties of a universal sonority account. Its evaluation measures a full Sinhala procedure against manual divisions. It does not put two methods on the same set of words under the same scoring criterion. The claim supported by the number is high exact agreement in the reported setup. Comparative superiority over a sonority-only default or another way of implementing Sinhala boundaries would require a separate experiment.
Aggregate word accuracy leaves uncertainty about individual branches. Common patterns receive many opportunities to affect the score, while a rare long-cluster rule can contribute very little to it. A branch count tells the reader how often that branch was used. It leaves unknown the number of decisions for that branch that the expert accepted, and the number of correct whole words in which the branch took part. The paper also does not report results by length, by independently identified word origin, or by compound status. Each of those breakdowns would address a narrower generalization than the overall result.
The downstream speech applications remain motivations. The authors built the procedure for use in Sinhala text-to-speech and discuss relevance to recognition. The experiment compares divisions in word forms. It contains no listening evaluation of synthesized speech, recognition comparison, or analysis of how errors in converting letters to sounds affect the final divisions. A correct division of a given phoneme sequence is a property of the syllabifier. Correct conversion of a written form to that sequence is a separate dependency. The letter-to-sound module is mentioned, with its fuller treatment placed outside the paper.
Limits of the formal description
The algorithm is explicit about the priority of the cluster tests, the placement of boundaries, and the choice of the first minimum in the sonority case. A few implementation details are less explicit. The prose instructs the procedure to work on the remainder after a boundary is placed. The appendix recurses using a phoneme array and a position, and its test for a terminal syllable names only the array as input to the vowel count. If the count is literally over the original full array on every call, advancing the current position alone leaves the count unchanged. The intended progression through the remaining part of the word is clear from the surrounding description. The listing leaves the details of enforcing it unresolved.
There is related underspecification in the sonority helper. The linguistic rule says to search the intervening cluster. The helper description gives an array and a starting position, without spelling out how the implementation stops at the next vowel. The rule’s narrative scope is the cluster, and an implementation needs that scope to produce the stated result. The paper also does not give a general treatment for a phoneme array with no vowel. The described scans assume that they can reach a vowel, an assumption consistent with the syllable shapes being studied. These details constrain how literally the appendix can be read as executable pseudocode.
Finally, the proposed syllable shapes and the tests that place cuts have different levels of precision. The shape description allows a bounded number of consonant positions on each side of the nucleus. The branch for clusters beyond the shorter cases is stated in terms of a position relative to the following vowel or to a sonority minimum. Its presentation includes no separate check that every possible input split obeys the proposed shape. The results show how the procedure behaved on the tested words. They leave open a formal guarantee about every phoneme sequence that a caller might pass to it.
What came after
The authors expected the algorithm to serve as a component of Sinhala speech and language processing, with text-to-speech as its immediate motivation. Their discussion of compounds points to a specific extension. A system that can find the constituent words inside a written compound could pass those pieces separately to the syllabifier, then assemble the resulting divisions. Their observations about directly encoded foreign words identify another open problem, where the relevant pronunciation and boundaries may require additional analysis before the rules can be applied reliably.
There is no documented follow-up study for which a later use of these rules can be described here. The paper establishes the authors’ intended application, the decisions made by the syllabifier, and its agreement with an expert on the selected corpus vocabulary. It leaves the performance of the proposed compound treatment and the effect of the syllabifier on synthesized speech as open questions.
Cite
Cite as Ruvan Weerasinghe, Asanka Wasala and Kumudu Gamage. 2005. A Rule Based Syllabification Algorithm for Sinhala. Second International Joint Conference on Natural Language Processing: Full Papers.
@inproceedings{weerasinghe2005rule,
title = {{A Rule Based Syllabification Algorithm for Sinhala}},
author = {Ruvan Weerasinghe, Asanka Wasala and Kumudu Gamage},
booktitle = {Second International Joint Conference on Natural Language Processing: Full Papers},
year = {2005},
doi = {10.1007/11562214\_39},
url = {https://doi.org/10.1007/11562214_39}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/weerasinghe-2005-rule-based-syllabification-algorithm-sinhala/