Generalised the API of Thesaurus with a column and row filter functions