code$ swipl -s code_English.prolog
% Janus 1.5.2 embeds Python 3.13.13 (main, Apr 8 2026, 18:23:14) [Clang 21.0.0 (clang-2100.0.123.102)]
Manual & tutorial: https://sandiway.arizona.edu Sandiway Fong (2024-2026)
Run: ?- parse(List,SO,L). (; for more answers)
List = [..words] (input), SO,L = syntactic object, [..] spellout (output)
See derivation: ?- report. ?- graph. (<- after parse/3) ?- summary. (short)
for a long report ?- retract(no_fill).
LEX expansion: ⒜ WordNet: ?- useMorphy. (noMorphy)
assert/retract/?- : use_morphy(C), for C={v,n,a,r}. ⒝ edit lex.prolog
⒞ ?- addNoun(Word) (addTr/addUrg/addUnacc/addAdj/addPrep).
Welcome to SWI-Prolog (threaded, 64 bits, version 10.0.2)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.
For online help and background, visit https://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).
% Interactive session; added `.` to Python `sys.path`
101 ?- parse([revolutionary,new,ideas,appear,infrequently],S,L).
Words: revolutionary new ideas appear infrequently
Initial WS: infrequently_v appear_θ v_appear:pres INFL_v ideas new_θ revolutionary_θ
INT/EXT: {C, {INFL_v, {infrequently_v, {v_appear:pres, {appear_θ, {ideas, {{new_θ, ideas}, {revolutionary_θ, ideas}}}}}}}}
EXT: {new,[and],revolutionary} ideas infrequently 3pl pres appear
Spellout: {new,[and],revolutionary} ideas infrequently appear
Blocked: inconsistent with input!
EXT: {new,[and],revolutionary} ideas 3pl pres appear infrequently
Spellout: {new,[and],revolutionary} ideas appear infrequently
Parse found!
S = {C, {INFL_v, {infrequently_v, {v_appear:pres, {appear_θ, {ideas, {{new_θ, ideas}, {revolutionary_θ, ideas}}}}}}}},
L = [[new,[and],revolutionary],ideas,appear,infrequently] ;
EXT: there infrequently 3pl pres appear {new,[and],revolutionary} ideas
Spellout: there infrequently appear {new,[and],revolutionary} ideas
Blocked: inconsistent with input!
EXT: there 3pl pres appear {new,[and],revolutionary} ideas infrequently
Spellout: there appear {new,[and],revolutionary} ideas infrequently
Blocked: inconsistent with input!
INT/EXT: {C, {INFL_v, {infrequently_v, {v_appear:pres, {appear_θ, {{new_θ, {ideas,{revolutionary_θ:,ideas}}}, {ideas, {revolutionary_θ, ideas}}}}}}}}
INT/EXT: {C, {INFL_v, {infrequently_v, {v_appear:pres, {appear_θ, {{revolutionary_θ, {ideas,{new_θ:,ideas}}}, {ideas, {new_θ, ideas}}}}}}}}
false.
103 ?- report.
REPORT LENGTH: 95
true.