By using rules method we can define custom behaviour and add necessary rules within it. Like symbols and abbreviations.
We have to provide the rules data and update the vocabulary accordingly.
The rule_data is a dictionary like {"dollar" : '$', "C M" : "CM"}
etc.
We can also include regex or functions as dictionary elements. Like lambda x:x*3
for triple.