KoreanLevenshtein class

Calculates the similarity between two Korean strings using Levenshtein distance with decomposed phonemes, enhancing accuracy.

Constructors

KoreanLevenshtein()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

jamoLevenshteinDistance(String s1, String s2, {PhonemeCost? phonemeCost, bool debug = false}) double
Computes the Levenshtein distance between two Korean strings based on decomposed phonemes.
jamoSimilarityPercentage(String s1, String s2, {bool replaceNumberToKorean = true, bool replaceSpecialCharToKorean = true, PhonemeCost? phonemeCost, List<SpecialCharToSpeech>? specialCharReplacementOptions}) double
Calculates the similarity percentage between two Korean strings based on decomposed phonemes.
replaceNumberWithKorean(String text) String
Replaces numeric characters in the text with their Korean representations.
replaceSpecialCharsWithKorean(String text, {required List<SpecialCharToSpeech> specialCharToSpeech}) String
Replaces special characters in the text with their Korean equivalents based on provided options.