title: How can I find synonyms in estimated frequency order using JWNL(Wordnet Library)?
body: <p>Does anyone know how I can take the synonyms of a word using JWNL (Java Wordnet Library) ordered by estimated frequency? I know this can be done somehow, because Wordnet's application can do it. (I don't know if it matters, but I am using Wordnet 2.1)</p>
  
  <p>Here is my code of how I get synonyms, could anyone please tell me what I should add...
  (completely different ways of doing it are also welcomed!)</p>
  
  <pre><code>  ArrayList&lt;String&gt; synonyms=new ArrayList&lt;String&gt;();
    System.setProperty("wordnet.database.dir", filepath);
    String wordForm = "make";
    Synset[] synsets = database.getSynsets(wordForm,SynsetType.VERB);
    if (synsets.length &gt; 0) {
         for (int i = 0; i &lt; synsets.length; i++) {
      String[] wordForms = synsets[i].getWordForms();
      for (int j = 0; j &lt; wordForms.length; j++) {
             if(!synonyms.contains(wordForms[j])){
          synonyms.add(wordForms[j]); }
                  }
             }
       }
  </code></pre>