mirror of https://github.com/velour/catbase.git
Reallowing is/are for fact entry
This commit is contained in:
parent
374ea3fc7f
commit
e56f2d7270
|
@ -82,6 +82,15 @@ func findAction(message string) string {
|
|||
panic(err)
|
||||
}
|
||||
action := r.FindString(message)
|
||||
|
||||
if action == "" {
|
||||
if strings.Contains(message, " is ") {
|
||||
return "is"
|
||||
} else if strings.Contains(message, " are ") {
|
||||
return "are"
|
||||
}
|
||||
}
|
||||
|
||||
return action
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue