at block 108 the high score is greater than zero 0 and the tie flag is false then the unidentified document is identified if these conditions are not met the unidentified document remains unidentified at block 76 if it is determined that the scanline definitions do not match it is then determined at block 110 whether or not the current coupon has both a defined positive range and a checkdigit routine if it is determined at block 110 that the current coupon does not have defined both a positive range and a checkdigit routine it is then determined at block 104 if there is another item in the coupon list and the unidentified document is further processed at blocks 108 106 and 76 102 if it is determined at block 110 that the current coupon has defined both a positive range and a checkdigit routine the unidentified document is further processed at blocks 78 102 returning to fig1 if at block 66 it is determined that based on the ocr read the unidentified document is not identifiable it is then determined at block 120 if there are additional scanline definitions in the scanline definition list at block 14 if additional scanline definitions exist at block 122 the image size of the unidentified document is retrieved and compared to the next scanline definition in the scanline definition list at block 124 it is then determined if the retrieved.