'Returns a list of scored synonyms (tuples of synonyms and scores) for the current ngram
:param ngram: ngram to lookup
:type ngram: C{string}
:param fileid: thesaurus fileid to search in. If None, search all fileids.
:type fileid: C{string}
:return: If fileid is specified, list of tuples of scores and synonyms; otherwise,
list of tuples of fileids and lists, where inner lists consist of tuples of
scores and synonyms.'

def scored_synonyms(self, ngram, fileid=None):

    if fileid:
        return self._thesaurus[fileid][ngram].items()
    else:
        return [(fileid, self._thesaurus[fileid][ngram].items()) for fileid in self._fileids]
