nltk.is_rel()

nltk.is_rel(s)[source]

Check whether a set represents a relation (of any arity).

Parameters:s (set) – a set containing tuples of str elements
Return type:bool