Text this: Methodology for estimating association between categorical variables with application to Genome-wide association studies (GWAS)