1   package eu.fbk.dh.tint.simplifier.rules;
2   
3   import java.util.ArrayList;
4   import java.util.HashMap;
5   import java.util.List;
6   import java.util.Map;
7   
8   /**
9    * Created by alessio on 15/02/17.
10   */
11  
12  public class DenominatiSplittingRule extends SimpleSplittingRule{
13  
14      public DenominatiSplittingRule() {
15          List<String> words = new ArrayList<>();
16          Map<Integer, String> replacements = new HashMap<>();
17          words.add(",");
18          words.add("denominat(e|i)");
19          words.add("rispettivamente");
20          words.add(":");
21          replacements.put(0, "");
22          replacements.put(1, "Ess$1 sono denominat$1");
23          setWords(words);
24          setReplacements(replacements);
25          setHead(1);
26          setUseRegex(true);
27      }
28  }