From ac4eefee2279ede5ce06444830ecb6dea4b7e186 Mon Sep 17 00:00:00 2001 From: Zorchenhimer Date: Sun, 14 Feb 2021 21:19:55 -0500 Subject: [PATCH] Solidify sentence string format "Convert" the currently implemented sentences into format strings. These strings are not parsed yet. --- generic.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/generic.go b/generic.go index fe0bb49..b4c9be1 100644 --- a/generic.go +++ b/generic.go @@ -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))