textminer: initial port WIP