Methods for streaming mode in GazetteMatching

break out to separate function