grapheme-kit: Grapheme-Level Metrics and Text Processing for Multilingual NLP

arXiv cs.CL Tools

Summary

Introduces grapheme-kit, an open-source Python library that extends lexical distance and evaluation metrics to operate on grapheme clusters instead of Unicode code points, with improved processing for Tamil and Sinhala.

arXiv:2607.22456v1 Announce Type: new Abstract: Existing lexical distance, similarity, and evaluation metrics operate on Unicode code points, which can misrepresent errors in writing systems where a single grapheme is represented by multiple Unicode code points. We introduce grapheme-kit, an open-source Python library that extends these metrics to operate on grapheme clusters instead. The library also provides improved grapheme processing for Tamil and Sinhala, including accurate grapheme cluster identification and grapheme composition/decomposition utilities. Through an OCR case study, we demonstrate that grapheme-level metrics provide a more faithful evaluation of complex scripts.
Original Article
View Cached Full Text

Cached at: 07/27/26, 07:41 AM

# grapheme-kit: Grapheme-Level Metrics and Text Processing for Multilingual NLP
Source: [https://arxiv.org/abs/2607.22456](https://arxiv.org/abs/2607.22456)
[View PDF](https://arxiv.org/pdf/2607.22456)

> Abstract:Existing lexical distance, similarity, and evaluation metrics operate on Unicode code points, which can misrepresent errors in writing systems where a single grapheme is represented by multiple Unicode code points\. We introduce grapheme\-kit, an open\-source Python library that extends these metrics to operate on grapheme clusters instead\. The library also provides improved grapheme processing for Tamil and Sinhala, including accurate grapheme cluster identification and grapheme composition/decomposition utilities\. Through an OCR case study, we demonstrate that grapheme\-level metrics provide a more faithful evaluation of complex scripts\.

## Submission history

From: Menan Velayuthan \[[view email](https://arxiv.org/show-email/9e6ff006/2607.22456)\] **\[v1\]**Fri, 24 Jul 2026 16:14:37 UTC \(1,293 KB\)

Similar Articles

KG2Cypher: Data-Centric Pipeline for Building Enterprise Text-to-Cypher Systems

arXiv cs.CL

KG2Cypher presents a data-centric pipeline for building enterprise text-to-Cypher systems from existing knowledge graphs. It uses LLMs to generate natural language question-Cypher pairs, validated by an LLM judge and human review, and achieves significant performance improvements on Korean enterprise datasets with LoRA-based fine-tuning.

Large Language Models for Math Education in Low-Resource Languages: A Study in Sinhala and Tamil

arXiv cs.CL

This paper evaluates the mathematical reasoning capabilities of large language models in Sinhala and Tamil, two low-resource South Asian languages, using a parallel dataset of independently authored problems. The study demonstrates that while basic arithmetic transfers well across languages, complex reasoning tasks show significant performance degradation in non-English languages, with implications for deploying AI tutoring tools in multilingual educational contexts.