upstream version 1.2.2
[debian/freetts] / com / sun / speech / freetts / PartOfSpeech.java
1 /**
2  * Portions Copyright 2001 Sun Microsystems, Inc.
3  * Portions Copyright 1999-2001 Language Technologies Institute, 
4  * Carnegie Mellon University.
5  * All Rights Reserved.  Use is subject to license terms.
6  * 
7  * See the file "license.terms" for information on usage and
8  * redistribution of this file, and for a DISCLAIMER OF ALL 
9  * WARRANTIES.
10  */
11 package com.sun.speech.freetts;
12
13 /**
14  * Determines the part of speech of a word.
15  */
16 public interface PartOfSpeech {
17     /**
18      * Returns a description of the part of speech given a word.
19      * The string is implementation dependent.
20      *
21      * @param word the word to classify
22      *
23      * @return an implementation dependent part of speech for the word
24      */
25     public String getPartOfSpeech(String word);
26 }
27
28
29