Document comparison system
A document comparison system is provided. Processing circuitry determines that a specific heading of a first document corresponds to corresponding headings of a second document. The processing circuitry generates a combined body by combining corresponding bodies of the second document with each other. The processing circuitry compares a specific body of the first document with the combined body of the second document to extract a difference between the specific body and the combined body.
1 . A document comparison system, comprising:
a memory that stores a first document and a second document, each including a plurality of blocks, each block comprising a heading and a body; and
processing circuitry configured to:
determine a correspondence relationship between the headings of the first document and the headings of the second document based on whether the respective bodies are similar to each other, including a case where a single heading of the first document corresponds to multiple headings of the second document due to differences in levels of heading structure between the documents;
generate, for each heading of the first document that corresponds to multiple headings of the second document, a combined body by concatenating the respective bodies of the corresponding headings in the second document;
compare the combined body with the body of the corresponding heading in the first document to extract a difference;
generate and output a comparison screen in a manner in which the extracted difference is distinguished from other portions, wherein the comparison screen displays the first document and the second document side by side; and
generate the comparison screen so as to display a specific heading and a specific body side by side with the corresponding headings and the corresponding bodies; wherein the comparison screen displays the extracted difference at a paragraph level within the body text.
2 . The document comparison system according to claim 1 , wherein the first document and the second document are legal documents.
3 . The document comparison system according to claim 1 , wherein each heading includes hierarchical level information, and the correspondence relationship is determined by considering both textual similarity of the bodies and the hierarchical levels of the headings.
4 . The document comparison system according to claim 1 , wherein the bodies corresponding to the multiple headings in the second document are concatenated in the order in which the headings appear in the second document.
5 . The document comparison system according to claim 1 , wherein the difference is visually emphasized using at least one of underlining, strike-through, or color highlighting.