summaryrefslogtreecommitdiff
path: root/definition.py
blob: 877888d81a20865baa48289d9fae54727c9d1532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class Definition(object):

	#ID is relative to the word type, eg noun 1, noun 2, verb 1, verb 2, not to the entire list
	id = 0
	word = ""
	dictionary = ""
	word_type = ""
	definition = ""
	uses = []
	synonyms = []
	antonyms = []
	categories = []

	def __init__(self, word, id, dictionary, word_type, definition, uses = [], synonyms = [], antonyms = [], categories= [], see_also = False):
		self.word = word
		self.id = id
		self.dictionary = dictionary
		self.word_type = word_type
		self.definition = definition
		self.uses = uses
		self.synonyms = synonyms
		self.antonyms = antonyms
		self.categories = categories
		self.see_also = see_also