This software contains a default module that calculates the word-to-tag ratio in a series of tokens within an HTML document. It is a useful tool for analyzing document structure and content.
To get started, you'll need to include HTML::WordTagRatio::Ratio along with two other modules: HTML::Content::HTMLTokenizer and HTML::Content::ContentExtractor. From there, you can initialize a new HTML::Content::HTMLTokenizer object and tokenize your HTML document.
Once you have your word count and tag count arrays, you can create a new HTML::WordTagRatio::Ratio object and use the RangeValue method to calculate the word-to-tag ratio for a given range. Ratio is the base class and returns only the number of word tokens in the range, but derived classes can provide more detailed information.
Overall, HTML::WordTagRatio::Ratio is a reliable and useful module for anyone working with HTML documents in Perl.
Version 0.01: N/A