summaryrefslogtreecommitdiffstats
path: root/linguistics/src/main/java/com/yahoo/language/process/Normalizer.java
blob: e426b2b6d541366f41b6e2e897ab7ef83341b3bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.language.process;

/**
 * <p>This interface provides NFKC normalization of Strings through the underlying linguistics library.</p>
 *
 * @author Mathias Mølster Lidal
 */
public interface Normalizer {

    /**
     * <p>NFKC normalizes a String.</p>
     *
     * @param input String to normalize.
     * @return The normalized String.
     * @throws ProcessingException If underlying library throws an Exception.
     */
    String normalize(String input);

}