Function __global->_smart_grammar_says_futile
Definitions
sources/xhtml.php
- XHTML-aware helper function to try and get to a nice grammatical point to call our substring terminus.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: bool
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$naive_end_pos | integer | required parameter | N/A | N/A | The naive position where we'd end on |
$grammar_completeness_tolerance | float | required parameter | N/A | N/A | A fraction of the length we may exceed by in order to maintain grammar tolerance (finish sentences, finish paragraphs, finish the whole thing) |
$real_offset | integer | required parameter | N/A | N/A | Current offset in the text |
$html | string | required parameter | N/A | N/A | The text to perform on |
$desired_length | integer | required parameter | N/A | N/A | Desired (naive) substring length |
Return
- Whether to keep continuing
- Type: boolean
- Set: N/A
- Range: N/A