[core] gc engine: move getSentenceBoundaries