I need a keyword density calculation tool. Basically, what should happen is this:
1) We will pass the HTML title, meta tags and body content to the script
2) The script should then check the input and display the percentage density of each keyword
3) The output should be in XML format. The output should include:
i) Keyword
ii) Overall density (calculates density with all content combined)
iii) HTML Title density
iv) Keyword meta tag density
v) Description meta tag density
vi) Header density (eg. <h1>, <h2>, etc)
vii) Normal text density (excludes HTML title, meta tags and headers)
4) I'm thinking the XML output should be in this format:
<KeywordDensityTop>
<KeywordSet>
<Keyword>keyword</Keyword>
<Overall>Overall % Density</Overall>
<Title>Title % Density</Title>
<MetaKeyword>Keyword Meta Tag % Density</MetaKeyword>
<MetaDescription>Description Meta Tag % Density</MetaDescription>
<Header>Header % Density</Header>
<Text>Normal Text % Density</Text>
</KeywordSet>
......
<KeywordSet>
.......
</KeywordSet>
</KeywordDensityTop>
5) In addition to just recognizing single keywords, the script should also be able to recognize 2 and 3 word keyphrases and measure the density of those as well.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition. Please include full instructions if applicable on how to install the script on our server.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
The script will run on a Redhat Linux Server with Apache and optionally MySQL if required. You can use any language to write the script as long as it is efficient and will run without any problems on the target server.
I would prefer if the script could be written in either PHP or Coldfusion. However, you are free to use any language you prefer.