Sketch two-pass corpus linker