Capafy
Get started
Job Post Check — Find vague or missing job details

Job Post Check — Find vague or missing job details

Send a job ad and a reviewer's structured findings, and get back a checked list of vague or missing details (duties, hours, location, pay, how to apply) to clarify with the employer. #Escrita

Avaliação
São necessárias mais avaliações
Vendas
0
Como usar
Baixar

Send a job ad and a reviewer's structured findings; receive a checked list of the details to clarify.

The reviewer supplies the judgment. This local checker verifies five allowed item types, the vague or missing status, one-line follow-up questions, and whether each quoted line appears in the supplied ad. It does not decide whether a detail is actually vague, legally complete, or fair.

Quick start

python3 scripts/job_post_check.py examples/job_ad_review.json

The package includes the exact result of this command.

Python 3.9 or newer is required. The tool uses only the Python standard library. It makes no network request and does not rewrite the job ad.

How the input works

First, a person reads the full job ad and decides which details are unclear or absent. The tool checks that review; it does not create findings or infer vagueness.

The UTF-8 JSON file has exactly two top-level fields: job_ad and findings. Each finding has exactly category, status, quote, and question.

{
  "job_ad": "Hours: Flexible.",
  "findings": [
    {
      "category": "work_time",
      "status": "vague",
      "quote": "Hours: Flexible.",
      "question": "Which days and time range should applicants expect?"
    }
  ]
}

The example above shows the input shape only.

Review fields

  • job_content: Duties, scope, or expected work
  • work_time: Days, hours, shifts, or schedule
  • work_location: Site, remote arrangement, or travel
  • pay: Amount, unit, range, or pay conditions
  • application: How, where, or by when to apply

Use vague when the ad mentions the item but leaves a material detail unclear. Include a quote of at most 240 characters from one source line. Use missing when the item is absent; its quote must be an empty string. Each finding also needs one short question for the employer. The tool rejects punctuation-only quotes; it does not count sentences or judge which items belong in the report.

Options

  • --format markdown: Readable report; this is the default
  • --format json: Structured output for another local workflow
  • --format csv: Spreadsheet-friendly rows
  • --category work_time: Keep findings for one item; repeat the option to include several
  • --limit 1: Show at most 1–500 findings; the default is 100
  • --output result.md: Save UTF-8 output to a new file; existing files are never replaced

CSV cells beginning with =, +, -, or @ receive a leading apostrophe so spreadsheet software treats them as text. Markdown output escapes HTML and table separators.

Quote checks

The checker normalizes Unicode and collapses whitespace in both the ad and quotes. It checks each source line separately, so a quote cannot join text from separate lines.

An absent quote is shown as Not found (check one source line) and makes the command return code 1, even if a category filter or result limit hides that finding. A well-formed review whose quotes all match returns 0. Invalid input or an unsafe output path returns code 2 with one error: line and no traceback. If the terminal cannot print the result, the command suggests saving UTF-8 with --output.

The checker does not decide whether the reviewer's finding is accurate, whether an offer complies with employment law, whether pay is competitive, or whether the suggested question is useful. It is not legal or HR advice. Have an appropriate person verify the ad before using the report.

Input limits and errors

The input is UTF-8 JSON no larger than 2,000,000 bytes. The ad is limited to 500,000 characters and the report to 500 findings. Quotes are limited to 240 characters; questions are limited to 240 characters and 40 words. Duplicate JSON keys, unknown fields, unsupported categories, multi-line questions, and unsafe output paths are rejected.

Tests

Run the standard-library test suite from this folder:

python3 -m unittest discover -s tests -v

The tests cover valid formats, filters, quote boundaries, encodings, unsafe output paths, spreadsheet injection, closed pipes, and large inputs.