MorganTitcher commited on
Commit
6a71c6b
·
verified ·
1 Parent(s): 6d4a331

v1.0.0 Sync from inkwell 5167273d

Browse files

update README.md
add data/cases.jsonl
add CITATION.cff
add LICENSE
add schema.json

Files changed (5) hide show
  1. CITATION.cff +17 -0
  2. LICENSE +121 -0
  3. README.md +85 -0
  4. data/cases.jsonl +48 -0
  5. schema.json +116 -0
CITATION.cff ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cff-version: 1.2.0
2
+ message: If you use this dataset, cite it as below.
3
+ type: dataset
4
+ title: Screenplay Format Edge Cases
5
+ abstract: >-
6
+ 48 original Fountain specimens in 24 contrast pairs, each with the line-level
7
+ screenplay element types a Fountain reader should produce.
8
+ version: 1.0.0
9
+ license: CC0-1.0
10
+ authors:
11
+ - name: Inkwell
12
+ website: "https://www.inkwell.software"
13
+ url: "https://huggingface.co/datasets/Inkwell-Software/screenplay-format-edge-cases"
14
+ keywords:
15
+ - screenwriting
16
+ - Fountain
17
+ - evaluation
LICENSE ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Creative Commons Legal Code
2
+
3
+ CC0 1.0 Universal
4
+
5
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12
+ HEREUNDER.
13
+
14
+ Statement of Purpose
15
+
16
+ The laws of most jurisdictions throughout the world automatically confer
17
+ exclusive Copyright and Related Rights (defined below) upon the creator
18
+ and subsequent owner(s) (each and all, an "owner") of an original work of
19
+ authorship and/or a database (each, a "Work").
20
+
21
+ Certain owners wish to permanently relinquish those rights to a Work for
22
+ the purpose of contributing to a commons of creative, cultural and
23
+ scientific works ("Commons") that the public can reliably and without fear
24
+ of later claims of infringement build upon, modify, incorporate in other
25
+ works, reuse and redistribute as freely as possible in any form whatsoever
26
+ and for any purposes, including without limitation commercial purposes.
27
+ These owners may contribute to the Commons to promote the ideal of a free
28
+ culture and the further production of creative, cultural and scientific
29
+ works, or to gain reputation or greater distribution for their Work in
30
+ part through the use and efforts of others.
31
+
32
+ For these and/or other purposes and motivations, and without any
33
+ expectation of additional consideration or compensation, the person
34
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35
+ is an owner of Copyright and Related Rights in the Work, voluntarily
36
+ elects to apply CC0 to the Work and publicly distribute the Work under its
37
+ terms, with knowledge of his or her Copyright and Related Rights in the
38
+ Work and the meaning and intended legal effect of CC0 on those rights.
39
+
40
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
41
+ protected by copyright and related or neighboring rights ("Copyright and
42
+ Related Rights"). Copyright and Related Rights include, but are not
43
+ limited to, the following:
44
+
45
+ i. the right to reproduce, adapt, distribute, perform, display,
46
+ communicate, and translate a Work;
47
+ ii. moral rights retained by the original author(s) and/or performer(s);
48
+ iii. publicity and privacy rights pertaining to a person's image or
49
+ likeness depicted in a Work;
50
+ iv. rights protecting against unfair competition in regards to a Work,
51
+ subject to the limitations in paragraph 4(a), below;
52
+ v. rights protecting the extraction, dissemination, use and reuse of data
53
+ in a Work;
54
+ vi. database rights (such as those arising under Directive 96/9/EC of the
55
+ European Parliament and of the Council of 11 March 1996 on the legal
56
+ protection of databases, and under any national implementation
57
+ thereof, including any amended or successor version of such
58
+ directive); and
59
+ vii. other similar, equivalent or corresponding rights throughout the
60
+ world based on applicable law or treaty, and any national
61
+ implementations thereof.
62
+
63
+ 2. Waiver. To the greatest extent permitted by, but not in contravention
64
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
65
+ irrevocably and unconditionally waives, abandons, and surrenders all of
66
+ Affirmer's Copyright and Related Rights and associated claims and causes
67
+ of action, whether now known or unknown (including existing as well as
68
+ future claims and causes of action), in the Work (i) in all territories
69
+ worldwide, (ii) for the maximum duration provided by applicable law or
70
+ treaty (including future time extensions), (iii) in any current or future
71
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
72
+ including without limitation commercial, advertising or promotional
73
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74
+ member of the public at large and to the detriment of Affirmer's heirs and
75
+ successors, fully intending that such Waiver shall not be subject to
76
+ revocation, rescission, cancellation, termination, or any other legal or
77
+ equitable action to disrupt the quiet enjoyment of the Work by the public
78
+ as contemplated by Affirmer's express Statement of Purpose.
79
+
80
+ 3. Public License Fallback. Should any part of the Waiver for any reason
81
+ be judged legally invalid or ineffective under applicable law, then the
82
+ Waiver shall be preserved to the maximum extent permitted taking into
83
+ account Affirmer's express Statement of Purpose. In addition, to the
84
+ extent the Waiver is so judged Affirmer hereby grants to each affected
85
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
86
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
87
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
88
+ maximum duration provided by applicable law or treaty (including future
89
+ time extensions), (iii) in any current or future medium and for any number
90
+ of copies, and (iv) for any purpose whatsoever, including without
91
+ limitation commercial, advertising or promotional purposes (the
92
+ "License"). The License shall be deemed effective as of the date CC0 was
93
+ applied by Affirmer to the Work. Should any part of the License for any
94
+ reason be judged legally invalid or ineffective under applicable law, such
95
+ partial invalidity or ineffectiveness shall not invalidate the remainder
96
+ of the License, and in such case Affirmer hereby affirms that he or she
97
+ will not (i) exercise any of his or her remaining Copyright and Related
98
+ Rights in the Work or (ii) assert any associated claims and causes of
99
+ action with respect to the Work, in either case contrary to Affirmer's
100
+ express Statement of Purpose.
101
+
102
+ 4. Limitations and Disclaimers.
103
+
104
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
105
+ surrendered, licensed or otherwise affected by this document.
106
+ b. Affirmer offers the Work as-is and makes no representations or
107
+ warranties of any kind concerning the Work, express, implied,
108
+ statutory or otherwise, including without limitation warranties of
109
+ title, merchantability, fitness for a particular purpose, non
110
+ infringement, or the absence of latent or other defects, accuracy, or
111
+ the present or absence of errors, whether or not discoverable, all to
112
+ the greatest extent permissible under applicable law.
113
+ c. Affirmer disclaims responsibility for clearing rights of other persons
114
+ that may apply to the Work or any use thereof, including without
115
+ limitation any person's Copyright and Related Rights in the Work.
116
+ Further, Affirmer disclaims responsibility for obtaining any necessary
117
+ consents, permissions or other rights required for any use of the
118
+ Work.
119
+ d. Affirmer understands and acknowledges that Creative Commons is not a
120
+ party to this document and has no duty or obligation with respect to
121
+ this CC0 or use of the Work.
README.md CHANGED
@@ -1,3 +1,88 @@
1
  ---
 
 
2
  license: cc0-1.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
  license: cc0-1.0
5
+ pretty_name: Screenplay Format Edge Cases
6
+ size_categories:
7
+ - n<1K
8
+ task_categories:
9
+ - text-classification
10
+ tags:
11
+ - screenwriting
12
+ - evaluation
13
+ - synthetic
14
+ - inkwell
15
+ configs:
16
+ - config_name: default
17
+ data_files:
18
+ - split: test
19
+ path: data/cases.jsonl
20
  ---
21
+ # Screenplay Format Edge Cases
22
+
23
+ 48 original Fountain specimens in 24 contrast pairs — two near-identical inputs
24
+ per pair, at the points where the Fountain syntax leaves a choice. In 17 pairs
25
+ the one difference changes how the lines are classified. In the other 7 it
26
+ changes the surface and the labels hold: a lowercase scene prefix, a cue
27
+ extension, a non-Latin cue, escaped characters, a dual-dialogue caret, an inline
28
+ note and centered-text markers.
29
+
30
+ **Version:** 1.0.0 · **Maintainer:** Inkwell.
31
+
32
+ Built by [Inkwell](https://www.inkwell.software/?utm_source=huggingface&utm_medium=referral&utm_campaign=observatory&utm_content=screenplay_format_edge_cases_card_home), the IDE for screenwriters.
33
+ Paste Fountain into the [Fountain validator](https://www.inkwell.software/tools/fountain-validator?utm_source=huggingface&utm_medium=referral&utm_campaign=observatory&utm_content=screenplay_format_edge_cases_card_validator)
34
+ to see the scenes, character cues, dialogue and action it recognizes.
35
+
36
+ ## What's included
37
+
38
+ `data/cases.jsonl` holds all 48 records; `schema.json` is a JSON Schema for one
39
+ record. Each record carries the Fountain input, its expected line-level element
40
+ types, the contrast pair it belongs to, and a short rationale for the expected
41
+ labels.
42
+
43
+ ## Provenance
44
+
45
+ Every specimen is original Fountain written for Inkwell and released under
46
+ CC0-1.0.
47
+
48
+ ## How the labels work
49
+
50
+ The expected labels are line-level screenplay element types. A pair shares a
51
+ `pair_id`, and `split_group` repeats it: keep both variants of a pair in the same
52
+ split, because the point of a pair is the single difference between its two
53
+ inputs.
54
+
55
+ Forty-two of the 48 specimens fall inside the subset a demonstration Fountain
56
+ parser implements, and `supported_by_demo` marks which. The other six use dual
57
+ dialogue, a note, boneyard, a section, lyrics and centered text — valid Fountain
58
+ that the demonstration exporter stops on rather than guessing. The flag records
59
+ one implementation's coverage.
60
+
61
+ Two more things the labels assume: an FDX paragraph can group adjacent action or
62
+ dialogue lines, so a paragraph count can differ from the line-level label count;
63
+ and a forced-element marker (`!`, `@`, `.`, `>`) is syntax, not rendered text.
64
+
65
+ ## What it's for
66
+
67
+ Teaching the syntax contrasts, building regression tests, and watching which
68
+ single edit changes how a line is classified. Extend it with your own cases as
69
+ your parser grows.
70
+
71
+ ## Load the records
72
+
73
+ ```python
74
+ from datasets import load_dataset
75
+ cases = load_dataset("Inkwell-Software/screenplay-format-edge-cases", split="test")
76
+ print(cases[0])
77
+ ```
78
+
79
+ ## Citation
80
+
81
+ Cite "Inkwell, Screenplay Format Edge Cases, version 1.0.0"; the machine-readable
82
+ form is in [`CITATION.cff`](./CITATION.cff).
83
+
84
+ ## Maintenance
85
+
86
+ Open a discussion with the case ID, the expected behavior, the observed behavior,
87
+ and the relevant part of the [Fountain spec](https://fountain.io/syntax/). A
88
+ change to expected labels is a version increment and a changelog entry.
data/cases.jsonl ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"id": "forced-action-a", "pair_id": "forced-action", "pair_number": 1, "variant": "A", "title": "Action or cue", "category": "ambiguity", "fountain": "THE LIGHTS FAIL\nNobody moves.", "expected_types": ["Character", "Dialogue"], "supported_by_demo": true, "rationale": "A capitalized line followed immediately by text can be a cue. The exclamation mark explicitly chooses action.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "forced-action"}
2
+ {"id": "forced-action-b", "pair_id": "forced-action", "pair_number": 1, "variant": "B", "title": "Action or cue", "category": "ambiguity", "fountain": "!THE LIGHTS FAIL\nNobody moves.", "expected_types": ["Action", "Action"], "supported_by_demo": true, "rationale": "A capitalized line followed immediately by text can be a cue. The exclamation mark explicitly chooses action.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "forced-action"}
3
+ {"id": "forced-character-a", "pair_id": "forced-character", "pair_number": 2, "variant": "A", "title": "Mixed-case name", "category": "character", "fountain": "McKENNA\nKeep the receipt.", "expected_types": ["Action", "Action"], "supported_by_demo": true, "rationale": "The at-sign forces a cue without uppercasing or renaming a character.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "forced-character"}
4
+ {"id": "forced-character-b", "pair_id": "forced-character", "pair_number": 2, "variant": "B", "title": "Mixed-case name", "category": "character", "fountain": "@McKENNA\nKeep the receipt.", "expected_types": ["Character", "Dialogue"], "supported_by_demo": true, "rationale": "The at-sign forces a cue without uppercasing or renaming a character.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "forced-character"}
5
+ {"id": "blank-after-cue-a", "pair_id": "blank-after-cue", "pair_number": 3, "variant": "A", "title": "Whitespace changes the element", "category": "whitespace", "fountain": "ROWAN\nThat is the last one.", "expected_types": ["Character", "Dialogue"], "supported_by_demo": true, "rationale": "An empty line after the uppercase text removes the automatic cue-and-dialogue pattern.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "blank-after-cue"}
6
+ {"id": "blank-after-cue-b", "pair_id": "blank-after-cue", "pair_number": 3, "variant": "B", "title": "Whitespace changes the element", "category": "whitespace", "fountain": "ROWAN\n\nThat is the last one.", "expected_types": ["Action", "Action"], "supported_by_demo": true, "rationale": "An empty line after the uppercase text removes the automatic cue-and-dialogue pattern.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "blank-after-cue"}
7
+ {"id": "blank-before-cue-a", "pair_id": "blank-before-cue", "pair_number": 4, "variant": "A", "title": "A cue needs a boundary", "category": "whitespace", "fountain": "A drawer opens.\nROWAN\nThat is the last one.", "expected_types": ["Action", "Action", "Action"], "supported_by_demo": true, "rationale": "A paragraph boundary matters; capitalization alone is not a sufficient detector.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "blank-before-cue"}
8
+ {"id": "blank-before-cue-b", "pair_id": "blank-before-cue", "pair_number": 4, "variant": "B", "title": "A cue needs a boundary", "category": "whitespace", "fountain": "A drawer opens.\n\nROWAN\nThat is the last one.", "expected_types": ["Action", "Character", "Dialogue"], "supported_by_demo": true, "rationale": "A paragraph boundary matters; capitalization alone is not a sufficient detector.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "blank-before-cue"}
9
+ {"id": "scene-case-a", "pair_id": "scene-case", "pair_number": 5, "variant": "A", "title": "A scene prefix need not shout", "category": "scene", "fountain": "INT. RECORDS ROOM - NIGHT", "expected_types": ["Scene Heading"], "supported_by_demo": true, "rationale": "Scene-prefix recognition is case-insensitive; the spelling is not evidence of a second location.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "scene-case"}
10
+ {"id": "scene-case-b", "pair_id": "scene-case", "pair_number": 5, "variant": "B", "title": "A scene prefix need not shout", "category": "scene", "fountain": "int. Records room - night", "expected_types": ["Scene Heading"], "supported_by_demo": true, "rationale": "Scene-prefix recognition is case-insensitive; the spelling is not evidence of a second location.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "scene-case"}
11
+ {"id": "forced-scene-a", "pair_id": "forced-scene", "pair_number": 6, "variant": "A", "title": "A heading without INT or EXT", "category": "scene", "fountain": "THE FOLLOWING MORNING", "expected_types": ["Action"], "supported_by_demo": true, "rationale": "A leading period forces a scene heading. It does not prove a new physical location.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "forced-scene"}
12
+ {"id": "forced-scene-b", "pair_id": "forced-scene", "pair_number": 6, "variant": "B", "title": "A heading without INT or EXT", "category": "scene", "fountain": ".THE FOLLOWING MORNING", "expected_types": ["Scene Heading"], "supported_by_demo": true, "rationale": "A leading period forces a scene heading. It does not prove a new physical location.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "forced-scene"}
13
+ {"id": "numeric-cue-a", "pair_id": "numeric-cue", "pair_number": 7, "variant": "A", "title": "At least one letter", "category": "character", "fountain": "23\nTry the west door.", "expected_types": ["Action", "Action"], "supported_by_demo": true, "rationale": "An all-digit line is not automatically a character cue. A letter changes the syntactic candidate.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "numeric-cue"}
14
+ {"id": "numeric-cue-b", "pair_id": "numeric-cue", "pair_number": 7, "variant": "B", "title": "At least one letter", "category": "character", "fountain": "R23\nTry the west door.", "expected_types": ["Character", "Dialogue"], "supported_by_demo": true, "rationale": "An all-digit line is not automatically a character cue. A letter changes the syntactic candidate.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "numeric-cue"}
15
+ {"id": "voice-extension-a", "pair_id": "voice-extension", "pair_number": 8, "variant": "A", "title": "A cue extension is not a second speaker", "category": "character", "fountain": "LENA\nThe lift is stuck.", "expected_types": ["Character", "Dialogue"], "supported_by_demo": true, "rationale": "The extension affects delivery, not a demonstrated character-identity change.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "voice-extension"}
16
+ {"id": "voice-extension-b", "pair_id": "voice-extension", "pair_number": 8, "variant": "B", "title": "A cue extension is not a second speaker", "category": "character", "fountain": "LENA (V.O.)\nThe lift is stuck.", "expected_types": ["Character", "Dialogue"], "supported_by_demo": true, "rationale": "The extension affects delivery, not a demonstrated character-identity change.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "voice-extension"}
17
+ {"id": "parenthetical-context-a", "pair_id": "parenthetical-context", "pair_number": 9, "variant": "A", "title": "Parenthetical in and out of dialogue", "category": "parenthetical", "fountain": "(under her breath)", "expected_types": ["Action"], "supported_by_demo": true, "rationale": "Parentheses do not independently determine the screenplay element; preceding dialogue context does.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "parenthetical-context"}
18
+ {"id": "parenthetical-context-b", "pair_id": "parenthetical-context", "pair_number": 9, "variant": "B", "title": "Parenthetical in and out of dialogue", "category": "parenthetical", "fountain": "LENA\n(under her breath)\nNot today.", "expected_types": ["Character", "Parenthetical", "Dialogue"], "supported_by_demo": true, "rationale": "Parentheses do not independently determine the screenplay element; preceding dialogue context does.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "parenthetical-context"}
19
+ {"id": "parenthetical-inline-a", "pair_id": "parenthetical-inline", "pair_number": 10, "variant": "A", "title": "Extension versus direction", "category": "parenthetical", "fountain": "LENA (on radio)\nCheck again.", "expected_types": ["Character", "Dialogue"], "supported_by_demo": true, "rationale": "The two encodings place direction differently. Do not silently merge them in an interchange test.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "parenthetical-inline"}
20
+ {"id": "parenthetical-inline-b", "pair_id": "parenthetical-inline", "pair_number": 10, "variant": "B", "title": "Extension versus direction", "category": "parenthetical", "fountain": "LENA\n(on radio)\nCheck again.", "expected_types": ["Character", "Parenthetical", "Dialogue"], "supported_by_demo": true, "rationale": "The two encodings place direction differently. Do not silently merge them in an interchange test.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "parenthetical-inline"}
21
+ {"id": "two-dialogue-lines-a", "pair_id": "two-dialogue-lines", "pair_number": 11, "variant": "A", "title": "Hard breaks do not add speakers", "category": "whitespace", "fountain": "LENA\nOne key. One chance.", "expected_types": ["Character", "Dialogue"], "supported_by_demo": true, "rationale": "A line break changes line count without changing the speaker. Line share is not word share.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "two-dialogue-lines"}
22
+ {"id": "two-dialogue-lines-b", "pair_id": "two-dialogue-lines", "pair_number": 11, "variant": "B", "title": "Hard breaks do not add speakers", "category": "whitespace", "fountain": "LENA\nOne key.\nOne chance.", "expected_types": ["Character", "Dialogue", "Dialogue"], "supported_by_demo": true, "rationale": "A line break changes line count without changing the speaker. Line share is not word share.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "two-dialogue-lines"}
23
+ {"id": "two-action-lines-a", "pair_id": "two-action-lines", "pair_number": 12, "variant": "A", "title": "A line break is not a new scene", "category": "whitespace", "fountain": "The clock stops. The room stays bright.", "expected_types": ["Action"], "supported_by_demo": true, "rationale": "Wrapping action changes line-level statistics while leaving words and scenes unchanged.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "two-action-lines"}
24
+ {"id": "two-action-lines-b", "pair_id": "two-action-lines", "pair_number": 12, "variant": "B", "title": "A line break is not a new scene", "category": "whitespace", "fountain": "The clock stops.\nThe room stays bright.", "expected_types": ["Action", "Action"], "supported_by_demo": true, "rationale": "Wrapping action changes line-level statistics while leaving words and scenes unchanged.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "two-action-lines"}
25
+ {"id": "automatic-transition-a", "pair_id": "automatic-transition", "pair_number": 13, "variant": "A", "title": "A transition needs its own paragraph", "category": "transition", "fountain": "CUT TO:\n\nEXT. PLATFORM - DAWN", "expected_types": ["Transition", "Scene Heading"], "supported_by_demo": true, "rationale": "A missing blank line can create a different parse. This laboratory illustrates the reference subset, not a repair policy for arbitrary files.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "automatic-transition"}
26
+ {"id": "automatic-transition-b", "pair_id": "automatic-transition", "pair_number": 13, "variant": "B", "title": "A transition needs its own paragraph", "category": "transition", "fountain": "CUT TO:\nEXT. PLATFORM - DAWN", "expected_types": ["Character", "Dialogue"], "supported_by_demo": true, "rationale": "A missing blank line can create a different parse. This laboratory illustrates the reference subset, not a repair policy for arbitrary files.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "automatic-transition"}
27
+ {"id": "forced-transition-a", "pair_id": "forced-transition", "pair_number": 14, "variant": "A", "title": "Explicit transition without TO", "category": "transition", "fountain": "FADE OUT.", "expected_types": ["Action"], "supported_by_demo": true, "rationale": "A greater-than prefix can force a transition that would otherwise be ordinary action.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "forced-transition"}
28
+ {"id": "forced-transition-b", "pair_id": "forced-transition", "pair_number": 14, "variant": "B", "title": "Explicit transition without TO", "category": "transition", "fountain": ">FADE OUT.", "expected_types": ["Transition"], "supported_by_demo": true, "rationale": "A greater-than prefix can force a transition that would otherwise be ordinary action.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "forced-transition"}
29
+ {"id": "forced-scene-transition-a", "pair_id": "forced-scene-transition", "pair_number": 15, "variant": "A", "title": "The writer decides the type", "category": "transition", "fountain": ">LATER", "expected_types": ["Transition"], "supported_by_demo": true, "rationale": "The same word becomes a different element under an explicit forcing marker.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "forced-scene-transition"}
30
+ {"id": "forced-scene-transition-b", "pair_id": "forced-scene-transition", "pair_number": 15, "variant": "B", "title": "The writer decides the type", "category": "transition", "fountain": ".LATER", "expected_types": ["Scene Heading"], "supported_by_demo": true, "rationale": "The same word becomes a different element under an explicit forcing marker.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "forced-scene-transition"}
31
+ {"id": "nonlatin-cue-a", "pair_id": "nonlatin-cue", "pair_number": 16, "variant": "A", "title": "A non-Latin cue", "category": "character", "fountain": "@李\nWe missed the first train.", "expected_types": ["Character", "Dialogue"], "supported_by_demo": true, "rationale": "A forced cue retains the supplied name. Unicode text must survive an FDX export.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "nonlatin-cue"}
32
+ {"id": "nonlatin-cue-b", "pair_id": "nonlatin-cue", "pair_number": 16, "variant": "B", "title": "A non-Latin cue", "category": "character", "fountain": "@李 (V.O.)\nWe missed the first train.", "expected_types": ["Character", "Dialogue"], "supported_by_demo": true, "rationale": "A forced cue retains the supplied name. Unicode text must survive an FDX export.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "nonlatin-cue"}
33
+ {"id": "xml-escape-a", "pair_id": "xml-escape", "pair_number": 17, "variant": "A", "title": "Special characters are text", "category": "interop", "fountain": "LENA\nUse A & B.", "expected_types": ["Character", "Dialogue"], "supported_by_demo": true, "rationale": "Angle brackets and ampersands in dialogue must be escaped in XML, not treated as markup.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "xml-escape"}
34
+ {"id": "xml-escape-b", "pair_id": "xml-escape", "pair_number": 17, "variant": "B", "title": "Special characters are text", "category": "interop", "fountain": "LENA\nUse <A> & \"B\".", "expected_types": ["Character", "Dialogue"], "supported_by_demo": true, "rationale": "Angle brackets and ampersands in dialogue must be escaped in XML, not treated as markup.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "xml-escape"}
35
+ {"id": "literal-forcing-a", "pair_id": "literal-forcing", "pair_number": 18, "variant": "A", "title": "Explicit action before a heading-like line", "category": "scene", "fountain": "INT. THE LETTER SAYS NOTHING - DAY", "expected_types": ["Scene Heading"], "supported_by_demo": true, "rationale": "A forcing marker overrides an apparent scene prefix. A converter must preserve the intended element.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "literal-forcing"}
36
+ {"id": "literal-forcing-b", "pair_id": "literal-forcing", "pair_number": 18, "variant": "B", "title": "Explicit action before a heading-like line", "category": "scene", "fountain": "!INT. THE LETTER SAYS NOTHING - DAY", "expected_types": ["Action"], "supported_by_demo": true, "rationale": "A forcing marker overrides an apparent scene prefix. A converter must preserve the intended element.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "literal-forcing"}
37
+ {"id": "dual-dialogue-a", "pair_id": "dual-dialogue", "pair_number": 19, "variant": "A", "title": "Simultaneity needs a structure", "category": "unsupported", "fountain": "LENA\nWait.\n\nROWAN\nGo.", "expected_types": ["Character", "Dialogue", "Character", "Dialogue"], "supported_by_demo": true, "rationale": "The caret signals simultaneous delivery. The simple FDX exporter refuses this case because sibling paragraphs alone do not preserve dual dialogue.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "dual-dialogue"}
38
+ {"id": "dual-dialogue-b", "pair_id": "dual-dialogue", "pair_number": 19, "variant": "B", "title": "Simultaneity needs a structure", "category": "unsupported", "fountain": "LENA\nWait.\n\nROWAN ^\nGo.", "expected_types": ["Character", "Dialogue", "Character", "Dialogue"], "supported_by_demo": false, "rationale": "The caret signals simultaneous delivery. The simple FDX exporter refuses this case because sibling paragraphs alone do not preserve dual dialogue.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "dual-dialogue"}
39
+ {"id": "note-a", "pair_id": "note", "pair_number": 20, "variant": "A", "title": "Annotation is not screenplay action", "category": "unsupported", "fountain": "The ticket is blank.", "expected_types": ["Action"], "supported_by_demo": true, "rationale": "Bracket notes require a dedicated nonprinting representation. The subset parser rejects notes rather than counting them as spoken or visible action.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "note"}
40
+ {"id": "note-b", "pair_id": "note", "pair_number": 20, "variant": "B", "title": "Annotation is not screenplay action", "category": "unsupported", "fountain": "The ticket is blank. [[Check continuity]]", "expected_types": ["Action"], "supported_by_demo": false, "rationale": "Bracket notes require a dedicated nonprinting representation. The subset parser rejects notes rather than counting them as spoken or visible action.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "note"}
41
+ {"id": "boneyard-a", "pair_id": "boneyard", "pair_number": 21, "variant": "A", "title": "Omitted text is not visible content", "category": "unsupported", "fountain": "The ticket is blank.", "expected_types": ["Action"], "supported_by_demo": true, "rationale": "Boneyarded material should not enter visible-text metrics. This educational exporter refuses it instead of stripping potentially meaningful text.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "boneyard"}
42
+ {"id": "boneyard-b", "pair_id": "boneyard", "pair_number": 21, "variant": "B", "title": "Omitted text is not visible content", "category": "unsupported", "fountain": "/*The ticket is blank.*/", "expected_types": [], "supported_by_demo": false, "rationale": "Boneyarded material should not enter visible-text metrics. This educational exporter refuses it instead of stripping potentially meaningful text.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "boneyard"}
43
+ {"id": "section-a", "pair_id": "section", "pair_number": 22, "variant": "A", "title": "Outline structure is not a scene", "category": "unsupported", "fountain": "ARRIVAL", "expected_types": ["Action"], "supported_by_demo": true, "rationale": "A section heading belongs to outline metadata. It is not a screenplay scene heading or a filmed action.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "section"}
44
+ {"id": "section-b", "pair_id": "section", "pair_number": 22, "variant": "B", "title": "Outline structure is not a scene", "category": "unsupported", "fountain": "# ARRIVAL", "expected_types": ["Section"], "supported_by_demo": false, "rationale": "A section heading belongs to outline metadata. It is not a screenplay scene heading or a filmed action.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "section"}
45
+ {"id": "lyrics-a", "pair_id": "lyrics", "pair_number": 23, "variant": "A", "title": "Lyrics are an explicit element", "category": "unsupported", "fountain": "The last train waits.", "expected_types": ["Action"], "supported_by_demo": true, "rationale": "Lyrics need their own interpretation; the minimal interchange contract refuses to approximate them as dialogue.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "lyrics"}
46
+ {"id": "lyrics-b", "pair_id": "lyrics", "pair_number": 23, "variant": "B", "title": "Lyrics are an explicit element", "category": "unsupported", "fountain": "~The last train waits.", "expected_types": ["Lyrics"], "supported_by_demo": false, "rationale": "Lyrics need their own interpretation; the minimal interchange contract refuses to approximate them as dialogue.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "lyrics"}
47
+ {"id": "centered-a", "pair_id": "centered", "pair_number": 24, "variant": "A", "title": "Centered text needs layout semantics", "category": "unsupported", "fountain": "THE END", "expected_types": ["Action"], "supported_by_demo": true, "rationale": "Centered action is not a transition. The exporter refuses the unsupported layout rather than pretending layout was preserved.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "centered"}
48
+ {"id": "centered-b", "pair_id": "centered", "pair_number": 24, "variant": "B", "title": "Centered text needs layout semantics", "category": "unsupported", "fountain": ">THE END<", "expected_types": ["Action"], "supported_by_demo": false, "rationale": "Centered action is not a transition. The exporter refuses the unsupported layout rather than pretending layout was preserved.", "reference": "https://fountain.io/syntax/", "provenance": "Original Inkwell teaching fixture", "license": "CC0-1.0", "split_group": "centered"}
schema.json ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "title": "Screenplay Format Edge Cases record",
4
+ "description": "One line of data/cases.jsonl: an original Fountain specimen, the line-level element types it should produce, and the contrast pair it belongs to. Every field is required and none is nullable.",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "id",
9
+ "pair_id",
10
+ "pair_number",
11
+ "variant",
12
+ "title",
13
+ "category",
14
+ "fountain",
15
+ "expected_types",
16
+ "supported_by_demo",
17
+ "rationale",
18
+ "reference",
19
+ "provenance",
20
+ "license",
21
+ "split_group"
22
+ ],
23
+ "properties": {
24
+ "id": {
25
+ "description": "Unique record ID: the pair ID followed by -a or -b.",
26
+ "type": "string",
27
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*-[ab]$"
28
+ },
29
+ "pair_id": {
30
+ "description": "Shared by the two variants of one contrast pair.",
31
+ "type": "string",
32
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
33
+ },
34
+ "pair_number": {
35
+ "description": "The pair's position in the set, from 1.",
36
+ "type": "integer",
37
+ "minimum": 1
38
+ },
39
+ "variant": {
40
+ "description": "Which side of the contrast this record is.",
41
+ "enum": ["A", "B"]
42
+ },
43
+ "title": {
44
+ "description": "The pair's short name.",
45
+ "type": "string",
46
+ "minLength": 1
47
+ },
48
+ "category": {
49
+ "description": "The formatting decision the pair exercises.",
50
+ "enum": [
51
+ "ambiguity",
52
+ "character",
53
+ "interop",
54
+ "parenthetical",
55
+ "scene",
56
+ "transition",
57
+ "unsupported",
58
+ "whitespace"
59
+ ]
60
+ },
61
+ "fountain": {
62
+ "description": "The Fountain input.",
63
+ "type": "string",
64
+ "minLength": 1
65
+ },
66
+ "expected_types": {
67
+ "description": "One screenplay element type per non-blank line of the input, in order. Boneyard lines carry no label, so an input that is all boneyard has an empty list.",
68
+ "type": "array",
69
+ "items": {
70
+ "enum": [
71
+ "Action",
72
+ "Centered",
73
+ "Character",
74
+ "Dialogue",
75
+ "Lyrics",
76
+ "Note",
77
+ "Page Break",
78
+ "Parenthetical",
79
+ "Scene Heading",
80
+ "Section",
81
+ "Synopsis",
82
+ "Title Page",
83
+ "Transition"
84
+ ]
85
+ }
86
+ },
87
+ "supported_by_demo": {
88
+ "description": "Whether the input falls inside the subset a demonstration Fountain parser implements.",
89
+ "type": "boolean"
90
+ },
91
+ "rationale": {
92
+ "description": "Why the expected labels are what they are.",
93
+ "type": "string",
94
+ "minLength": 1
95
+ },
96
+ "reference": {
97
+ "description": "The part of the Fountain syntax the labels follow.",
98
+ "type": "string",
99
+ "pattern": "^https://"
100
+ },
101
+ "provenance": {
102
+ "description": "Where the specimen comes from.",
103
+ "type": "string",
104
+ "minLength": 1
105
+ },
106
+ "license": {
107
+ "description": "SPDX identifier of the record's license.",
108
+ "const": "CC0-1.0"
109
+ },
110
+ "split_group": {
111
+ "description": "Keep records with the same value in the same split. Equal to pair_id.",
112
+ "type": "string",
113
+ "minLength": 1
114
+ }
115
+ }
116
+ }