Reallowing is/are for fact entry

This commit is contained in:
Chris Sexton 2013-09-04 21:56:03 -04:00
parent 374ea3fc7f
commit e56f2d7270
1 changed files with 9 additions and 0 deletions

View File

@ -82,6 +82,15 @@ func findAction(message string) string {
panic(err) panic(err)
} }
action := r.FindString(message) action := r.FindString(message)
if action == "" {
if strings.Contains(message, " is ") {
return "is"
} else if strings.Contains(message, " are ") {
return "are"
}
}
return action return action
} }