Package pylilac :: Module Word :: Class Word
[frames | no frames]

Class Word

Known Subclasses:
Particle, WordFilter

A single unit of language which has meaning and can be expressed.
Method Summary
  __init__(self, form, headword, attributes)
Create a word with its form, its headword and its attributes.
  __repr__(self)
Give a verbose representation for a word.
  __str__(self)
Give a concise representation for a word.

Method Details

__init__(self, form, headword, attributes=None)
(Constructor)

Create a word with its form, its headword and its attributes.

Example:
       Word(u"heart", Headword("eng", u"heart", 1, "noun", None, "kawcesi"))
       Word(u"hearts", headwords["eng", u"heart", 1], {"number": "pl"})
       Word(u"hɑɹts", hw, {"number": "pl"})
       Word(u"moku", "tko", moku)
Parameters:
form - The traditional, standard or neutral form of the word, either graphical or phonical.
           (type=unicode)
headword - A headword
           (type=Headword)
attributes -

The attributes of the word; default is the empty dictionary.

Attributes can indicate word declensions or modifications.
           (type=dict (srt, str))

__repr__(self)
(Representation operator)

Give a verbose representation for a word.

__str__(self)
(Informal representation operator)

Give a concise representation for a word.

Generated by Epydoc 2.1 on Sat Aug 26 09:33:46 2006 http://epydoc.sf.net