different optimisations for lemmatizer