Auto sentence completion based on prediction