Collects type of words from sentence