Function __global->_smart_grammar_says_continue

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
$testing_ahead boolean False N/A N/A Whether this is a cursory look-ahead rather than a byte-by-byte callback (therefore skip fine-grained checks which would interfere with a cursory result)

Return

  • Whether to keep continuing
  • Type: boolean
  • Set: N/A
  • Range: N/A