Class GermanUmlautCharSequenceNormalizer

java.lang.Object
opennlp.tools.util.normalizer.GermanUmlautCharSequenceNormalizer
All Implemented Interfaces:
Serializable, CharSequenceNormalizer, OffsetAwareNormalizer

public class GermanUmlautCharSequenceNormalizer extends Object implements OffsetAwareNormalizer
A CharSequenceNormalizer that transliterates German umlauts and the eszett the way German conventionally expands them (DIN 5007-2): a-umlaut to ae, o-umlaut to oe, u-umlaut to ue, and eszett to ss, with the capital umlauts and the capital eszett (U+1E9E) expanded likewise.

This is the correct diacritic fold for German, where the generic AccentFoldCharSequenceNormalizer (which would yield a, o, u) is wrong. It is an expanding, offset-changing transform, so like the other folds it belongs to the derived matching form rather than to anything offset-preserving.

The fold matches the precomposed code points. A base letter followed by a combining diaeresis (for example a + U+0308) is not a member and passes through unchanged, so apply NFC composition first if the input may contain decomposed forms.

See Also: