Commit Graph

13 Commits

Author SHA1 Message Date
Zorchenhimer ac4eefee22
Solidify sentence string format
"Convert" the currently implemented sentences into format strings.
These strings are not parsed yet.
2021-02-14 21:19:55 -05:00
Zorchenhimer 78b3b2313a
Fix not re-randomizing before a nounPhrase() call 2021-02-14 21:18:30 -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 72298d6e8e
Implement generating compound nouns
Implemented generating compound nouns as well as filtering for the type
of noun when getting a list of noun IDs.
2021-02-14 18:33:13 -05:00
Zorchenhimer 8fd9d71625
Add toCap() to capitalize the first letter of a string 2021-02-14 18:31:56 -05:00
Zorchenhimer 9efa2cbe8c
Fix makefile 2021-02-14 18:25:42 -05:00
Zorchenhimer ef8f4176b1
Rename Random() to Hack() 2021-02-14 16:49:11 -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 32638d3b97 Add MIT license 2021-02-13 12:05:28 -05:00
Zorchenhimer 143712cffd Fix makefile
- Exclude files in cmd/ when looking for sources.
- Explicitly build cmd/server.go and cmd/generate.go separately.
- Add bin/generate recipe.
2021-02-13 12:02:41 -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
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