In http://www.miislita.com/fractals/keyword-density-optimization.html I explained to the SEO community the concept of document linearization as part of document GAP analysis. Marketers learned what IR graduate students already know: that document linearization (i.e., markup removal) is just one component of document indexing.
Keyword distribution, word distances, phrase matching, etc. are obtained from the text stream that results from linearization, not from the apparent position of text that is rendered by a browser and visually inspected by average end users. Document linearization debunks the common SEO Keyword Density Myth. One thing is the apparent distribution of words as perceived when end users visually scan a document and another thing is the actual word distribution as parsed by a search engine. The futility of computing KD values is quite obvious.
Here is a report of another recent SEO that discovered the power of document linearization:
The testimonial is worth to read.
The post https://irthoughts.wordpress.com/2007/12/20/from-keyword-density-to-william-tuttes-legacy/ is also relevant these days.
Search for posts on keyword density: https://irthoughts.wordpress.com/?s=keyword+density