TextNormalizer
in package
implements
TextNormalizerInterface
Interfaces, Classes and Traits
- TextNormalizerInterface
- Creates a normalized version of the given input text
Table of Contents
- CASE_FOLD = [['µ', 'ſ', "ͅ", 'ς', "ϐ", "ϑ", "ϕ", "ϖ", "ϰ", "ϱ", "ϵ", "ẛ", "ι", "ß", "ẞ"], ['μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "ṡ", 'ι', 'ss', 'ss']]
- normalize() : string
Constants
CASE_FOLD
private
array<int, array<int, string>>
CASE_FOLD
= [['µ', 'ſ', "ͅ", 'ς', "ϐ", "ϑ", "ϕ", "ϖ", "ϰ", "ϱ", "ϵ", "ẛ", "ι", "ß", "ẞ"], ['μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "ṡ", 'ι', 'ss', 'ss']]
Methods
normalize()
public
normalize(string $text[, mixed $context = null ]) : string
Parameters
- $text : string
-
The text to normalize
- $context : mixed = null
-
Additional context about the text being normalized (optional)