Commit Graph

5 Commits

Author SHA1 Message Date
Zorchenhimer 94a46a7072
Start implementing format sentences
Base word types are implemented.  The format for defining a word is as follows:

    {word_type:optionA,optionB}

Where `word_type` is one of the following:

    - adjective
    - noun
    - noun_phrase
    - pronoun
    - verb

Followed by a colon and a comma separated list of options for that word.
Options are as follows (adjectives have no options):

Nouns:
    - compound
    - plural

Noun Phrase:
    - indefinite
    - noadj
    - plural
    - compound

Pronouns:
    - plural

Verbs:
    - conjugation type: i (default), you, it, we, or they
    - conjugation time: past, present (default), or future
    - invert (not implemented yet)

Options for a word type are optional and may be omitted.
2021-02-17 18:07:23 -05:00
Zorchenhimer 965a84725f
Add some more sentence types; Add pronouns
Added pronouns to the data.  These act similar to the other types of
words regarding getting random ones from the database.

More sentence types have been added, however they are all in their own
functions for now.  Eventually, these functions will be replaced by
format strings in the database and will not be hard coded.
2021-02-14 20:35:25 -05:00
Zorchenhimer abec5d2651
Added verb conjugation tests 2021-02-14 12:24:08 -05:00
Zorchenhimer 64b7ce434f Add verb conjugation
Added conjugation for verbs.  A single verb now gets appended onto a
noun phrase.
2021-02-13 20:22:55 -05:00
Zorchenhimer 3d6c1a444f Initial commit
Main structure is mostly figured out.  Only a noun phrase is currently
generated.
2021-02-13 11:39:05 -05:00