Evaluation of text correction using a combination of Levenshtein distance and Trie algorithm

Cynthia Natalie, Abba Suganda Girsang

Abstract


Nowadays, technology is advancing with various applications, especially in text processing, such as news recommendations, sentiment analysis, automatic scoring, and language translation. In some cases, spelling errors often occur when inputting text for the translation process, necessitating text correction methods to display suggestions as a result. Therefore, the problem statement raised is about how to improve the accuracy of text correction and evaluate the translation quality at the word level after correcting input text in the context of translation from Indonesian to English. This research aims to develop and evaluate the combination of Levenshtein distance algorithm and Trie to correct input text and evaluate the translation quality at the word level after correcting text. There are various text correction methods, such as Hamming distance, Levenshtein distance, Damerau-Levenshtein distance, and N-Gram. Among several text correction methods. Levenshtein distance algorithm is commonly used to calculate the distance between texts and can be enhanced by using a Trie for more efficient computation in evaluating text correction. This research method resulted in an accuracy of 82.25% with an F1 score of 84.39%, where the developed text correction model produced a good translation using BLEU score with an increase of 1.55% after text correction.

Keywords


ChatGPT; Google translate; Levenshtein distance; Text correction; Trie algorithm

Full Text:

PDF


DOI: http://doi.org/10.11591/ijict.v15i3.pp1340-1351

Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Cynthia Natalie, Abba Suganda Girsang

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

The International Journal of Informatics and Communication Technology (IJ-ICT)
p-ISSN 2252-8776, e-ISSNĀ 2722-2616
This journal is published by theĀ Intelektual Pustaka Media Utama (IPMU).

Web Analytics View IJICT Stats