added TextRule implementation.