[core] adjusst sentence detection