The has_overly_symbolic_content function checks whether a document has a reasonable proportion of symbolic characters.
has_overly_symbolic_content( doc [, ThresholdPercent] )
| 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%. |
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.
|
|