Concordia score: = round($data->result->bestOverlayScore*100) ?>%
result->bestOverlay[i];
//previous unmarked fragment
$markedSentence += substr($inputSentence,$lastInsertedEnd, $fragment->matchedPatternStart - $lastInsertedEnd);
//the marked fragment
$markedSentence += ''+substr($inputSentence,$fragment->matchedPatternStart, $fragment->matchedPatternEnd - $fragment->matchedPatternStart)+'';
$lastInsertedEnd = $fragment->matchedPatternEnd;
//fragments += renderFragment(fragment, i);
}
//remaining unmarked fragment
$markedSentence += substr($inputSentence, $lastInsertedEnd);
?>
=$markedSentence ?>