Solidify sentence string format
"Convert" the currently implemented sentences into format strings. These strings are not parsed yet.
This commit is contained in:
parent
78b3b2313a
commit
ac4eefee22
14
generic.go
14
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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue