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

import com.yahoo.language.Language;

/**
 * Interface for providers of text transformations such as accent removal.
 *
 * @author Mathias Mølster Lidal
 */
public interface Transformer {

    /**
     * Remove accents from input text.
     *
     * @param input    text to transform
     * @param language language of input text
     * @return text with accents removed, or input-text if the feature is unavailable
     * @throws ProcessingException thrown if there is an exception stemming this input
     */
    String accentDrop(String input, Language language);

}