class English extends Normalizer
For English we simply transform to lower case using mb_strtolower.
This should be used as a fallback for any language since mb_strtolower
will do at least half good a job
Methods
string |
normalize(string $w)
Transform the word according to the class description |
|
mixed |
transform($w)
Return the value transformed. |
from Normalizer |
array |
normalizeAll(array $items)
Apply the normalize function to all the items in the array |
from Normalizer |
static |
factory(string $language = 'English')
Just instantiate the normalizer using a factory method. |
from Normalizer |
Details
at line 12
public string
normalize(string $w)
Transform the word according to the class description
in Normalizer at line 35
public mixed
transform($w)
Return the value transformed.
in Normalizer at line 45
public array
normalizeAll(array $items)
Apply the normalize function to all the items in the array
in Normalizer at line 60
static public
factory(string $language = 'English')
Just instantiate the normalizer using a factory method.
Keep in mind that this is NOT required. The constructor IS
visible.