doc analysis