Solidify sentence string format

"Convert" the currently implemented sentences into format strings.
These strings are not parsed yet.
This commit is contained in:
Zorchenhimer 2021-02-14 21:19:55 -05:00
parent 78b3b2313a
commit ac4eefee22
Signed by: Zorchenhimer
GPG Key ID: 70A1AB767AAB9C20
1 changed files with 12 additions and 2 deletions

View File

@ -19,6 +19,18 @@ func NewGeneric(db database.DB) (HackerQuotes, error) {
return &generic{db: db}, nil
}
/*
Sentence format
{word_type:options}
{{word_type:new word:properties}}
{pronoun} can't {verb:i,present} {noun_phrase}, it {verb:it,future} {noun_phrase}!
{verb:you,present} {noun_phrase:definite}, than you can {verb:you,present} {noun_phrase:definite}!
{noun_phrase} {verb}. With {noun_phrase:indifinite,noadj,compound}!
*/
func (g *generic) Hack() (string, error) {
sb := strings.Builder{}
@ -135,8 +147,6 @@ func (g *generic) Hack_t0() (string, error) {
return "", err
}
//fmt.Printf("(%s) definite: %t; hasAdj: %t; plural: %t\n", np, definite, hasAdj, plural)
sb := strings.Builder{}
sb.WriteString(toCap(np))