NormalizationOptions class

Configuration options for string normalization.

Constructors

NormalizationOptions({bool enabled = true, bool trimWhitespace = true, bool removeSpaces = false, bool toLowerCase = true, bool removeSpecialChars = false, bool removeAccents = false, String? locale, PreProcessor? preProcessor, PostProcessor? postProcessor, Tokenizer? tokenizer})
Creates a NormalizationOptions.
const

Properties

enabled bool
Whether normalization is enabled (default: true).
final
hashCode int
The hash code for this object.
no setterinherited
locale String?
Locale identifier for locale-sensitive operations (reserved for future use).
final
postProcessor PostProcessor?
Custom function to run after standard normalization.
final
preProcessor PreProcessor?
Custom function to run before standard normalization.
final
removeAccents bool
Whether to remove accents/diacritics (default: false).
final
removeSpaces bool
Whether to remove all whitespace characters (default: false).
final
removeSpecialChars bool
Whether to remove special characters (non-alphanumeric) (default: false).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenizer Tokenizer?
Tokenizer used by token-based metrics (cosine/jaccard/overlap/tversky).
final
toLowerCase bool
Whether to convert to lower case (default: true).
final
trimWhitespace bool
Whether to trim leading/trailing whitespace (default: true).
final

Methods

copyWith({bool? enabled, bool? trimWhitespace, bool? removeSpaces, bool? toLowerCase, bool? removeSpecialChars, bool? removeAccents, String? locale, PreProcessor? preProcessor, PostProcessor? postProcessor, Tokenizer? tokenizer}) NormalizationOptions
Creates a copy of this object with the given fields replaced with the new values.
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