A comparative study on community detection and clustering algorithms for text categorisation