def check_abbreviation_unique(self, abbreviation, newFilterPattern, targetItem):
for item in self.allFolders:<EOL><INDENT>if model.TriggerMode.ABBREVIATION in item.modes:<EOL><INDENT>if abbreviation in item.abbreviations and item.filter_matches(newFilterPattern):<EOL><INDENT>return item is targetItem, item<EOL><DEDENT><DEDENT><DEDENT>for item in self.allItems:<EOL><INDENT>if model.TriggerMode.ABBREVIATION in item.modes:<EOL><INDENT>if abbreviation in item.abbreviations and item.filter_matches(newFilterPattern):<EOL><INDENT>return item is targetItem, item<EOL><DEDENT><DEDENT><DEDENT>return True, None<EOL>
Checks that the given abbreviation is not already in use.

@param abbreviation: the abbreviation to check
@param newFilterPattern:
@param targetItem: the phrase for which the abbreviation to be used