Input

Word Lists

class cardbuilder.input.word_list.WordList(word_input_forms, language, additional_forms)[source]

The base class for all word lists; all word lists inherit from this class. Behaves like a Python list by implementing iteration, length, item retrieval by index and slicing.

class cardbuilder.input.input_list.InputList(file_path, language, additional_forms=None)[source]

Bases: cardbuilder.input.word_list.WordList

The class for user-input word lists. It expects a file with one word per line.

Word

class cardbuilder.input.word.Word(input_form, lang, additional_forms=None)[source]

The class representing words we want to build flashcards for. One word can correspond to multiple string forms of the same word, all of which can be used for lookup.