doc analysis module