Cognitive intentionality extraction from discourse with pragmatic-tree construction and analysis