Skip to main content

intent_terms

Function intent_terms 

Source
pub fn intent_terms(intent: &str) -> BTreeSet<String>
Expand description

The words of a free-text intent, lowercased, three characters or more, deduplicated.

use majordomus_cli::devcontext::intent_terms;
let t = intent_terms("Make the CONTEXT compiler explain a budget");
assert!(t.contains("context"));
assert!(t.contains("budget"));
assert!(!t.contains("a"));