take some functions from WordCluster to TemplateExtracito