1 package org.daisy.pipeline.nlp.impl;
2
3 import java.util.Collection;
4
5 /**
6 * Find a string in a provided collection. The implementations define the
7 * matching strategy (full, prefix, suffix...)
8 */
9 public interface IStringFinder {
10
11 void compile(Collection<String> matchable);
12
13 /**
14 * @param input the string to find
15 * @return null if not found, the matched substring of @param input
16 * otherwise
17 */
18 String find(String input);
19
20 boolean threadsafe();
21 }