thematic words algorithm added