PhonemeCost class

Class to specify Levenshtein distance weights for Korean phonemes

Constructors

PhonemeCost({double chosungCost = 1.5, double jungsungCost = 1.0, double jongsungCost = 0.5})
Constructs a PhonemeCost object with specified weights for each phoneme
const

Properties

chosungCost double
Weight assigned to the first phoneme of a syllable
final
hashCode int
The hash code for this object.
no setterinherited
jongsungCost double
Weight assigned to the third phoneme of a syllable
final
jungsungCost double
Weight assigned to the second phoneme of a syllable
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCostByOrderOfPhoneme(int orderIndex) double
Retrieves the weight based on the order of the phoneme in a syllable
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