Small decisions. Interesting possibilities.Submit contentSubmit

jeveryword

A dependency-free text extractor that numbers the words of a message, offers those numbers as Jev choices, and converts the picked ids back into exact substrings with character offsets.

Added to Jevfast

How it uses Jev

The text is tokenized and each token becomes a Choice option keyed by its id, with range options for a boundary inside a longer list plus missing and ambiguous. One request carries the shared rules in the state and one question per field asking for the first token of that field's value, and a speculative fan-out asks for the last token alongside it; a doubtful end is asked again once the start is known. Longer texts first get one cheap request that points each field at the sentence containing it, and the search then runs inside that sentence. Answers are validated against the offered ids and the chosen range is copied out of the source, so every returned value is an exact substring with character offsets.

What Jev decides

Locating one field's value (illustrative)Example answers · not a recorded Jev response · Source ↗
Question 1 · q0
YOUR APP
INSTRUCTION

Which token is the first token of the value for the requested field, or is the value missing or ambiguous?

STATE

The shared rules and the numbered tokens of the source text, one per line as id and token. For long texts only the relevant sentences are listed after the locate request. Each field asks for the first and last token of its value.

JEV · CHOICE
  1. 3
  2. 4
  3. 5
  4. 6
  5. 7
  6. missing
  7. ambiguous
Question 2 · q1
YOUR APP
INSTRUCTION

Which token is the last token of that same value, which may be the same token?

STATE

The shared rules and the numbered tokens of the source text, one per line as id and token. For long texts only the relevant sentences are listed after the locate request. Each field asks for the first and last token of its value.

JEV · CHOICE
  1. 4
  2. 5
  3. 6
  4. 7
  5. missing
  6. ambiguous

App workflow

  1. Number the words

    The input is tokenized into words and sentences, and every token gets an id that can be offered as a choice option.

  2. Locate in long text

    Above the fan-out limit, one cheap request points each field at the sentence that contains its value.

  3. Ask for the boundaries

    One request asks for the first and, speculatively, the last token of every field, with the shared rules sent once in the state.

  4. Check and copy

    Answers are validated against the offered ids, a doubtful end is asked again, and the chosen range is copied out of the source text.

  5. Return exact values

    Each result is a substring with its character offsets and a probability, and the same numbering supports field extraction, PII labels and quotes.

Why it is interesting

A model that cannot generate text still returns names, addresses and quotes, because the words become selectable ids and the answer is a number that maps back to an exact span. Putting the boundary rules in the shared state once instead of repeating them in every question keeps a ten-field extraction to one request of a few hundred milliseconds.