constants.rb

Path: lib/wordnet/constants.rb  (CVS)
Last Update: Mon Apr 02 16:49:41 -0700 2007

This is a module containing constants used in the WordNet interface for Ruby. They are contained in a module to facilitate their easy inclusion in other namespaces. All constants in this module are also contained in the WordNet namespace itself.

E.g.,

  WordNet::Adjective == WordNet::Constants::Adjective

If you do:

  include WordNet::Constants

then:

  Adjective == WordNet::Adjective

Synopsis

  require 'wordnet'
  include WordNet::Constants

  lex = WordNet::Lexicon::new
  origins = lex.lookup_synsets( "shoe", Noun )

Authors

  • Michael Granger <ged@FaerieMUD.org>

Copyright

Copyright (c) 2003, 2005 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)

Version

 $Id: constants.rb 79 2007-02-20 19:07:32Z deveiant $

[Validate]