/**
  * {@inheritdoc}
  */
 public function shouldSplit(Model $model)
 {
     if (trim(substr($model->getText(), 0, $model->getPosition())) === '') {
         return false;
     }
     return true;
 }
 /**
  * {@inheritdoc}
  */
 public function shouldSplit(Model $model)
 {
     $eos = $model->getEosPositions();
     $i = array_search($model->getPosition(), $eos);
     if ($i === false) {
         return true;
     }
     if ($i < count($eos) - 1 && $eos[$i + 1] == $eos[$i] + 1) {
         return false;
     }
     return true;
 }
 /**
  * {@inheritdoc}
  */
 public function shouldSplit(Model $model)
 {
     $position = $model->getPosition();
     $text = $model->getText();
     if ($position != 0 && $position < strlen($text) - 1) {
         $prevChar = substr($text, $position - 1, 1);
         $nextChar = substr($text, $position + 1, 1);
         if (is_numeric($prevChar) && is_numeric($nextChar)) {
             return false;
         }
     }
     return true;
 }