-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Feature/related work annotator #14187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ries to comment-<username> (JabRef#14085) This helper takes a BibEntry, a username, the citing paper's key, and a summary sentence, and appends a block like: [LunaOstos_2024]: <summary> to the field comment-<username>. If that field already has content, the new block is appended after a blank line. Includes unit tests verifying first append and multi-append behavior.
Hey @jsochava!Thank you for contributing to JabRef! Your help is truly appreciated ❤️. We have automatic checks in place, based on which you will soon get automated feedback if any of them are failing. We also use TragBot with custom rules that scans your changes and provides some preliminary comments, before a maintainer takes a look. TragBot is still learning, and may not always be accurate. In the "Files changed" tab, you can go through its comments and just click on "Resolve conversation" if you are sure that it is incorrect, or comment on the conversation if you are doubtful. Please re-check our contribution guide in case of any other doubts related to our contribution workflow. |
21d4bac to
711c3a9
Compare
… to logic and model subfolders(JabRef#14085)
…f#14085) Implements a deterministic extractor for author–year style citations in "Related Work" sections and integrates it with RelatedWorkAnnotator. - Added org.jabref.logic.importer.relatedwork package - Introduced RelatedWorkExtractor interface - Implemented HeuristicRelatedWorkExtractor for author–year citation parsing - Implemented RelatedWorkHarvester orchestrator that uses the extractor and appends summaries via RelatedWorkAnnotator - Added comprehensive JUnit tests verifying extraction and annotation behavior This change completes the non-AI (LangChain4j-free) MVP for issue JabRef#14085. Future work may introduce an AI-based RelatedWorkExtractor using LangChain4j.
…critics(JabRef#14085) - Updated AUTHOR_YEAR_INNER regex to allow all-caps acronyms (e.g., "CIA") and Unicode names (e.g., "Šimić"). - Added acronym indexing in buildIndex() so corporate or multi-word authors (e.g., "Central Intelligence Agency") map to their acronyms. - Ensures citations like (CIA, 2021) correctly match entries such as "Central Intelligence Agency, 2021". - Keeps deterministic behavior while improving coverage of real-world citation formats in Related Work sections.
Closes #14085
This Draft PR introduces
RelatedWorkAnnotator, a helper class injablibthat appends contextual summaries from a citing paper’s “Related Work” section into a targetBibEntry.What and why
Next steps
- Match to an existing library entry.
- If missing, create a new BibEntry and annotate it.
Steps to test
Mandatory checks
CHANGELOG.mdin a way that is understandable for the average user (if change is visible to the user)