How sakshampaliwal21/prgi-title-verifier works
PRGI Title Verification is a terminal application for checking proposed publication titles against a stored catalog and verification rules. Its main workflow runs from a user-entered title through the verifier, which coordinates matching and rule checks, then returns a status and saves the application. The menu also supports catalog search, application history, statistics, rule summaries, and text-report export. The source excerpts show these runtime connections; the data files are represented as stores, while their contents and any additional behavior were not inspected.
Main entry points: app.js Menu and workflows · database.js Data access · verifier.js Title verifier · titles.json Existing titles
Components 13
Terminal interface
- Menu and workflows
src/app.js
Verification
- Title verifier
src/verifier.js - Similarity matching
src/similarity.js - Rule checks
src/rules.js
Title catalog
- Data access
src/database.js - Existing titles
data/titles.json - Title search
src/database.js
Applications and reports
- Application history
data/applications.json - Recent applications
src/app.js - Approval statistics
src/app.js - Report export
src/app.js - Verification report
reports/verification-report.txt
Other components
- User
Connections 17
- User → Menu and workflows: chooses action
src/app.js - Menu and workflows → Title verifier: submits title
src/app.js - Title verifier → Data access: gets titles
src/verifier.js - Title verifier → Similarity matching: finds match
src/verifier.js - Title verifier → Rule checks: checks rules
src/verifier.js - Menu and workflows → Data access: saves result
src/app.js - Data access → Existing titles: loads catalog
src/database.js - Menu and workflows → Title search: searches titles
src/app.js - Title search → Existing titles: filters titles
src/database.js - Menu and workflows → Recent applications: views records
src/app.js - Recent applications → Data access: gets records
src/app.js - Menu and workflows → Approval statistics: calculates totals
src/app.js - Approval statistics → Data access: gets records
src/app.js - Menu and workflows → Report export: exports report
src/app.js - Report export → Data access: gets records
src/app.js - Data access → Application history: reads and writes
src/database.js - Report export → Verification report: writes report
src/app.js