Extensible system for analysing and manipulating natural language