smarter parsing of pages into words