def fingerprint(self, word, n_bits=<NUM_LIT:16>, most_common=MOST_COMMON_LETTERS_CG):
if n_bits % <NUM_LIT:2>:<EOL><INDENT>n_bits += <NUM_LIT:1><EOL><DEDENT>w_len = len(word) // <NUM_LIT:2><EOL>w_1 = set(word[:w_len])<EOL>w_2 = set(word[w_len:])<EOL>fingerprint = <NUM_LIT:0><EOL>for letter in most_common:<EOL><INDENT>if n_bits:<EOL><INDENT>fingerprint <<= <NUM_LIT:1><EOL>if letter in w_1:<EOL><INDENT>fingerprint += <NUM_LIT:1><EOL><DEDENT>fingerprint <<= <NUM_LIT:1><EOL>if letter in w_2:<EOL><INDENT>fingerprint += <NUM_LIT:1><EOL><DEDENT>n_bits -= <NUM_LIT:2><EOL><DEDENT>else:<EOL><INDENT>break<EOL><DEDENT><DEDENT>if n_bits > <NUM_LIT:0>:<EOL><INDENT>fingerprint <<= n_bits<EOL><DEDENT>return fingerprint<EOL>
Return the occurrence halved fingerprint.

        Based on the occurrence halved fingerprint from :cite:`Cislak:2017`.

        Parameters
        ----------
        word : str
            The word to fingerprint
        n_bits : int
            Number of bits in the fingerprint returned
        most_common : list
            The most common tokens in the target language, ordered by frequency

        Returns
        -------
        int
            The occurrence halved fingerprint

        Examples
        --------
        >>> ohf = OccurrenceHalved()
        >>> bin(ohf.fingerprint('hat'))
        '0b1010000000010'
        >>> bin(ohf.fingerprint('niall'))
        '0b10010100000'
        >>> bin(ohf.fingerprint('colin'))
        '0b1001010000'
        >>> bin(ohf.fingerprint('atcg'))
        '0b10100000000000'
        >>> bin(ohf.fingerprint('entreatment'))
        '0b1111010000110000'