Would `Seq[PostaggedToken]` as the result type be easier to work with?  My guess is that when it's `Some` the `Seq` always has elements, so the `Option` type is not necessary.  You can call `outTokens.flatten` instead of the conditional.