More work done on rules, almost implemented word context functionality