using predicate-apply style to convert tokens to spec object entities