WordNet/wn

Table of Contents

NAME
wn - command line interface to WordNet lexical database

SYNOPSIS
wn [searchstr ] [-h ] [-g ] [-a ] [-l ] [-o ] [-s ] [-n# ] [search_option ... ]

DESCRIPTION
wn provides a command line interface to the WordNet database, allowing synsets and relations to be displayed  as formatted text. For each word, different searches are provided, based on syntactic category and pointer types. Although only base forms of words are usually stored in WordNet, users may search for inflected forms. A morphological process is applied to the search string to generate a form  that is present in WordNet.

The command line interface is often useful when writing scripts to extract information from the WordNet database. Post-processing of the output with various scripting tools can reformat the results as desired.

OPTIONS

 * Print help text before search results. :Display textual glosses associated with synsets. :Display lexicographer  file information. :Display synset offset of each synset. :Display each  word's sense numbers in synsets. :Display the WordNet copyright notice,  version number, and license. :Perform search on sense number #  only.  :Display overview of all senses of searchstr  in all syntactic categories.

Search Options
Note that the last letter ofsearch_option generally denotes the part of speech that the search applies to:n for nouns,v  for verbs,a for adjectives, andr for adverbs. Multiple searches may be done forsearchstr with a single command by specifying all the appropriate  search options.


 * Display synonyms and immediate hypernyms of synsets containing searchstr . Synsets are ordered by estimated  frequency of use.  For adjectives, if searchstr  is in a head synset, the  cluster's satellite synsets are displayed in place of hypernyms.  If searchstr   is in a satellite synset, its head synset is also displayed. :Display  verb synonyms and immediate hypernyms of synsets containing searchstr  .  Synsets are grouped by similarity of meaning. :Display synsets containing antonyms of searchstr . For adjectives, if searchstr   is in a head synset, searchstr  has a direct antonym. The head synset  for the direct antonym is displayed along with the direct antonym's satellite  synsets.  If searchstr  is in a satellite synset, searchstr  has an indirect  antonym via the head synset, which is displayed. :Display familiarity and polysemy information for searchstr . :Recursively display hypernym (superordinate) tree for searchstr   (searchstr  IS A KIND OF _____  relation). :Display immediate  hyponyms (subordinates) for searchstr  (_____ IS A KIND OF  searchstr   relation). :Display hyponym (subordinate) tree for searchstr  .  This is a recursive search that finds the hyponyms of each hyponym. :Display the coordinates (sisters) of searchstr .  This search  prints the immediate hypernym for each synset that contains searchstr   and the hypernym's immediate hyponyms. :Display derivational  morphology links between noun and verb forms. :Display  domain that searchstr  has been classified in. :Display  all terms classified as members of the searchstr 's domain. :Display  substance meronyms of searchstr  (HAS SUBSTANCE  relation). :Display  part meronyms of searchstr  (HAS PART  relation). :Display member  meronyms of searchstr  (HAS MEMBER  relation). :Display all meronyms  of searchstr  (HAS PART, HAS MEMBER, HAS SUBSTANCE  relations). :Display meronyms for searchstr  tree.  This is a recursive search that  prints all the meronyms of searchstr  and all of its hypernyms. :Display part of  holonyms of searchstr  (PART OF  relation). :Display  member of  holonyms of searchstr  (MEMBER OF  relation). :Display  substance of  holonyms of searchstr  (SUBSTANCE OF  relation). :Display  all holonyms of searchstr  (PART OF, MEMBER OF, SUBSTANCE OF  relations).  :Display holonyms for searchstr  tree.  This is a recursive search  that prints all the holonyms of searchstr  and all of each holonym's holonyms.  :Display entailment relations of searchstr . :Display applicable  verb sentence frames for searchstr .  :Display cause to  relations  of searchstr . :Display pertainyms of searchstr . :Display adjective values for noun attribute, or noun attributes  of adjective values. :List compound words containing  searchstr  as a substring.

SEARCH RESULTS
The results of a search are written to the standard output. For each search, the output consists a one line description of the search, followed by the search results.

All searches other than -over  list all senses matching the search results  in the following general format. Items enclosed in italicized square brackets ([ ... ] ) may not be present.

EXIT STATUS
wn normally exits with the number of senses displayed. Ifsearchword is not found in WordNet, it exits with0 .

If the WordNet database cannot be opened, an error messages is displayed and wn  exits  with -1 .

ENVIRONMENT VARIABLES (UNIX)

 * Base directory for WordNet.  Default is /usr/local/WordNet-3.0 . :Directory in which the  WordNet database has been installed.   Default is WNHOME/dict .

REGISTRY (WINDOWS)

 * Base directory for WordNet.  Default is C:\Program Files\WordNet\3.0 .

FILES

 * database index files :database data files :files of sentences illustrating  the use of verbs :morphology exception lists

BUGS
Please report bugs to wordnet@princeton.edu.

[http:// Table of Contents]


 * NAME
 * SYNOPSIS
 * DESCRIPTION
 * OPTIONS
 * Search Options
 * SEARCH RESULTS
 * EXIT STATUS
 * ENVIRONMENT VARIABLES (UNIX)
 * REGISTRY (WINDOWS)
 * FILES
 * SEE ALSO
 * BUGS

Source:

http://wordnet.princeton.edu/man/wn.1WN.html