I typically try to just see which atom will be best able to stabilize a negative charge. In this context, you would see that a carboxylic acid F.G. is more acidic than, say, a phenol because the carboxylic acid can spread the negative charge between two electronegative oxygens.