I think this can be simplified with `intokens.takeWhile(p => !p.postag.startsWith("W"))`.