You could probably use a template as your default response for this. Something like, Template("I do not understand your {if (sentence.includes("?")) { "question" } else { "statement" }}.")