summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-II/1-WordNet/Outcast.java
blob: 296fd7966463f92a60b5c6eb6ea18979611ce064 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* vim: set expandtab tabstop=4 shiftwidth=4 : */

public class Outcast
{
    // constructor takes a WordNet object
    public Outcast(WordNet wordnet)
    {
    }

    // given an array of WordNet nouns, return an outcast
    public String outcast(String[] nouns)
    {
        return "";
    }

    // for unit testing of this class (such as the one below)
    public static void main(String[] args)
    {
        WordNet wordnet = new WordNet(args[0], args[1]);
        Outcast outcast = new Outcast(wordnet);
        for (int t = 2; t < args.length; t++) {
            String[] nouns = In.readStrings(args[t]);
            StdOut.println(args[t] + ": " + outcast.outcast(nouns));
        }
    }
}