intficpy/parser.py
def verboseNamesMatch(self, things):
        """
        Check if any of the potential grammatical objects have identical verbose names
        Takes the list of things associated with the direct or indirect object
        Returns a list of two items:
            Item one is True if duplicates are present, else False
            Item two is dictionary mapping verbose names to lists of Things from the input
            with that name
        """
        duplicates_present = False
        name_dict = {}
        for item in things:
            if item.verbose_name in name_dict:
                name_dict[item.verbose_name].append(item)
            else:
                name_dict[item.verbose_name] = [item]
        for name in name_dict:
            if len(name_dict[name]) > 1:
                duplicates_present = True
                break
        return [duplicates_present, name_dict]

        Check if any of the potential grammatical objects have identical verbose names
        Takes the list of things associated with the direct or indirect object
        Returns a list of two items:
            Item one is True if duplicates are present, else False
            Item two is dictionary mapping verbose names to lists of Things from the input
            with that name
        
Check if any of the potential grammatical objects have identical verbose names
Takes the list of things associated with the direct or indirect object
Returns a list of two items:
Item one is True if duplicates are present, else False
Item two is dictionary mapping verbose names to lists of Things from the input
with that name
Check if any of the potential grammatical objects have identical verbose names Takes the list of things associated with the direct or indirect object Returns a list of two items : Item one is True if duplicates are present else False Item two is dictionary mapping verbose names to lists of Things from the input with that name
def verboseNamesMatch(self, things):
        duplicates_present = False
        name_dict = {}
        for item in things:
            if item.verbose_name in name_dict:
                name_dict[item.verbose_name].append(item)
            else:
                name_dict[item.verbose_name] = [item]
        for name in name_dict:
            if len(name_dict[name]) > 1:
                duplicates_present = True
                break
        return [duplicates_present, name_dict]
def verboseNamesMatch ( self , things ) : duplicates_present = False name_dict = { } for item in things : if item . verbose_name in name_dict : name_dict [ item . verbose_name ] . append ( item ) else : name_dict [ item . verbose_name ] = [ item ] for name in name_dict : if len ( name_dict [ name ] ) > 1 : duplicates_present = True break return [ duplicates_present , name_dict ]
Check if any of the potential grammatical objects have identical verbose names
Takes the list of things associated with the direct or indirect object
Returns a list of two items:
Item one is True if duplicates are present, else False
Item two is dictionary mapping verbose names to lists of Things from the input
with that name
Check if any of the potential grammatical objects have identical verbose names Takes the list of things associated with the direct or indirect object Returns a list of two items : Item one is True if duplicates are present else False Item two is dictionary mapping verbose names to lists of Things from the input with that name
"""
        Check if any of the potential grammatical objects have identical verbose names
        Takes the list of things associated with the direct or indirect object
        Returns a list of two items:
            Item one is True if duplicates are present, else False
            Item two is dictionary mapping verbose names to lists of Things from the input
            with that name
        """
self
things