synset.rb

Path: | lib/wordnet/synset.rb
Modified: | Wed Sep 03 15:25:57 GMT 2003

WordNet synonym-set object class

## Synopsis

      ss = lexicon.lookupSynset( "word", WordNet::Noun, 1 )
          puts "Definition: %s" % ss.gloss
      coords = ss.coordinates

## Description

Instances of this class encapsulate the data for a synonym set (‘synset’) in a Wordnet lexical database. A synonym set is a set of words that are interchangeable in some context.

## Author

Michael Granger <ged@FaerieMUD.org>

Copyright © 2002, 2003 The FaerieMUD Consortium. All rights reserved.

This module is free software. You may use, modify, and/or redistribute this software under the terms of the Perl Artistic License. (See language.perl.com/misc/Artistic.html)

Much of this code was inspired by/ported from the Lingua::Wordnet Perl module by Dan Brian.

## Version

     $Id: synset.rb,v 1.5 2003/09/03 07:47:29 deveiant Exp $

Required files

sync wordnet/constants

Classes and Modules

Module WordNet
::Module WordNet::Constants
::Class WordNet::Lexicon
::Class WordNet::LexiconError
::Class WordNet::LookupError
::Class WordNet::Synset
:: ::Class WordNet::Synset::Pointer
::Class WordNet::SynsetError
::Class WordNet::TestCase