Neuroscience, Regular Expressions, Computer Science, Machine Learning.
effort for “speaking” the language) of this construction is terrible; a naive implementation of the union of regular expressions is: function isAnimalOrHeadgear(word): for regex in {cat, dog, horse, ..., cap, hat, scarf, ...}: if regex.matches(word): return true return false Just like the human