Target subtree setting means sets a target subtree relating to a content portion. Occurrence mode detecting means collates a target subtree relating to a content with a tree relating to each of past structured/hierarchical contents and detects an occurrence mode of each node of the target subtree. Statistical information generating means generates statistical information concerning an occurrence frequency of the occurrence mode of each node in the target subtree. Classifying means classifies each node of the target subtree based on the statistical information and a result of detecting the occurrence mode. Matching pattern generating means generates the matching pattern for the target content portion based on the classification. The structured/hierarchical contents are identified by use of the matching pattern.