OCaml WordNet

OCaml binding to WordNet 2.1 

Description

This package contains the OCaml Interface to WordNet 2.1. It enables Ocaml programs to use
the Wordnet dictionary for (english) word forms and meanings. This library directly parses the WordNet dictionary files, and does not depend on any other libraries. For more information on WordNet  refer  WordNet.

 This library requires WordNet 2.1 to be installed (WordNet is available as a free download).

Download 

This library is released under the BSD license.

WordnetOcaml-0.1.tar.gz  

The package contains:

API 

View OCaml Wordnet API

Example Application

related.ml shows an example application of the API, Given a word, finds related words

   relatedWords "camel"
   gives

 [(0, "camel"); (0, "hippo"); (0, "hippopotamus");
 (0, "hippopotamus_amphibius"); (0, "llama"); (0, "musk_hog");
 (0, "peccary"); (0, "river_horse"); (0, "ruminant"); (0, "swine");
 (0, "vicugna_vicugna"); (0, "vicuna")]

   relatedWords "google"
   gives

 [(0, "google"); (0, "google"); (1, "cast_around"); (1, "re-explore");
 (0, "ask_jeeves"); (0, "beat_about"); (0, "cast_about"); (0, "prospect");
 (0, "yahoo")]