On the learning of vague languages for syntactic pattern recognition