Add TextDefinition recognition.