Added permanent ending rule
Added variable and invariable word as exclusion