arXiv:2609.04391cs.CLSep 2026

Manuscript Offprint

arXiv:2609.04391

Evaluation of Phonetic Encoding Algorithms on Transcription Datasets

Can Özbey, Emre Kaplan, Berkin Deniz Kahya

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Can Özbey¹, Emre Kaplan¹, and Berkin Deniz Kahya¹,²

¹ Huawei Turkey R&D Center Istanbul, Turkey

² Dept. of Computer Engineering, Istanbul Technical University Istanbul, Turkey kahya25@itu.edu.tr

Abstract. In this work, a novel evaluation scheme built on a generalized variant of the Rand Index measure, namely, the Hüllermeier-Rifqi Index, is proposed in order to assess how well phonetic encoding algorithms conform to word-based transcriptions in IPA (International Phonetic Alphabet) notation. For this objective, the discordance score is obtained by calculating the absolute difference between the pairwise similarity values of ground-truth transcriptions and those of corresponding phonetic encodings, which are computed using normalized edit distance as a permutation dependent string metric. The resulting score is subsequently adjusted with respect to that of a random string generator incorporating the same alphabet as the encoder under consideration. A wide range of phonetic encoders were evaluated as such on multi-lingual transcription datasets along with their recall capabilities based on the collision rate. The validity of the proposed scheme is further supported by its applicability in measuring the orthographic transparency of a language when the writing system is viewed as an inherent phonetic representation.

Keywords: evaluation, phonetic encoding, phonetic transcription, hüllermeier-rifqi index, orthographic transparency.

1. Introduction

Phonetic encoding techniques provide a systematic way to translate written words into codes based on their pronunciation. The generated phonetic codes facilitate the comparison of words that are phonetically similar yet orthographically distinct. Their applications extend to diverse subdomains of computer science and information systems, including record linkage, data deduplication and normalization, phonetic search, spelling correction, transliteration, string similarity measurement, and other related areas [54]. Training neural networks on phonetic rather than orthographic representations, e.g., using pinyin for Chinese [13] or phonetic encoders for English [28], has been shown to empirically improve performance in various downstream natural language processing tasks such as language modeling, machine translation and part-of-speech tagging. The application of edit distance on phonetic encodings is also a common practice to measure similarity between speech transcriptions with the aim of compensating for errors generated by speech recognition systems [47, 49, 44, 31].

While the first formal account of a phonetic encoding procedure for name matching appears in a 1918 patent by Robert C. Russell [48], a conceptual antecedent can be traced back at least to the mid-19th century, notably in the work of Beniowski (1845) [3], who had proposed a mnemonic technique for effective number memorization by transforming numbers into words. Even though these two methods serve different purposes, Beniowski's method of decoding words to recall numbers employs a procedure notably similar to that of Russell's phonetic encoding, as both omit vowels and rely on mapping individual consonants or consonant groups to digits. Their main distinction lies in the direction in which encoding and decoding are carried out, that is, Russell's method is based on many-to-one mapping of letters to digits to obtain phonetic representation of words, whereas Beniowski's method is based on one-to-many mapping of digits to letters. Thus, the decoding phase of the latter is in fact structurally equivalent to the encoding phase of the former.

One of the best-known phonetic encoding algorithms, American Soundex [29], was later developed as a variant of Russell's encoding with several important modifications, including the retention of the first letter and the prefix truncation of the resulting code to a fixed length of characters. Six letter clusters were defined as groups of consonants organized by their broad phonetic similarity to construct the mapping rules, namely, {b,f,p,v}\{b, f, p, v\}, {c,g,j,k,q,s,x,z}\{c, g, j, k, q, s, x, z\}, {d,t}\{d, t\}, {l}\{l\}, {m,n}\{m, n\}, and {r}\{r\}. As such, each consonant is converted into a corresponding digit assigned to its cluster, with the exception of the first letter, which is preserved regardless of whether it is a vowel or a consonant. Several extensions of this algorithm, such as Refined Soundex [7] and Fuzzy Soundex [22], were later developed to provide finer granularity by means of extended consonant groups, while also allowing flexibility in code length. Metaphone [38], in particular, introduced a significantly more fine-grained encoding methodology through a comprehensive list of transformation rules that also involve multiple letter sequences denoting digraphs, being designed to better account for the highly irregular nature of English pronunciation. Its successor, Double Metaphone [39], extended the scope even further by incorporating additional rules for handling foreign words borrowed from other languages into English such as surnames derived from Slavic, Germanic, Romance, and several other language groups.

Evaluating phonetic encoders typically involves measuring how well they identify spelling variants or similar sounding words, particularly of proper nouns [30, 43], and as well as their performance in detecting duplicate entries in data storage systems [14]. Several studies have examined the impact of phonetic encoding algorithms on the performance of automatic spelling correction systems [53, 1], since employing phonetic information has a potential to improve the effectiveness of correcting orthographic errors [11]. An explicit example of such an evaluation was provided in [26], where a Soundex-like phonetic encoding technique designed specifically for Greek was evaluated with a focus on its performance in correcting spelling errors generated via edit operations. Notably, the study further demonstrated that even a full phonetic transcription may be outperformed by a well-designed phonetic code in retrieving similar sounding words resulting from the latter's higher recall rate. Thus, recall capability constitutes another key factor in the evaluation of phonetic encoders as highlighted by several other previous studies [42, 9], which suggest that phonetic codes with low granularity may be preferable depending on the task. The degree of granularity can be effectively measured by simply computing the collision rate [24], i.e., the average number of shared codes per input, reflecting an encoder's potential recall capability. However, to the best of our knowledge, no systematic evaluation methodology focusing on precision has been presented in the literature, aside from the extrinsic approaches mentioned earlier. Our objective in this work is to provide an evaluation scheme where we formulate a measure of the consistency between phonetic codes and ground-truth transcriptions, allowing for a direct assessment of how accurately the codes align with the actual sequence of sounds. In combination with the collision rate analysis, such an evaluation is fundamental to establishing a robust framework for thoroughly understanding the general capability of phonetic encoders. The proposed approach will make it feasible to conduct a comparative analysis based on the consistency measure between codes and transcriptions for those having a similar collision rate, and vice versa, in order to identify the better-performing one without depending on their specific performance metrics in downstream tasks.

To establish the mathematical basis of the evaluation scheme, we adapt the Hüllermeier-Rifqi Index, i.e., a generalized variant of the Rand Index, itself originally formulated to evaluate predictions of clustering algorithms. Given that both orthographic forms and transcriptions are permutation-dependent, we incorporate normalized edit distance into the computation of pairwise similarities for deriving the concordance score. Furthermore, sample pairs are partitioned into positive and negative sets of equal cardinality, thereby ensuring reliable evaluation and enabling the derivation of fuzzy counterparts of conventional measures defined in a discrete setting, namely, positive, negative, and overall concordance, corresponding to sensitivity, specificity, and accuracy, respectively. In the subsequent section, we first elaborate on how the concordance measure of Hüllermeier is formally modified to align with our objective. Then, in section 3, we apply the evaluation scheme to transcription datasets in four different languages (English, German, French and Swedish) using a diverse set of language-specific phonetic encoders, the performance of which is investigated based on their adjusted overall concordance scores and collision rates. At the end of the section, we show that the proposed scheme can be applied to measure the orthographic transparency of a language by regarding the writing system as its inherent phonetic representation, thus providing additional validation of the approach's effectiveness. Lastly, in section 4, we provide concluding remarks together with several suggestions for further improvement.

References (53)