Abstract
Based on an in-depth analysis of the characteristics and rules for bibliographic descriptions and the OOXML format recording method for Word documents, this study explores reference extraction, text segmentation, and identification methods for editable scientific documents. By integrating regular expressions, fuzzy longest common subsequence (LCS) matching, and keyword corpora, the proposed system improves the accuracy of bibliographic entry identification. This work is significant for automating reference format checks and ensuring bibliographic regularization in academic publishing.
Introduction
In academic publishing, bibliographic references serve as critical indicators of research depth and academic quality. However, ensuring these entries adhere to strict international standards (such as ISO 690 or GB/T 7714) is a labor-intensive task for authors and editors. While automated tools exist for static formats like PDF, there is a distinct lack of robust solutions for "live," editable documents during the writing phase. This paper addresses the low precision of existing automated systems by analyzing the underlying XML structure of Microsoft Word documents and applying flexible text-matching algorithms to handle the variability of human language.
Methodology
The proposed system utilizes a multi-stage pipeline designed to transition from raw document data to structured bibliographic metadata.
1. OOXML Extraction
Modern Word documents (.docx) are essentially zipped XML files. The system unzips the file and parses document.xml, searching for the "Reference" keyword within paragraph tags (<w:p>) to isolate the bibliography section.
2. Segmentation Logic
Once the reference block is identified, individual entries must be split into constituent parts (e.g., author, title, journal). This is achieved through a combination of common separators and specialized algorithms to handle complex punctuation.
3. Identification and Error Correction
To label each segment correctly, the system employs three strategies:
- Keyword Corpora: Pre-processed lists of known entities like cities or academic terms.
- Regular Expressions: Used for structured data like standard codes, dates, and page numbers.
- Fuzzy Longest Common Subsequence (LCS) Matching: This core technical contribution handles variable text that lacks a strict rule, finding the best match between a text string and a known reference template.
To resolve ambiguities—such as whether "Beijing" refers to a person or a location—the system uses a state machine and priority rules. For instance, it employs a "Simple Error Processing" algorithm to re-merge titles that were excessively segmented due to internal punctuation.
Results and Discussion
The system was evaluated using a dataset of 200 bibliographic references across four categories. The results demonstrate that structural predictability significantly impacts accuracy.
| Type of Literature | Samples | Correctly Identified | Accuracy |
|---|---|---|---|
| Dissertations | 50 | 50 | 100% |
| Periodical Literatures | 50 | 35 | 70% |
| Patents | 50 | 28 | 56% |
| Monographs/Anthologies | 50 | 25 | 50% |
While the 100% accuracy for dissertations is impressive, the lower performance in monographs and patents highlights the challenges posed by natural language complexity. When titles or journal names contain unusual symbols or deviate from standard patterns, the segmentation logic can fail.
Conclusion
The fusion of OOXML parsing with fuzzy matching and regular expressions provides a viable path toward automating reference formatting in editable documents. Future work will focus on improving the recall ratio for complex document types by further refining natural language pattern recognition, aiming to move beyond the current 50-70% accuracy threshold for journals and monographs.
Summary updated