tock / ai.tock.bot.engine.nlp / KeywordService / detectKeywordIntent

detectKeywordIntent

open fun detectKeywordIntent(sentence: String): Intent? (source)

If returns not null, a keyword is detected, and the returned intent is used to find the story. Use Intent.keyword to redirect to the default keyword handler.