!7 sS inspiration = [[ snippet titles "[OK]" ]]; sS program = [[ // check inspiration :o) assert(inspired "snippet titles") assert(inspired "\"[OK]\"") // phrases phrase "snippet titles" phrase "a list of strings" phrase "a quoted string" // synonyms "the snippet titles" = "snippet titles" // grammar singular_plural("snippet title", "snippet titles") // test parsing assert_parse("snippet titles are a list of strings", "snippet titles", "are", "a list of strings") // facts snippet titles are a list of strings "[OK]" is a quoted string // rule to answer a question fact_question_answer_upperCaseVars("X are Y", "what are X?", "Y") // check the rule assert_answer("what are snippet titles?", "a list of strings") ]]; p-experiment-tt { new RuleEngine(inspiration, program).printStuff(); }