}
}
private String determineResponse(Discussion discussion) {
String response = null;
Utterance lastUtterance = discussion.getLastUtterance();
if (discussion.getSilenceSeconds() > (lastUtterance.complexity() / 2)) {
if (lastUtterance.getMessage().contains("?")) {
response = "I have no idea...";
}
else if (lastUtterance.complexity() < 3) {
response = "sup?";
}
else if (lastUtterance.complexity() < 10) {
response = "you could say that";
}
else {
response = "hmmm.... interesting";
}