There we have defined a custom pattern “Food” which matches such phrases as “Potatos”, “Tomatos”, “Raspberry” and “Razz”.
We could define it in a single oneliner like (potatos|tomatos|raspberry|razz), but imagine if it is a really long list of variants.

Attributes

value attribute

This attribute contains a pattern's content in form of pattern syntax.

This attribute is required if you don't define pattern through nested patterns.

name attribute

Defines a unique name of the custom pattern.
You can then reference such pattern inside another one by this name, using $ symbol before the name.

This attribute is required for custom patterns only. It doesn't affect input patterns.

Do not use any special symbols and pattern syntax reserved symbols and words in the name of your patterns.
Also note that each name must be unique through all patterns in your Botscript and it must not clash with common patterns.