Package pywikipedia :: Module wiktionary :: Class Noun
[show private | hide private]
[frames | no frames]

Class Noun

Term --+
       |
      Noun


This is class inherits from Term. It adds properties and methods specific to nouns
Method Summary
  __init__(self, lang, term, gender)
Constructor...
  getGender(self)
  setGender(self, gender)
  showcontents(self, indentation)
Prints the contents of this Term.
    Inherited from Term
  __getitem__(self)
Documenting as an afterthought is a bad idea I don't know anymore why I added this, but I'm pretty sure it was in response to an error message
  getLang(self)
  getTerm(self)
  setLang(self, lang)
  setTerm(self, term)
  wikiwrapasexample(self, wikilang)
Returns a string with the gender in a format ready for Wiktionary, if it is applicable
  wikiwrapastranslation(self, wikilang)
Returns a string with this term as a link followed by the gender in a format ready for Wiktionary
  wikiwrapforlist(self, wikilang)
Returns a string with this term as a link followed by the gender in a format ready for Wiktionary
  wikiwrapgender(self, wikilang)
Returns a string with the gender in a format ready for Wiktionary, if it is applicable

Method Details

__init__(self, lang, term, gender='')
(Constructor)

Constructor
Generally called with two parameters:
- The language of the term
- The term (string)

- gender is optional
Overrides:
pywikipedia.wiktionary.Term.__init__

showcontents(self, indentation)

Prints the contents of this Term. Every subobject is indented a little further on the screen. The primary purpose is to help keep your sanity while debugging.
Overrides:
pywikipedia.wiktionary.Term.showcontents (inherited documentation)

Generated by Epydoc 2.1 on Sun Jul 03 17:07:32 2005 http://epydoc.sf.net