def synset_properties(synset: "wn.Synset", parameter: str):
    """
    Making from NLTK's WordNet Synset's properties to function.
    Note: This is for compatibility with NLTK 2.x
    """

    return_type = SS_PARAMETERS_TYPE_MAP[parameter]
    func = 'synset.' + parameter

    return eval(func) if isinstance(eval(func), return_type) else eval(func)()
def synset_properties ( synset : "wn.Synset" , parameter : str ) : return_type = SS_PARAMETERS_TYPE_MAP [ parameter ] func = 'synset.' + parameter return eval ( func ) if isinstance ( eval ( func ) , return_type ) else eval ( func ) ( )
Making from NLTK's WordNet Synset's properties to function.
    Note: This is for compatibility with NLTK 2.x