Commit Graph

3 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 ef8f4176b1
Rename Random() to Hack() 2021-02-14 16:49:11 -05:00
Zorchenhimer eeba54808b Reorganize things a bit
Removed the server object and moved the business layer into the main
namespace.  This turns the main namespace into a library instead of a
server implementation.  All of the http specific stuff (aside from
everything in frontend/) has been moved to the server commmand utility
in cmd/server.go.
2021-02-13 11:52:59 -05:00