| 1 |
package morfologik.stemming; |
| 2 |
|
| 3 |
import java.util.List; |
| 4 |
|
| 5 |
/** |
| 6 |
* A generic "stemmer" interface in Morfologik. |
| 7 |
*/ |
| 8 |
public interface IStemmer { |
| 9 |
/** |
| 10 |
* Returns a list of {@link WordData} entries for a given word. The returned |
| 11 |
* list is never <code>null</code>. Depending on the stemmer's |
| 12 |
* implementation the {@link WordData} may carry the stem and additional |
| 13 |
* information (tag) or just the stem. |
| 14 |
* <p> |
| 15 |
* The returned list and any object it contains are not usable after a |
| 16 |
* subsequent call to this method. Any data that should be stored in between |
| 17 |
* must be copied by the caller. |
| 18 |
* |
| 19 |
* @param word The word (typically inflected) to look up base forms for. |
| 20 |
* @return A list of {@link WordData} entries (possibly empty). |
| 21 |
*/ |
| 22 |
public List<WordData> lookup(CharSequence word); |
| 23 |
} |