Go to file
Zorchenhimer 553b89cfe0
Implement consumeNewWord()
Implement the consumeNewWord() method that will handle new words defined
in format strings enclosed in double curly braces.  The format is as
follows:

    {{word_type:word:options,list}}

The notable difference between this and the other definitions is that
only verbs and nouns are allowed to be defined this way.  Additionally
only regular verbs and nouns are allowed (the "irregular" option is
ignored).

A new sentence has been added that utilizes this new function.

Lastly, some of the option parsing code for verbs and nouns has
been separated into their own functions so it can be reused between both
consumeWord() and consumeNewWord().
2021-02-20 21:35:26 -05:00
api Initial commit 2021-02-13 11:39:05 -05:00
cmd Rename generic.go to english.go 2021-02-17 09:17:04 -05:00
database Start implementing format sentences 2021-02-17 18:07:23 -05:00
frontend Rename Random() to Hack() 2021-02-14 16:49:11 -05:00
models Add note about irregular nouns not being implemented 2021-02-20 21:17:12 -05:00
.gitignore Initial commit 2021-02-13 11:39:05 -05:00
LICENSE.md Add MIT license 2021-02-13 12:05:28 -05:00
Makefile Fix makefile 2021-02-14 18:25:42 -05:00
english.go Implement consumeNewWord() 2021-02-20 21:35:26 -05:00
go.mod Initial commit 2021-02-13 11:39:05 -05:00
go.sum Initial commit 2021-02-13 11:39:05 -05:00
hacker.go Start implementing format sentences 2021-02-17 18:07:23 -05:00
word_lists.json Implement consumeNewWord() 2021-02-20 21:35:26 -05:00