clj-duckling.engine.edn

The edn format rules engine

edn-readers

pattern-fn

(pattern-fn pattern)
Makes a pattern function from the pattern slice (regex...)

read-rules-file

(read-rules-file rules-file logger)
Read rules from a file

Args:
rules-file (string): filename path
logger (Logger): logger

Returns:
(map): a Rules map {:context {}, :tests []}

rule-reader

(rule-reader {:keys [name pattern production]})

ukey

this unit key