Near Unordered Contexts
- Last Updated: May 29, 2026
- 2 minute read
- Semaphore
- Documentation
This is an abstract Concept Class (no concept can be made an instance of it in the model).
It represents all unordered near Context extractors. Unordered Near Contexts are extractors that look for facts (and anchors) that are close to each other and in any order in some context. How close they are can be specified using the count metadata.
- Near Unordered Across Paragraphs In Document
- Near Unordered Across Phrases Contexts
- Near Unordered Across Sentences Contexts
- Near Unordered Across Tables Contexts
The following elements common to all Near Unordered Contexts. They only differ in the contexts they look in and the different grammatical units that are looked for.
Near Unordered Context Properties
Mandatory hierarchical relationships
| Label | Range | Constraints |
|---|---|---|
| fact | Context Elements | one or more allowed |
Optional hierarchical relationships
| Label | Range | Constraints |
|---|---|---|
| anchor | Context Elements | one or more allowed |
| not anchor | Context Elements | one or more allowed |
| not fact | Context Elements | one or more allowed |
| optional anchor | Context Elements | one or more allowed |
| optional fact | Context Elements | one or more allowed |
Mandatory associative relationships
| Label | Range | Constraints |
|---|---|---|
| (none) |
Optional associative relationships
| Label | Range | Constraints |
|---|---|---|
| depended on by context | Contexts | only one allowed |
| depends on context | Contexts | only one allowed |
| extract fact as | Fact Name | only one allowed |
| group fact as | Fact Name | only one allowed |
| location | Locations | only one allowed |
| precluded by context | Contexts | only one allowed |
| precludes_context | Contexts | only one allowed |
| Punctuation | Punctuation rules | only one allowed |
Mandatory alternative labels
| Label | Range | Constraints |
|---|---|---|
| (none) |
Optional alternative labels
| Label | Range | Constraints |
|---|---|---|
| (none) |
Mandatory metadata
| Label | Range | Constraints |
|---|---|---|
| near count | Integer | only one allowed |
Optional metadata
| Label | Range | Constraints |
|---|---|---|
| context position from document end | Integer | only one allowed |
| context position from document start | Integer | only one allowed |
| fact position from context end | Integer | only one allowed |
| fact position from context start | Integer | only one allowed |
| field | String | only one allowed |
| return group fact ID | Boolean | only one allowed |
| return raw text also | Boolean | only one allowed |
| return value using regex | String | only one allowed |
| {1-10} greedy repeat | Integer | one or more allowed |
| {1-10} non-greedy repeat | Integer | one or more allowed |
| debug | Boolean | only one allowed |
Example model and tests
In the FACTS example model, included with FACTS, the document fact DF5 - Near unordered sentences in the same document - contains an example near unordered sentences in the same document with a near count of 5 set:

All the children need to fire, and be found within 5 sentences of each other. If this is true, the fact will be returned.