File size: 3,806 Bytes
0bb1ce1
db24499
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0492dc4
 
 
 
db24499
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0bb1ce1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Groundline: check a draft against its sources</title>
<meta name="description" content="Check every sentence of a draft or AI summary against its source documents. Runs in your browser; nothing is uploaded.">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
  <header>
    <p class="eyebrow">OSINT JOURNO · verification tool</p>
    <h1>Groundline</h1>
    <p class="lede">Check every sentence of a draft or an AI summary against the source documents it is supposed to be
      based on. It flags <b>numbers</b> that are not in the sources, <b>quotes</b> that do not appear word for word,
      <b>names</b> the sources never mention, <b>wording more certain than the source</b> ("proves" where the source
      says "may"), and <b>sentences with no matching passage</b>, which is where invented material usually sits.</p>
    <p><b>It is not a fact-checker.</b> It checks the draft against <i>your</i> sources, not against the world, and it
      matches words, not meaning. Treat MATCHED as "a passage to compare against was found", not as "true". Every flag
      needs a person to read the source.</p>
    <p class="private"><b>Your text stays on your computer.</b> Groundline runs inside this browser tab, so your sources
      and draft are checked here and not uploaded anywhere. To run, the page downloads code only: Python (from jsDelivr),
      Groundline's code (from GitHub) and its own script, plus the example if you load it and, if you add a PDF, a PDF
      reader (from PyPI). Those services can see that the page was opened or a PDF reader was requested, never your text
      or files.</p>
  </header>

  <section class="grid">
    <div class="panel">
      <label class="field" for="src">Sources: paste text</label>
      <textarea id="src" rows="9" placeholder="Paste a report, a filing, a transcript..."></textarea>
      <label class="field" for="files">Or add source files (.txt .md .html .htm .pdf)</label>
      <input type="file" id="files" multiple accept=".txt,.md,.html,.htm,.pdf">
      <label class="field" for="draft">Draft or AI summary to check</label>
      <textarea id="draft" rows="9" placeholder="Paste the text written from those sources..."></textarea>
      <div class="row">
        <button type="button" id="example">Load the example</button>
        <button type="button" id="go" class="primary">Check the draft</button>
      </div>
      <p class="note">The example is a fictional council audit and an AI-style summary of it with four planted mistakes:
        a changed number, an overstated claim, an invented quote and a sentence with no source.</p>
      <p id="status" class="status" role="status">Loading Python in your browser…</p>
    </div>
    <div class="panel" aria-live="polite">
      <div id="result"><p class="placeholder">The result appears here.</p></div>
      <p class="downloads" id="downloads" hidden>Download the report:
        <a id="dlHtml" download="groundline-report.html" href="#">full report (HTML, click through each sentence)</a>
        <a id="dlMd" download="groundline-report.md" href="#">Markdown</a></p>
    </div>
  </section>

  <footer>
    For long documents, or to add the optional AI second opinion (with any OpenAI-compatible model, including one running
    on your own computer), install Groundline and run it from the command line:
    <a href="https://github.com/Ghongha007/groundline">github.com/Ghongha007/groundline</a> (MIT).
    Made by <a href="https://huggingface.co/OSINT-JOURNO">OSINT JOURNO</a>.
  </footer>
</main>
<script src="https://cdn.jsdelivr.net/pyodide/v0.29.5/full/pyodide.js"></script>
<script src="app.js"></script>
</body>
</html>