Wnintro 3
Wnintro 3
Wnintro 3
NAME
wnintro – introduction to WordNet library functions
DESCRIPTION
This section of the WordNet Reference Manual contains manual pages that describe the WordNet library
functions and API.
The WordNet library is used by all of the searching interfaces provided with the various WordNet pack-
ages. Additional programs in the system, such as grind(1WN), also use functions in this library.
The WordNet library is provided in both source and binary forms (on some platforms) to allow users to
build applications and tools to their own specifications that utilize the WordNet database. We do not
provide programming support or assistance.
The code conforms to ANSI C standards. Functions are defined with function prototypes. If you do not
have a compiler that accepts prototypes, you must edit the source code and remove the prototypes before
compiling.
LIST OF WORDNET LIBRARY FUNCTIONS
Not all library functions are listed below. Missing are mainly functions that are called by documented
ones, or ones that were written for specific applications or tools used during WordNet development.
Data structures are defined in wn.h.
The command line interface is a good example of a simple application that uses several WordNet library
functions.
Many of the library functions are passed or return syntactic category or synset type information. The
following table lists the possible categories as integer codes, synset type constant names, syntactic
category constant names, single characters and character strings.
__________________________________________________________
__________________________________________________________
Integer Synset Type Syntactic Category Char String
1 NOUN NOUN n noun
2 VERB VERB v verb
3 ADJ ADJ a adj
4 ADV ADV r adv
__________________________________________________________
5 SATELLITE ADJ s n/a
ENVIRONMENT VARIABLES (UNIX)
WNHOME Base directory for WordNet. Default is /usr/local/WordNet-3.0.
WNSEARCHDIR Directory in which the WordNet database has been installed. Default is
WNHOME/dict.
REGISTRY (WINDOWS)
HKEY_LOCAL_MACHINE\SOFTWARE\WordNet\3.0\WNHome
Base directory for WordNet. Default is C:\Program Files\WordNet\3.0.
FILES
lib/libwn.a WordNet library (Unix)
lib\wn.lib WordNet library (Windows)
include header files for use with WordNet library
SEE ALSO
wnintro(1WN), binsrch(3WN), morph(3WN), wnsearch(3WN), wnutil(3WN), wnintro(5WN),
wnintro(7WN).
Fellbaum, C. (1998), ed. "WordNet: An Electronic Lexical Database". MIT Press, Cambridge, MA.
BUGS
Please report bugs to wordnet@princeton.edu.