add more abstract methods in TextIndicatorParser

add pattern matching to BasicTextParser