migrate NLP stuff from negochat project