module FFaker::IdentificationPL
def identity_card_checksum(letter_part, number_part)
def identity_card_checksum(letter_part, number_part) a, b, c = letter_part.codepoints.map { |codepoints| codepoints - 55 } d, e, f, g, h = number_part.split('').map(&:to_i) (a * 7 + b * 3 + c + 7 * d + 3 * e + f + 7 * g + 3 * h) % 10 end