The Orthography Standardizer annotator takes tokens from the word layer and 'cleans up' their labels, creating tags on a new layer with standardized labels, which should be optimal for looking up lexicons, frequency computation, etc.
Configuration parameters are encoded as a JSON string, e.g.
{
"tokenLayerId":"word",
"lowerCase":"true",
"replacements":{
"\\s" : "",
"’" : "'",
"[“”]" : "\"",
"—" : "-",
"[\\p{Punct}&&[^-~:']]" : "",
"^[-']+" : "",
"[-']+$" : ""
},
"orthographyLayerId":"orthography"
}
The parameters are: