has_overly_symbolic_content

The has_overly_symbolic_content function checks whether a document has a reasonable proportion of symbolic characters.

Syntax

has_overly_symbolic_content( doc [, ThresholdPercent] )

Arguments

Argument Description
doc (LuaDocument) The document that you want to check.
ThresholdPercent (float) The maximum percentage of symbolic characters for the document to be considered acceptable. The default is 10%.

Returns

Boolean. If the document has too high a proportion of symbolic content, the function returns true. If the document has a reasonable proportion of symbolic content, the function returns false.


_HP_HTML5_bannerTitle.htm