reorganized pipeline

it now maps over the rules list looking up lists of sentences that the
rule applies to.