Every nth word¶
every_nth_word · procedural · validated
A text produced by keeping only every nth word of a source and discarding the rest.
Provenance¶
- Source: Oulipo, Atlas de littérature potentielle (1981)
- Attribution:
reference— attested in a standard reference rather than traced to an origin - Checkability:
source— decidable against the source text it was made from - Attested:
codified— formulated as a rule by a tradition rather than declared by an author
Details¶
- Kind: both
- Languages: en, fr
- Requires:
tokens - Deterministic: yes
- In other languages: Un mot sur n (fr)
Prompt hint¶
Keep every seventh word of the source and read what results.
Parameters¶
| Name | Type | Default | Description |
|---|---|---|---|
n |
integer | 7 |
Keep one word in every n. |
source |
string | — |
The text this one was made from. |
Examples¶
every-second-word¶
en — this text satisfies the procedure.
two four six eight
Parameters: source='one two three four five six seven eight', n=2
Source: constructed example; the procedure is Oulipian
the-other-words¶
en — this text does not satisfy the procedure.
one three five seven
Parameters: source='one two three four five six seven eight', n=2
Source: constructed counterexample
un-mot-sur-deux¶
fr — this text satisfies the procedure.
deux quatre six huit
Parameters: source='un deux trois quatre cinq six sept huit', n=2
Source: constructed example; the procedure is Oulipian
les-autres-mots¶
fr — this text does not satisfy the procedure.
un trois cinq sept
Parameters: source='un deux trois quatre cinq six sept huit', n=2
Source: constructed counterexample