# Path: linguistica/util.py
# NULL = 'NULL'


from itertools import (combinations, groupby)
from linguistica.util import NULL
            words_to_sigs[word].update(stems_to_sigs[stem])

    return words_to_sigs


def make_signatures_to_words(words_to_signatures):
    sigs_to_words = dict()

    for word in words_to_signatures.keys():
        sigs = words_to_signatures[word]

        for sig in sigs:
            if sig not in sigs_to_words:
                sigs_to_words[sig] = set()

            sigs_to_words[sig].add(word)

    return sigs_to_words


def make_signatures_to_stems(stems_to_words, max_affix_length, min_sig_count,
                             suffixing):
    signatures_to_stems = dict()

    for stem in stems_to_words.keys():
        affix_set = set()
        len_stem = len(stem)

        for word in stems_to_words[stem]:
            if word == stem:

# Path: linguistica/util.py
# NULL = 'NULL'


# Path: linguistica/signature.py
from itertools import (combinations, groupby)
from linguistica.util import NULL

            words_to_sigs[word].update(stems_to_sigs[stem])

    return words_to_sigs


def make_signatures_to_words(words_to_signatures):
    sigs_to_words = dict()

    for word in words_to_signatures.keys():
        sigs = words_to_signatures[word]

        for sig in sigs:
            if sig not in sigs_to_words:
                sigs_to_words[sig] = set()

            sigs_to_words[sig].add(word)

    return sigs_to_words


def make_signatures_to_stems(stems_to_words, max_affix_length, min_sig_count,
                             suffixing):
    signatures_to_stems = dict()

    for stem in stems_to_words.keys():
        affix_set = set()
        len_stem = len(stem)

        for word in stems_to_words[stem]:
            if word == stem:

                affix_set.add(NULL)