diff --git a/Algorithm-Writer-with-Lists/.DS_Store b/Algorithm-Writer-with-Lists/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..fa86ddcb4b7354ec285ae550a09bc16e08f050fb
Binary files /dev/null and b/Algorithm-Writer-with-Lists/.DS_Store differ
diff --git a/Algorithm-Writer-with-Lists/LICENSE b/Algorithm-Writer-with-Lists/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..3a27c90f1c2986ac0fb73b4ae956c6205343dfdd
--- /dev/null
+++ b/Algorithm-Writer-with-Lists/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2020, Lucian Green
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Algorithm-Writer-with-Lists/README.md b/Algorithm-Writer-with-Lists/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..cf5b7813d0f2a9b32ff34f83349f8fe901bb1891
--- /dev/null
+++ b/Algorithm-Writer-with-Lists/README.md
@@ -0,0 +1,195 @@
+Essay Helper | Text-to-Breasonings (Helps Earn High Distinctions) | Grammar Logic (Helps Mind Map Details)
+
+# Algorithm Writer with Lists
+
+Generates random algorithms in List Prolog, which can be converted to a simple form similar to Prolog.
+
+* algwriter-lists-mr.pl - generates algorithms with combinations of other algorithms with vague mind reading
+* algwriter-lists-random.pl - generates algorithms with combinations of other algorithms at random
+* grammar_logic_to_alg.pl - takes text, randomly generates details and appropriate algorithms for A (agreement), B (disagreement) and solution to B based on approximate parts of speech and the Text to Breasonings dictionary.
+* grammar_logic_to_alg_random.pl - like the previous algorithm but randomly selects up to 10 sentences from the file to process.
+* random_dependencies.pl - generates random (meaningless) algorithm specifications.
+* combophil.pl - finds combinations of lines to write philosophies about.
+* combophil_grammar_logic_to_alg.pl - finds all combinations in lines to write philosophies and does what grammar_logic_to_alg.pl (above) does.
+* four_crosses.pl - finds 4 crosses to transition to PhD refinement.
+* combophil2qadb.pl - generates algorithms from dictionary.
+* mr_alg.pl and ya_phil_to_alg.pl - Yet Another Philosophy to Algorithm and Mind Read Algorithm (randomly produces 5 line algorithms with type checking, possibly about Lucian Academy philosophies).
+
+Please contact Lucian Green at luciangreen@lucianacademy.com with questions, comments and feedback about Algorithm Writer with Lists.
+
+# Getting Started
+
+Please read the following instructions on how to install the project on your computer for generating algorithms.
+
+# Prerequisites
+
+* Please download and install SWI-Prolog for your machine at `https://www.swi-prolog.org/build/`.
+
+# 1. Install manually
+
+Download this repository, the List Prolog Interpreter Repository and the Text to Breasonings Repository.
+
+# 2. Or Install from List Prolog Package Manager (LPPM)
+
+* Download the LPPM Repository:
+
+```
+mkdir GitHub
+cd GitHub/
+git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
+cd List-Prolog-Package-Manager
+swipl
+['lppm'].
+lppm_install("luciangreen","Algorithm-Writer-with-Lists").
+halt
+```
+
+# Caution:
+
+follow instructions in Instructions for Using texttobr(2) when using texttobr, texttobr2 or mind reader to avoid medical problems.
+
+# Running Algorithm Writer with Lists with Mind Reader
+
+* In Shell:
+`cd Algorithm-Writer-with-Lists`
+`swipl`
+`['algwriter-lists-mr.pl'].`
+
+* Enter `algwriter(Algorithm),writeln1(Algorithm).`
+
+# Installing and Running Algorithm Writer with Lists at Random
+
+* Download this repository.
+* In SWI-Prolog, in the `"Algorithm-Writer-with-Lists"` folder, enter:
+```
+['algwriter-lists-random.pl'].
+```
+* Enter `algwriter(Algorithm),writeln1(Algorithm).`
+
+# Installing and Running Grammar and Logic to Algorithm
+
+* Download this repository.
+* In SWI-Prolog, in the `"Algorithm-Writer-with-Lists"` folder, enter:
+```
+['grammar_logic_to_alg.pl'].
+```
+* Enter sentences and lines to randomly process to give details and algorithms to into `"file.txt"` in the `"Text-to-Breasonings"` folder. The output or the `gla.txt` file, depending on whether you run using (1) or (2) in the following will contain the sentences and algorithms with instructions about how to run them.
+
+* Enter `grammar_logic_to_alg1.` (1) or paste the contents of `grammar_logic_to_alg_sh.txt` into the Terminal window on Mac (2).
+
+# Installing and Running Grammar and Logic to Algorithm at Random
+
+* Download this repository.
+* In SWI-Prolog, in the `"Algorithm-Writer-with-Lists"` folder, enter:
+```
+['grammar_logic_to_alg_random.pl'].
+```
+* As stated above, rather than processing the whole file, this algorithm processes up to 10 random sentences.
+* Enter many sentences and lines to randomly process to give details and algorithms to into `"file.txt"` in the `"Algorithm-Writer-with-Lists"` folder. The output or the `gla.txt` file, depending on whether you run using (1) or (2) in the following will contain the sentences and algorithms with instructions about how to run them.
+
+* Enter `grammar_logic_to_alg1.` (1) or paste the contents of `grammar_logic_to_alg_sh.txt` into the Terminal window on Mac (2).
+
+# Installing and Running Random Dependencies
+
+* Download this repository.
+* In SWI-Prolog, in the `"Algorithm-Writer-with-Lists"` folder, enter:
+```
+['random_dependencies.pl'].
+```
+* As stated above, the value of this algorithm's input is found by mentally inserting not and transformations.
+
+* Enter `random_dependencies(A),writeln1(A).`
+
+```
+[substring,[[duplicates,[[]]],[findall,[[add_number_to_list,[[split_into_sentences,[[sort,[[list_head,[[reverse,[[findall,[[string_to_list,[[or,[[and,[[delete,[[map,[[]]]]],[]]]]]]]]]]]]],[map,[[length,[[maximum,[[length,[[reverse,[[split_into_sentences,[[member,[[map,[[]]]]]]],[]]]]]]],[delete,[[get_item_n,[[],[and,[[]]]]],[reverse,[[]]]]]]],[]]]]]]]]]]]]]
+```
+
+# Installing and Running Combinations of Lines of Philosophy
+
+* Download this repository.
+* In SWI-Prolog, in the `"Algorithm-Writer-with-Lists"` folder, enter:
+```
+['combophil.pl'].
+```
+* Finds combinations of lines to write philosophies about with e.g. a combination of 2 lines:
+
+* Enter `combophil(2).`
+
+# Installing and Running Combinations of Lines of Philosophy with Grammar and Logic to Algorithm
+
+* Download this repository.
+* In SWI-Prolog, in the `"Algorithm-Writer-with-Lists"` folder, enter:
+```
+['combophil_grammar_logic_to_alg.pl'].
+```
+* Enter sentences and lines to intermix (warning: takes all combinations of verbs and non verbs in file) and randomly process to give details and algorithms to into `"file.txt"` in the `"Text-to-Breasonings"` folder. The output in the following will contain the sentences and algorithms with instructions about how to run them.
+
+* Enter `combophil_grammar_logic_to_alg1.`
+
+# Installing and Running Four Crosses
+* Download this repository.
+* In SWI-Prolog, in the `"Algorithm-Writer-with-Lists"` folder, enter:
+```
+['four_crosses.pl'].
+```
+* Enter four levels of crosses of ideas to make a PhD-level connection.
+
+* Enter `four_crosses.`
+
+# grammar_logic_to_alg2.pl
+* Converts files from e.g. grammar_logic_to_alg.pl to simplified algorithms with more specific command names. Breason out file.txt using Text-to-Breasonings, run grammar_logic_to_alg.pl, run
+grammar_logic_to_alg2.pl, then run Text-to-Breasonings Reading Algorithm on the grammar_logic_to_alg2.pl output.
+* Download this repository.
+* In SWI-Prolog, in the `"Algorithm-Writer-with-Lists"` folder, enter:
+```
+['grammar_logic_to_alg2.pl'].
+```
+* Enter the number of words in file.txt to replace with computational language (it learns as it goes).
+
+* Enter `grammar_logic_to_alg2(200).`
+
+# combophil2qadb.pl
+* Generates algorithms in qadb format from word dictionary.
+* Download this repository.
+* In SWI-Prolog, in the `"Algorithm-Writer-with-Lists"` folder, enter:
+```
+['combophil2qadb.pl'].
+```
+* Enter `.` or `\n` delimited algorithm ideas in `Text-to-Breasonings/file.txt` and enter:
+`combophil2qadb.`
+* Produces algorithms in `file-o.txt`.
+
+# Installing and Running Yet Another Philosophy to Algorithm and Mind Read Algorithm
+
+* Download this repository.
+* In SWI-Prolog, in the `"Algorithm-Writer-with-Lists"` folder, enter:
+```
+['ya_phil_to_alg.pl.pl'].
+
+```
+* As stated above, Yet Another Philosophy to Algorithm randomly produces 5 line algorithms with type checking about all sentences in `Lucian-Academy/`.
+
+
+* Enter `ya_phil_to_alg.`
+
+* Produces the file `yet_more_phil_algs.txt`, containing, for example:
+```
+...n,length,list,number,n,round,number,number,n,sqrt,number,number,n,sqrt,number,number,n,round,number,number,n,sqrt,number,number...
+```
+
+* To produce one five-line algorithm, enter `mr_alg(Commands).`, producing:
+
+* `Commands = [[[n,member],[[list],[_3386]]],[[n,member],[[list],[list]]],[[n,intersection],[[list],[list]]],[[n,member],[[list],[_5928]]],[[n,atom_string],[[atom],[string]]],[[n,string_length],[[string],[number]]]]`,
+
+* where this algorithm means, "Take a member (the second item, the first output of member) of a list, take a member list of this list, etc.".
+
+* Note: member(List,Item) is now member(Item,List) in List Prolog, which is different from the above.
+
+# Authors
+
+Lucian Green - Initial programmer - Lucian Academy
+
+# License
+
+I licensed this project under the BSD3 License - see the LICENSE.md file for details
+
diff --git a/Algorithm-Writer-with-Lists/algwriter-lists-mr.pl b/Algorithm-Writer-with-Lists/algwriter-lists-mr.pl
new file mode 100644
index 0000000000000000000000000000000000000000..3110cf98861ef5ed281ee48e28e1eca5a7b6c431
--- /dev/null
+++ b/Algorithm-Writer-with-Lists/algwriter-lists-mr.pl
@@ -0,0 +1,283 @@
+%% algwriter(A),write1(A).
+%% write data,fns in exec format
+
+:-include('../Text-to-Breasonings/text_to_breasonings.pl').
+
+multiply(A,B,C) :-
+C is A*B.
+
+subtract(A,B,C) :-
+C is A-B.
+
+head(A,B) :- A=[B|_].
+
+tail(A,B) :- A=[_|B].
+
+wrap(A,B) :- B=[A].
+
+algwriter(Na) :-
+notrace,
+ phrase_from_file_s(string(BrDict0), "../Text-to-Breasonings/brdict1.txt"),
+ %%SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ splitfurther(BrDict0,BrDict01),
+ %%trace,
+ sort(BrDict01,BrDict02),
+makerandomlist(BrDict02,5,[],R0),makerandomlist(R0,3,[],R1),makerandomlist(R0,3,[],R2),wrap(R1,Nb1),wrap(R2,Nb2),append(Nb1,Nb2,Nb3),trialy2A([3,4,5,6,7,8],NFns),randomfns(NFns,Nb3,Na),!.
+makerandomlist(_,0,A,A).
+makerandomlist(List,A,C1,C) :-
+not((=(A,0))),trialy2A(List,N1),%%random(R),multiply(R,L,R1),ceiling(R1,N1),
+wrap(N1,N2),append(C1,N2,Nb3),subtract(A,1,D),makerandomlist(List,D,Nb3,C).
+randomfns(1,B,Nb3):-randomlist(B,Na1),randomlist(B,Na2),randomfn(Na1,Na2,Nb),wrap(Nb,Nb2),append(B,Nb2,Nb3).%%write1(".").
+randomfns(A,B,C) :- not((=(A,1))),randomlist(B,Na1),randomlist(B,Na2),randomfn(Na1,Na2,Nb),wrap(Nb,Nb2),append(B,Nb2,Nb3),%%tail(B,T),
+ subtract(A,1,D),write(,),
+ randomfns(D,Nb3,C).
+randomlist(B,Na) :- %%List1=[1,2,3,4,5,6,7,9,10],
+length(B,L),length(C,L),append(C,_,B),trialy2A(C,Na).%%,random(R),length(B,Bl),multiply(R,Bl,N),ceiling(N,N1),getitemn(N1,B,Na).
+getitemn(0,_A,[]).
+getitemn(1,B,C) :- head(B,C).
+getitemn(A,B,C) :- not((=(A,1))),tail(B,T),subtract(A,1,D),getitemn(D,T,C).
+randomfn(A1,A2,B) :- repeat,trialy2A([1,3,4,5,7],N1),%%random(R),multiply(R,8,N),ceiling(N,N1),
+fna(N1,A1,A2,B).
+fna(1,A1,_A2,B) :- reverse(A1,[],B),write1([[n,reverse],[A1,[],B]]).
+%%fna(2,A1,_A2,B) :- sort0(A1,B),write1(sort0(A1,B)).
+fna(3,A1,A2,B) :- append1(A1,A2,B),write1([[n,append1],[A1,A2,B]]).
+fna(4,A1,A2,B) :- minus1(A1,A2,B),write1([[n,minus1],[A1,A2,B]]).
+fna(5,A1,A2,B) :- intersection1(A1,A2,[],B),write1([[n,intersection1],[A1,A2,[],B]]).
+%%fna(6,A1,A2,A2) :- mutually_exclusive(A1,A2),write1([[n,mutually_exclusive],[A1,A2]]).
+fna(7,A1,A2,B) :- duplicates(A1,A2,[],B),write1([[n,duplicates],[A1,A2,[],B]]).
+%%fna(8,A1,A2,A1) :- substring(A1,A2),write1([[n,substring],[A1,A2]]).
+reverse([],L,L).
+reverse(L,M,N) :- head(L,H),tail(L,T),wrap(H,H1),append(H1,M,O),reverse(T,O,N).
+sort0(L,N) :- sort1(L,[],N).
+sort1([],L,L).
+sort1(L,M1,N) :- not((=(L,[]))),head(L,H),tail(L,T),maximum(T,H,M2,[],R),wrap(M2,M3),append(M1,M3,M4),sort1(R,M4,N).
+maximum([],L,L,R,R).
+maximum(L,M1,N,R1,R2) :- not((=(L,[]))),head(L,H),tail(L,T),(>=(M1,H)->(=(M2,M1),wrap(H,H2),append(R1,H2,R3));(=(M2,H),wrap(M1,M12),append(R1,M12,R3))),maximum(T,M2,N,R3,R2).
+map(_F,[],L,L).
+map(F,L,M1,N) :- not((=(L,[]))),head(L,H),tail(L,T),functor(A,F,3),arg(1,A,M1),arg(2,A,H),arg(3,A,M2),A,map(F,T,M2,N).
+findall(_F,[],L,L).
+findall(F,L,M1,N) :- not((=(L,[]))),head(L,H),tail(L,T),functor(A,F,2),arg(1,A,H),arg(2,A,M2),(A->((wrap(M2,M3),append(M1,M3,M4)));(=(M1,M4))),findall(F,T,M4,N).
+intersection1([],_A,L,L).
+intersection1(L1,L2,L3a,L3) :- head(L1,I1),tail(L1,L4),intersection2(I1,L2,[],L5),append(L3a,L5,L6),intersection1(L4,L2,L6,L3).
+intersection2(_A,[],L,L).
+intersection2(I1,L1,L2,L3) :- head(L1,I1),tail(L1,L4),wrap(I1,I11),append(L2,I11,L5),intersection2(I1,L4,L5,L3).
+intersection2(I1,L1,L2,L3) :- head(L1,I2),tail(L1,L4),not((=(I1,I2))),intersection2(I1,L4,L2,L3).
+append1(B,C,A) :- append(B,C,A).
+minus1(L,[],L).
+minus1(L1,L2,L3) :- head(L2,I1),tail(L2,L5),delete2(L1,I1,[],L6),minus1(L6,L5,L3).
+delete2([],_A,L,L).
+delete2(L1,I1,L2,L3) :- head(L1,I1),tail(L1,L5),delete2(L5,I1,L2,L3).
+delete2(L1,I1,L2,L3) :- head(L1,I2),tail(L1,L5),not((=(I1,I2))),wrap(I2,I21),append(L2,I21,L6),delete2(L5,I1,L6,L3).
+
+mutually_exclusive([],_L):-!.
+mutually_exclusive(L,M):-head(L,H),tail(L,T),membera3(M,H),mutually_exclusive(T,M),!.
+membera3([],_L):-!.
+membera3(L,M):-head(L,H),tail(L,T),not((=(M,H))),membera3(T,M),!.
+
+duplicates([],_L,S,S).
+duplicates(L,M,S1,S2):-head(L,H),tail(L,T),member(H,M),(deletea2(M,H,M1)->(true);(=(M,M1))),wrap(H,H1),append(S1,H1,S3),duplicates(T,M1,S3,S2),!.
+duplicates(L,M,S1,S2):-head(L,H),tail(L,T),not((membera4(M,H))),duplicates(T,M,S1,S2).
+deletea2([],_L,_M1):-fail.
+deletea2(L,M,T):-head(L,H),tail(L,T),=(M,H).
+deletea2(L,M,M1):-head(L,H),tail(L,T),not((=(M,H))),deletea2(T,M,M1).
+membera4([],_L):-fail.
+membera4(L,H):-head(L,H).
+membera4(L,M):-head(L,H),tail(L,T),not(M=H),membera4(T,M).
+
+substring([],[]).
+substring([],B):-not((=(B,[]))),fail.
+substring(A,B):-tail(A,At),(listhead(A,B)->(true);(substring(At,B))).
+listhead(_L,[]).
+listhead(A,B):-head(A,Ah),tail(A,At),head(B,Ah),tail(B,Bt),listhead(At,Bt).
+
+
+%%%%%%%%%%%%
+
+%%findbest(R,R) :-!.
+findbest2(R,Item):-
+ sort(R,RA),
+ reverse(RA,RB),
+ RB=[[_,Item]|_Rest].
+
+trialy2A([],R) :-
+ R=[[_,'A']].
+trialy2A(List,R) :-
+ notrace,trialy2B(List,R).%%,trace.
+trialy2B(List,R) :-
+ length(List,Length),
+ ((Length=<9->
+ findr4(R4),
+ number_string(R4,R4A),
+ formr5([R4A],9,Length,R5),
+ findr(R5,List,R));
+ (Length=<99->
+ findr4(R41),
+ findr4(R42),
+ formr5([R41,R42],99,Length,R5),
+ findr(R5,List,R));
+ (Length=<999->
+ findr4(R41),
+ findr4(R42),
+ findr4(R43),
+ formr5([R41,R42,R43],999,Length,R5),
+ findr(R5,List,R));
+ (Length=<9999->
+ findr4(R41),
+ findr4(R42),
+ findr4(R43),
+ findr4(R44),
+ formr5([R41,R42,R43,R44],9999,Length,R5),
+ findr(R5,List,R));
+ (Length=<99999->
+ findr4(R41),
+ findr4(R42),
+ findr4(R43),
+ findr4(R44),
+ findr4(R45),
+ formr5([R41,R42,R43,R44,R45],99999,Length,R5),
+ findr(R5,List,R));
+ fail),
+ %%write1([r,R]),trace.
+ true.
+
+findr4(R4) :-
+ List1=[0,1,2,3,4,5,6,7,8,9],
+ Trials is 30,
+ trialy22(List1,Trials,[],R1),
+ findbest2(R1,R4).
+ %%number_string(R3,R2),
+formr5(RList,Upper,Length,R5) :-
+ %%findall(D,(member(C,RList),floor(C,D)),RList2),
+ concat_list2A(RList,R5A),
+ number_string(R5B,R5A),
+ R51 is floor((R5B/Upper)*Length),
+ (R5B=Upper->R5 is R51-1;R5=R51).
+findr(R4,List,R) :-
+ %%floor(R4,R4A),
+ length(A,R4),
+ append(A,[R|_],List).
+
+ %%random_member(A,List),
+ %%R=[[_,A]].
+
+ /**
+ length(List,L),
+ Trials is L*3,
+ trialy22(List,Trials,[],R).**/
+
+trialy22([],_,R,R) :- !.
+trialy22(List,Trials,RA,RB) :-
+ List=[Item|Items],
+ trialy21(Item,Trials,R1),
+ append(RA,[R1],RC),
+ trialy22(Items,Trials,RC,RB),!.
+
+trialy21(Label,Trials,RA) :-
+ trialy3(Trials,[],R),
+ aggregate_all(count, member(true,R), Count),
+ RA=[Count,Label].
+
+trialy3(0,R,R) :-!.
+trialy3(Trials1,RA,RB) :-
+ trialy1(R1),
+ append(RA,[R1],RC),
+ Trials2 is Trials1-1,
+ trialy3(Trials2,RC,RB),!.
+
+%% try other nouns
+trialy1(R1) :-
+ %%control11(A1),
+ %%repeat,
+ trial0(A22), %% Control
+ sum(A22,0,S22),
+ mean(S22,A1),
+ %%repeat,
+ trial0(A21), %% Test 1
+ sum(A21,0,S02),
+ mean(S02,A2),
+ (A1>A2->R1=true;R1=fail).
+
+trial0(S3) :- N is 10, trial1(N,[],S),trial01(S,S3).
+trial01(S1,S3) :-
+ sort(S1,S),
+ %%midpoint(S,MP),
+ halves(S,H1,H2),
+ midpoint(H1,Q1),
+ midpoint(H2,Q3),
+ IQR is Q3-Q1,
+ sum(S,0,S02),
+ mean(S02,Mean),
+ furthestfrommean(S,Mean,V),
+ D1 is 1.5*IQR,
+ D2 is V-Mean,
+ (D2>D1->(delete(S,V,S2),trial01(S2,S3));S=S3).
+
+%%trial1(0,[],_A) :- fail,!.
+trial1(0,A,A) :- !.
+trial1(N,A,B) :- mindreadtest(S), append(A,[S],A2),
+ N1 is N-1,trial1(N1,A2,B).
+
+%%midpoint([],0) :- !.
+
+midpoint(S,MP) :-
+%% not(S=[]),
+ length(S,L),
+ A is mod(L,2),
+ (A is 0->
+ (M1 is L/2, M2 is M1+1,N1 is M1-1,N2 is M2-1,length(N11,N1),length(N21,N2),append(N11,[N12|_Rest1],S),append(N21,[N22|_Rest2],S),MP is (N12+N22)/2)
+ ;
+ (L2 is L+1, M1 is L2/2, N1 is M1-1,length(N11,N1),append(N11,[MP|_Rest],S))).
+
+halves(S,H1,H2) :-
+ length(S,L),
+ A is mod(L,2),
+ (A is 0->
+ (M1 is L/2,length(H1,M1),append(H1,H2,S))
+ ;
+ (L2 is L-1,M1 is L2/2,length(H1,M1),append(H1,[_|H2],S))).
+
+sum([],S,S):-!.
+sum(S0,S1,S2) :-
+ S0=[S3|S4],
+ S5 is S1+S3,
+ sum(S4,S5,S2).
+
+mean(Sum,Mean) :-
+ Mean is Sum/2.
+
+furthestfrommean(S,Mean,V) :-
+ absdiffmean(S,Mean,[],D),
+ sort(D,D1),
+ reverse(D1,[[_,V]|_Rest]).
+
+absdiffmean([],_M,D,D) :- !.
+absdiffmean(S,M,D1,D2) :-
+ S=[S1|S2],
+ S3 is abs(S1-M),
+ append(D1,[[S3,S1]],D3),
+ absdiffmean(S2,M,D3,D2).
+
+mindreadtest(Sec) :-
+ %% 250 br for characters to be br out with 10 br each from person to me - do when initial 250 br test done and doing 10 br test
+ %%comment(fiftyastest),
+ %%random(X),X1 is 10*X, X2 is floor(X1), (X2=<2 -> (
+ %%texttobr,write1(['true test']), %%); %% use breasonings breasoned out by computer for not by me, for job medicine for "me", at last time point
+ %%true), %% leave last time point blank
+ %%**texttobr2(640);true),%% make an A to detect reaction to gracious giving or blame of in following
+ get_time(TimeStamp1),
+ %%phrase_from_file(string(_String), 'file.txt'),
+ texttobr2(2), %% 100 As for answer (must be br before this on same day)
+ %% is gracious giving or blame
+ get_time(TimeStamp2),
+ %%comment(turnoffas),
+ Sec is TimeStamp2 - TimeStamp1.
+
+concat_list2A(A1,B):-
+ A1=[A|List],
+ concat_list2A(A,List,B),!.
+
+concat_list2A(A,[],A):-!.
+concat_list2A(A,List,B) :-
+ List=[Item|Items],
+ string_concat(A,Item,C),
+ concat_list2A(C,Items,B).
diff --git a/Algorithm-Writer-with-Lists/algwriter-lists-random.pl b/Algorithm-Writer-with-Lists/algwriter-lists-random.pl
new file mode 100644
index 0000000000000000000000000000000000000000..db66bf13b70561c09f58271525287a8c96699520
--- /dev/null
+++ b/Algorithm-Writer-with-Lists/algwriter-lists-random.pl
@@ -0,0 +1,295 @@
+%% algwriter(A),write1(A).
+%% write data,fns in exec format
+
+:-include('../Text-to-Breasonings/text_to_breasonings.pl').
+
+multiply(A,B,C) :-
+C is A*B.
+
+subtract(A,B,C) :-
+C is A-B.
+
+head(A,B) :- A=[B|_].
+
+tail(A,B) :- A=[_|B].
+
+wrap(A,B) :- B=[A].
+
+algwriter(Na) :-
+%%notrace,
+ phrase_from_file_s(string(BrDict0), "../Text-to-Breasonings/brdict1.txt"),
+ %%SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ splitfurther(BrDict0,BrDict01),
+ %%trace,
+ sort(BrDict01,BrDict02),
+makerandomlist(BrDict02,5,[],R0),makerandomlist(R0,3,[],R1),makerandomlist(R0,3,[],R2),wrap(R1,Nb1),wrap(R2,Nb2),append(Nb1,Nb2,Nb3),trialy2A([3,4,5,6,7,8],NFns),randomfns(NFns,Nb3,Na),!.
+makerandomlist(_,0,A,A).
+makerandomlist(List,A,C1,C) :-
+not((=(A,0))),trialy2A(List,N1),%%random(R),multiply(R,L,R1),ceiling(R1,N1),
+wrap(N1,N2),append(C1,N2,Nb3),subtract(A,1,D),makerandomlist(List,D,Nb3,C).
+randomfns(1,B,Nb3):-randomlist(B,Na1),randomlist(B,Na2),randomfn(Na1,Na2,Nb),wrap(Nb,Nb2),append(B,Nb2,Nb3).%%write1(".").
+randomfns(A,B,C) :- not((=(A,1))),randomlist(B,Na1),randomlist(B,Na2),randomfn(Na1,Na2,Nb),wrap(Nb,Nb2),append(B,Nb2,Nb3),%%tail(B,T),
+ subtract(A,1,D),write(,),
+ randomfns(D,Nb3,C).
+randomlist(B,Na) :- %%List1=[1,2,3,4,5,6,7,9,10],
+length(B,L),length(C,L),append(C,_,B),trialy2A(C,Na).%%,random(R),length(B,Bl),multiply(R,Bl,N),ceiling(N,N1),getitemn(N1,B,Na).
+getitemn(0,_A,[]).
+getitemn(1,B,C) :- head(B,C).
+getitemn(A,B,C) :- not((=(A,1))),tail(B,T),subtract(A,1,D),getitemn(D,T,C).
+randomfn(A1,A2,B) :- %%repeat,
+trialy2A([1,3,4,5,7],N1),%%random(R),multiply(R,8,N),ceiling(N,N1),
+fna(N1,A1,A2,B).
+fna(1,A1,_A2,B) :- reverse(A1,[],B),writeln1([[n,reverse],[A1,[],B]]),term_to_atom(A1,A11),term_to_atom(B,B1),concat_list(["I reversed ",A11,", giving ",B1,"."],C),writeln1(C).
+%%fna(2,A1,_A2,B) :- sort0(A1,B),write1(sort0(A1,B)).
+fna(3,A1,A2,B) :- append1(A1,A2,B),writeln1([[n,append1],[A1,A2,B]]),term_to_atom(A1,A11),term_to_atom(A2,A21),term_to_atom(B,B1),concat_list(["I appended ",A11," to ",A21,", giving ",B1,"."],C),writeln1(C).
+fna(4,A1,A2,B) :- minus1(A1,A2,B),writeln1([[n,minus1],[A1,A2,B]]),term_to_atom(A1,A11),term_to_atom(A2,A21),term_to_atom(B,B1),concat_list(["I subtracted ",A21," from ",A11,", giving ",B1,"."],C),writeln1(C).
+fna(5,A1,A2,B) :- intersection1(A1,A2,[],B),writeln1([[n,intersection1],[A1,A2,[],B]]),term_to_atom(A1,A11),term_to_atom(A2,A21),term_to_atom(B,B1),concat_list(["I found the intersection of ",A11," and ",A21,", ",B1,"."],C),writeln1(C).
+%%fna(6,A1,A2,A2) :- mutually_exclusive(A1,A2),write1([[n,mutually_exclusive],[A1,A2]]).
+fna(7,A1,A2,B) :- duplicates(A1,A2,[],B),writeln1([[n,duplicates],[A1,A2,[],B]]),term_to_atom(A1,A11),term_to_atom(A2,A21),term_to_atom(B,B1),concat_list(["I found the duplicates in ",A11," and ",A21,", ",B1,"."],C),writeln1(C).
+%%fna(8,A1,A2,A1) :- substring(A1,A2),write1([[n,substring],[A1,A2]]).
+reverse([],L,L).
+reverse(L,M,N) :- head(L,H),tail(L,T),wrap(H,H1),append(H1,M,O),reverse(T,O,N).
+sort0(L,N) :- sort1(L,[],N).
+sort1([],L,L).
+sort1(L,M1,N) :- not((=(L,[]))),head(L,H),tail(L,T),maximum(T,H,M2,[],R),wrap(M2,M3),append(M1,M3,M4),sort1(R,M4,N).
+maximum([],L,L,R,R).
+maximum(L,M1,N,R1,R2) :- not((=(L,[]))),head(L,H),tail(L,T),(>=(M1,H)->(=(M2,M1),wrap(H,H2),append(R1,H2,R3));(=(M2,H),wrap(M1,M12),append(R1,M12,R3))),maximum(T,M2,N,R3,R2).
+map(_F,[],L,L).
+map(F,L,M1,N) :- not((=(L,[]))),head(L,H),tail(L,T),functor(A,F,3),arg(1,A,M1),arg(2,A,H),arg(3,A,M2),A,map(F,T,M2,N).
+findall(_F,[],L,L).
+findall(F,L,M1,N) :- not((=(L,[]))),head(L,H),tail(L,T),functor(A,F,2),arg(1,A,H),arg(2,A,M2),(A->((wrap(M2,M3),append(M1,M3,M4)));(=(M1,M4))),findall(F,T,M4,N).
+intersection1([],_A,L,L).
+intersection1(L1,L2,L3a,L3) :- head(L1,I1),tail(L1,L4),intersection2(I1,L2,[],L5),append(L3a,L5,L6),intersection1(L4,L2,L6,L3).
+intersection2(_A,[],L,L).
+intersection2(I1,L1,L2,L3) :- head(L1,I1),tail(L1,L4),wrap(I1,I11),append(L2,I11,L5),intersection2(I1,L4,L5,L3).
+intersection2(I1,L1,L2,L3) :- head(L1,I2),tail(L1,L4),not((=(I1,I2))),intersection2(I1,L4,L2,L3).
+append1(B,C,A) :- append(B,C,A).
+minus1(L,[],L).
+minus1(L1,L2,L3) :- head(L2,I1),tail(L2,L5),delete2(L1,I1,[],L6),minus1(L6,L5,L3).
+delete2([],_A,L,L).
+delete2(L1,I1,L2,L3) :- head(L1,I1),tail(L1,L5),delete2(L5,I1,L2,L3).
+delete2(L1,I1,L2,L3) :- head(L1,I2),tail(L1,L5),not((=(I1,I2))),wrap(I2,I21),append(L2,I21,L6),delete2(L5,I1,L6,L3).
+
+mutually_exclusive([],_L):-!.
+mutually_exclusive(L,M):-head(L,H),tail(L,T),membera3(M,H),mutually_exclusive(T,M),!.
+membera3([],_L):-!.
+membera3(L,M):-head(L,H),tail(L,T),not((=(M,H))),membera3(T,M),!.
+
+duplicates([],_L,S,S).
+duplicates(L,M,S1,S2):-head(L,H),tail(L,T),member(H,M),(deletea2(M,H,M1)->(true);(=(M,M1))),wrap(H,H1),append(S1,H1,S3),duplicates(T,M1,S3,S2),!.
+duplicates(L,M,S1,S2):-head(L,H),tail(L,T),not((membera4(M,H))),duplicates(T,M,S1,S2).
+deletea2([],_L,_M1):-fail.
+deletea2(L,M,T):-head(L,H),tail(L,T),=(M,H).
+deletea2(L,M,M1):-head(L,H),tail(L,T),not((=(M,H))),deletea2(T,M,M1).
+membera4([],_L):-fail.
+membera4(L,H):-head(L,H).
+membera4(L,M):-head(L,H),tail(L,T),not(M=H),membera4(T,M).
+
+substring([],[]).
+substring([],B):-not((=(B,[]))),fail.
+substring(A,B):-tail(A,At),(listhead(A,B)->(true);(substring(At,B))).
+listhead(_L,[]).
+listhead(A,B):-head(A,Ah),tail(A,At),head(B,Ah),tail(B,Bt),listhead(At,Bt).
+
+
+%%%%%%%%%%%%
+
+%%findbest(R,R) :-!.
+findbest2(R,Item):-
+ sort(R,RA),
+ reverse(RA,RB),
+ RB=[[_,Item]|_Rest].
+
+
+%%trialy2A([],R) :-
+%% R=[[_,'A']].
+%%trialy2A(List,R) :-
+%% random_member(A,List),
+%% R=[[_,A]].
+
+trialy2A([],R) :-
+ R=[].
+trialy2A(List,R) :-
+ random_member(R,List).
+ %%R=[[_,A]].
+
+%%trialy2A(List,R) :-
+%% notrace,trialy2B(List,R).%%,trace.
+trialy2B(List,R) :-
+ length(List,Length),
+ ((Length=<9->
+ findr4(R4),
+ number_string(R4,R4A),
+ formr5([R4A],9,Length,R5),
+ findr(R5,List,R));
+ (Length=<99->
+ findr4(R41),
+ findr4(R42),
+ formr5([R41,R42],99,Length,R5),
+ findr(R5,List,R));
+ (Length=<999->
+ findr4(R41),
+ findr4(R42),
+ findr4(R43),
+ formr5([R41,R42,R43],999,Length,R5),
+ findr(R5,List,R));
+ (Length=<9999->
+ findr4(R41),
+ findr4(R42),
+ findr4(R43),
+ findr4(R44),
+ formr5([R41,R42,R43,R44],9999,Length,R5),
+ findr(R5,List,R));
+ (Length=<99999->
+ findr4(R41),
+ findr4(R42),
+ findr4(R43),
+ findr4(R44),
+ findr4(R45),
+ formr5([R41,R42,R43,R44,R45],99999,Length,R5),
+ findr(R5,List,R));
+ fail),
+ %%write1([r,R]),trace.
+ true.
+
+findr4(R4) :-
+ List1=[0,1,2,3,4,5,6,7,8,9],
+ Trials is 30,
+ trialy22(List1,Trials,[],R1),
+ findbest2(R1,R4).
+ %%number_string(R3,R2),
+formr5(RList,Upper,Length,R5) :-
+ %%findall(D,(member(C,RList),floor(C,D)),RList2),
+ concat_list2A(RList,R5A),
+ number_string(R5B,R5A),
+ R51 is floor((R5B/Upper)*Length),
+ (R5B=Upper->R5 is R51-1;R5=R51).
+findr(R4,List,R) :-
+ %%floor(R4,R4A),
+ length(A,R4),
+ append(A,[R|_],List).
+
+ %%random_member(A,List),
+ %%R=[[_,A]].
+
+ /**
+ length(List,L),
+ Trials is L*3,
+ trialy22(List,Trials,[],R).**/
+
+trialy22([],_,R,R) :- !.
+trialy22(List,Trials,RA,RB) :-
+ List=[Item|Items],
+ trialy21(Item,Trials,R1),
+ append(RA,[R1],RC),
+ trialy22(Items,Trials,RC,RB),!.
+
+trialy21(Label,Trials,RA) :-
+ trialy3(Trials,[],R),
+ aggregate_all(count, member(true,R), Count),
+ RA=[Count,Label].
+
+trialy3(0,R,R) :-!.
+trialy3(Trials1,RA,RB) :-
+ trialy1(R1),
+ append(RA,[R1],RC),
+ Trials2 is Trials1-1,
+ trialy3(Trials2,RC,RB),!.
+
+%% try other nouns
+trialy1(R1) :-
+ %%control11(A1),
+ %%repeat,
+ trial0(A22), %% Control
+ sum(A22,0,S22),
+ mean(S22,A1),
+ %%repeat,
+ trial0(A21), %% Test 1
+ sum(A21,0,S02),
+ mean(S02,A2),
+ (A1>A2->R1=true;R1=fail).
+
+trial0(S3) :- N is 10, trial1(N,[],S),trial01(S,S3).
+trial01(S1,S3) :-
+ sort(S1,S),
+ %%midpoint(S,MP),
+ halves(S,H1,H2),
+ midpoint(H1,Q1),
+ midpoint(H2,Q3),
+ IQR is Q3-Q1,
+ sum(S,0,S02),
+ mean(S02,Mean),
+ furthestfrommean(S,Mean,V),
+ D1 is 1.5*IQR,
+ D2 is V-Mean,
+ (D2>D1->(delete(S,V,S2),trial01(S2,S3));S=S3).
+
+%%trial1(0,[],_A) :- fail,!.
+trial1(0,A,A) :- !.
+trial1(N,A,B) :- mindreadtest(S), append(A,[S],A2),
+ N1 is N-1,trial1(N1,A2,B).
+
+%%midpoint([],0) :- !.
+
+midpoint(S,MP) :-
+%% not(S=[]),
+ length(S,L),
+ A is mod(L,2),
+ (A is 0->
+ (M1 is L/2, M2 is M1+1,N1 is M1-1,N2 is M2-1,length(N11,N1),length(N21,N2),append(N11,[N12|_Rest1],S),append(N21,[N22|_Rest2],S),MP is (N12+N22)/2)
+ ;
+ (L2 is L+1, M1 is L2/2, N1 is M1-1,length(N11,N1),append(N11,[MP|_Rest],S))).
+
+halves(S,H1,H2) :-
+ length(S,L),
+ A is mod(L,2),
+ (A is 0->
+ (M1 is L/2,length(H1,M1),append(H1,H2,S))
+ ;
+ (L2 is L-1,M1 is L2/2,length(H1,M1),append(H1,[_|H2],S))).
+
+sum([],S,S):-!.
+sum(S0,S1,S2) :-
+ S0=[S3|S4],
+ S5 is S1+S3,
+ sum(S4,S5,S2).
+
+mean(Sum,Mean) :-
+ Mean is Sum/2.
+
+furthestfrommean(S,Mean,V) :-
+ absdiffmean(S,Mean,[],D),
+ sort(D,D1),
+ reverse(D1,[[_,V]|_Rest]).
+
+absdiffmean([],_M,D,D) :- !.
+absdiffmean(S,M,D1,D2) :-
+ S=[S1|S2],
+ S3 is abs(S1-M),
+ append(D1,[[S3,S1]],D3),
+ absdiffmean(S2,M,D3,D2).
+
+mindreadtest(Sec) :-
+ %% 250 br for characters to be br out with 10 br each from person to me - do when initial 250 br test done and doing 10 br test
+ %%comment(fiftyastest),
+ %%random(X),X1 is 10*X, X2 is floor(X1), (X2=<2 -> (
+ %%texttobr,write1(['true test']), %%); %% use breasonings breasoned out by computer for not by me, for job medicine for "me", at last time point
+ %%true), %% leave last time point blank
+ %%**texttobr2(640);true),%% make an A to detect reaction to gracious giving or blame of in following
+ get_time(TimeStamp1),
+ %%phrase_from_file(string(_String), 'file.txt'),
+ texttobr2(2), %% 100 As for answer (must be br before this on same day)
+ %% is gracious giving or blame
+ get_time(TimeStamp2),
+ %%comment(turnoffas),
+ Sec is TimeStamp2 - TimeStamp1.
+
+concat_list2A(A1,B):-
+ A1=[A|List],
+ concat_list2A(A,List,B),!.
+
+concat_list2A(A,[],A):-!.
+concat_list2A(A,List,B) :-
+ List=[Item|Items],
+ string_concat(A,Item,C),
+ concat_list2A(C,Items,B).
diff --git a/Algorithm-Writer-with-Lists/brdict3.txt b/Algorithm-Writer-with-Lists/brdict3.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3ecd4ab12dd924fbab747b912705e8e63311560a
--- /dev/null
+++ b/Algorithm-Writer-with-Lists/brdict3.txt
@@ -0,0 +1 @@
+[["a","a"],["person","subject"],["pear","pear"],["banana","banana"],["apple","apple"],["right","check"],["city","origin"],["paper","command"],["up","check"],["and","interpreter"],["box","minimise"],["twobox","compiler"],["variable","satisfy"],["software","generator"],["leash","all"],["square","end"],["xcorrection","xcorrection"],["one","true"],["dash","twodimensional"],["tick","secure"],["book","business"],["plus","useful"],["equals","compute"],["ball","sphere"],["ship","ship"],["down","current"],["zero","empty"],["brain","calculate"],["log","log"],["n","value"],["testtube","test"],["building","building"],["minus","false"],["dollarsymbol","money"],["happy","happy"],["lowera","word"],["filename","filename"],["gl","gl"],["txt","txt"],["notrace","notrace"],["mtrue","mtrue"],["m","m"],["grammar","grammar"],["logic","logic"],["to","to"],["alg","alg"],["sentences","sentences"],["medicine","medicine"],["by","by"],["lucian","lucian"],["note","music"],["pencilsharpener","object"],["hand","hand"]]
\ No newline at end of file
diff --git a/Algorithm-Writer-with-Lists/combophil.pl b/Algorithm-Writer-with-Lists/combophil.pl
new file mode 100644
index 0000000000000000000000000000000000000000..df24d9ccca90afe131ead4d4e955eb5d05a727f7
--- /dev/null
+++ b/Algorithm-Writer-with-Lists/combophil.pl
@@ -0,0 +1,33 @@
+%% combophil.pl
+
+%% Finds combinations of lines of philosophy
+
+%% *** Deprecated by Repository Lucian-Academy/combophil_alg_log.pl
+
+:-include('../listprologinterpreter/la_strings').
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+%% e.g. combophil(2). to write on a combination of philosophies
+
+combophil(NumberOfPhils) :-
+ phrase_from_file_s(string(Phil1), "../Text-to-Breasonings/file.txt"),
+ SepandPad="\n\r",
+ split_string(Phil1,SepandPad,SepandPad,Phil2),
+ delete(Phil2,"",Phil3),
+ sort(Phil3,Phil4),
+ length(Phil4,LengthPhil4),write("Number of philosophies in file.txt: "),
+ writeln(LengthPhil4),
+ length(PhilsLengthList,NumberOfPhils),
+ repeat,
+ findall(Phils1,(member(_,PhilsLengthList),random_member(Phils1,Phil4)),Phils2),
+ reverse(Phils2,Phils3),Phils3=[Phil6|Phils4],reverse(Phils4,Phils5),
+ findall(_,(member(Phil5,Phils5),writeln1(Phil5),nl,writeln1("because"),nl),_),
+ writeln1(Phil6),nl,
+ write("1-Continue or 2-End: "),
+ read_string(user_input, "\n", "\r", _End, Input),
+ (Input="2"->abort;fail).
+
diff --git a/Algorithm-Writer-with-Lists/combophil2qadb.pl b/Algorithm-Writer-with-Lists/combophil2qadb.pl
new file mode 100644
index 0000000000000000000000000000000000000000..0cabf111299db7b753a54b1be650679d2b7b8a9f
--- /dev/null
+++ b/Algorithm-Writer-with-Lists/combophil2qadb.pl
@@ -0,0 +1,165 @@
+%% combophil.pl x combophil2qadb.pl
+
+% don;t change to mrtree because mr is working. Without seeing and thinking about options, it is meaningless.
+
+%% Finds combinations of lines of philosophy
+
+%% *** Deprecated by Repository Lucian-Academy/combophil_alg_log.pl
+
+:-include('../listprologinterpreter/la_strings').
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+%% e.g. combophil(2). to write on a combination of philosophies
+
+combophil2qadb :- %(NumberOfPhils) :-
+
+% get box, right, box words from brdict1
+phrase_from_file_s(string(BrDict0), "../Text-to-Breasonings/brdict1.txt"),
+%phrase_from_file_s(string(BrDict0), "../../brdict1.txt"),
+%string_codes(String02b,BrDict0),
+%atom_to_term(String02b,String02a,[]),
+splitfurther(BrDict0,BrDict01),
+sort(BrDict01,String02a),
+findall(A2,(member(A,String02a),A=[A2,"box"]),A1),
+findall(B2,(member(B,String02a),B=[B2,"right"]),B1),
+
+
+ phrase_from_file_s(string(Phil1), "../Text-to-Breasonings/file.txt"),
+ SepandPad="\n\r.",
+ split_string(Phil1,SepandPad,SepandPad,Phil2),
+ delete(Phil2,"",Phil3),
+ sort(Phil3,Phil4),
+ length(Phil4,LengthPhil4),write("Number of philosophies in file.txt: "),
+ writeln(LengthPhil4),
+ %length(PhilsLengthList,NumberOfPhils),
+
+ findall([C,Algorithm],(member(C,Phil4),
+ qa_db_finder(A1,B1,Algorithm)),D),
+
+ term_to_atom(D,K),
+ (open_s("file-o.txt",write,Stream1),
+ write(Stream1,K),
+ close(Stream1)),!.
+ /**
+ repeat,
+ findall(Phils1,(member(_,PhilsLengthList),random_member(Phils1,Phil4)),Phils2),
+ reverse(Phils2,Phils3),Phils3=[Phil6|Phils4],reverse(Phils4,Phils5),
+ findall(_,(member(Phil5,Phils5),writeln1(Phil5),nl,writeln1("because"),nl),_),
+ writeln1(Phil6),nl,
+ write("1-Continue or 2-End: "),
+ read_string(user_input, "\n", "\r", _End, Input),
+ (Input="2"->abort;fail).
+**/
+
+
+splitfurther(BrDict01,N) :-
+ phrase(file0(N),BrDict01).
+
+ file0(N) --> "[", file(N), "]", !.
+ file0([]) --> [].
+
+ file([L|Ls]) --> entry(L),",",
+ %%{writeln(L)}, %%***
+ file(Ls), !.
+ file([L]) --> entry(L),
+ %%{writeln(L)},
+ !.
+
+ entry([Word2,Word4]) -->
+ "[", word(Word), {string_codes(Word2,Word),string(Word2)},
+",",
+ word(Word3), {string_codes(Word4,Word3),string(Word4)},
+ "]".
+
+ word([X|Xs]) --> [X], {char_type(X,csymf)->true;(X=27->true;X=8217)}, word(Xs), !.
+ %%word([X]) --> [X], {char_type(X,csymf);(X=27;X=8217)}, !.
+ word([]) --> [].
+
+qa_db_finder(A1,B1,Algorithm) :-
+% name of algorithm
+ random_member(Verb,B1),
+
+ %writeln("What is the input variable?"),
+ random_member(I1,A1),
+ upper_first_letter(I1,I),
+ %read_string(user_input, "\n", "\r", _End, I),
+
+ %writeln("What variable is this last variable linked to?"),
+ random_member(N1,A1),
+ upper_first_letter(N1,N),
+ %read_string(user_input, "\n", "\r", _End2, N),
+
+ concat_list(["member(A1,",I,N,"),A1=[",I,",",N,"],"],Algorithm1),
+ Vars1=[I,N],
+
+ repeat1(A1,2,N,Algorithm1,Algorithm2,Vars1,Vars2),
+
+ string_concat(Algorithm3,",",Algorithm2),
+
+ %writeln("What is the final output variable?"),
+ random_member(O1,A1),
+ upper_first_letter(O1,O2),
+ append(Vars2,[O2],O3),
+ random_member(O,O3),
+ %read_string(user_input, "\n", "\r", _End3, O),
+ %%trace,
+
+ find_header_args1(Vars2,"",HA1),
+ %%string_concat(HA2,",",HA1),
+
+ concat_list(["a(",HA1,I,",",O,"):-"],Algorithm4),
+ concat_list([Algorithm4,Algorithm3,"."],Algorithm).
+
+upper_first_letter(A,B) :-
+ string_concat(C,F,A),
+ string_length(C,1),
+ to_upper(C,D),
+ string_codes(E,[D]),
+ string_concat(E,F,B),!.
+
+repeat1(A1,M1,N,Algorithm1,Algorithm2,Vars1,Vars2) :-
+ %writeln("Is this the final variable? (y/n)"),
+ random_member(Q,["y","n"]),
+ %read_string(user_input, "\n", "\r", _End, Q),
+
+ (Q="y"->(Algorithm2=Algorithm1,Vars2=Vars1);
+ %writeln("What variable is this last variable linked to?"),
+ %(random(X_A),X_B is ceiling(2*X_A),
+ %(X_B=1->
+ random_member(V1,A1),
+ upper_first_letter(V1,V2),
+ append(Vars1,[V2],V3),
+ random_member(V,V3),
+ %read_string(user_input, "\n", "\r", _End2, V),
+
+ concat_list(["member(A",M1,",",N,V,"),A",M1,"=[",N,",",V,"],"],Algorithm1a),
+ append(Vars1,[V],Vars3),
+ M2 is M1+1,
+ string_concat(Algorithm1,Algorithm1a,Algorithm1b),
+ repeat1(A1,M2,V,Algorithm1b,Algorithm2,Vars3,Vars2)
+
+ ).
+
+
+find_header_args1([_],HA,HA) :- !.
+find_header_args1(Vars,HA1,HA2) :-
+ Vars=[_|F],
+ Vars=[A,B|_],
+ concat_list([A,B,","],D),
+ string_concat(HA1,D,E),
+ find_header_args1(F,E,HA2).
+
+
+concat_list(A1,B):-
+ A1=[A|List],
+ concat_list(A,List,B),!.
+
+concat_list(A,[],A):-!.
+concat_list(A,List,B) :-
+ List=[Item|Items],
+ string_concat(A,Item,C),
+ concat_list(C,Items,B).
diff --git a/Algorithm-Writer-with-Lists/combophil_grammar_logic_to_alg.pl b/Algorithm-Writer-with-Lists/combophil_grammar_logic_to_alg.pl
new file mode 100644
index 0000000000000000000000000000000000000000..e501b7e5869a0677daf729e370ab5e57883c9cf3
--- /dev/null
+++ b/Algorithm-Writer-with-Lists/combophil_grammar_logic_to_alg.pl
@@ -0,0 +1,208 @@
+/**
+
+grammar_logic_to_alg.pl
+
+
+e.g. I liked God with you
+[liked,God],[God,you] with extra data
+- connect liked to you with member, return words on path
+
+POS
+
+goes backwards x forwards
+- I v n by v n x ignore
+
+n,v
+- single type
+
+adjective
+- ignored x (ignore names in alg)
+- like v,n
+
+joining words - ignore, just pairs v, n
+- on
+- joins v to n
+- separates vns
+
+negative terms
+- switch to positive or ignore
+
+disappearing words
+- my
+- no list of these, because they are ignored
+
+vv is v1, v2 x v1
+nn is n1
+
+*
+
+later: can randomly generate details like given sentence
+
+**/
+
+:-include('../Text-to-Breasonings/text_to_breasonings.pl').
+
+:- dynamic brdict/1.
+
+combophil_grammar_logic_to_alg1 :-
+ phrase_from_file_s(string(Text1), "../Text-to-Breasonings/file.txt"),
+
+ phrase_from_file_s(string(BrDict0), "../Text-to-Breasonings/brdict1.txt"),
+ splitfurther(BrDict0,BrDict01),
+ sort(BrDict01,BrDict012),
+ retractall(brdict(_)),
+ assertz(brdict(BrDict012)),
+
+ %%SepandPad=".\n",
+ %%split_string(Text1,SepandPad,SepandPad,Text2a),
+ %%delete(Text2a,"",Text2),
+
+
+ %%findall(B2,(member(B1,Text2),
+ string_codes(Text11,Text1),
+ downcase_atom(%%B1
+ Text11,B11),atom_string(B11,B12),
+ SepandPad1=" .\n",
+ split_string(B12,SepandPad1,SepandPad1,A),
+ %%trace,
+ findall(D,(member(C3,A),
+ member([C3,"right"],BrDict012),member(C1,A),
+ not(member([C1,"right"],BrDict012)),
+ concat_list([C3," ",C1],C2),grammar_logic_to_alg(C2,D)),C),
+ %%writeln(C),trace,
+
+ %%grammar_logic_to_alg(D,B2)),C),
+ length(C,CLength),
+ writeln([CLength,sentences]),
+
+ C=[[[_,Sentence1,a_alg(List_a),_,bb_alg(List_bb)]|Cs1]|Cs2],
+ %%get_time(TS),stamp_date_time(TS,date(Year,Month,Day,Hour1,Minute1,Seconda,_A,_TZ,_False),local),
+ concat_list(["gla_del"],%%[Year,Month,Day,Hour1,Minute1,Seconda],
+ File1),
+ concat_list(["\"",File1,".txt\""],File2),
+
+ term_to_atom(List_a,List_a2),
+ string_atom(List_a3,List_a2),
+
+ concat_list(["swipl -G100g -T20g -L2g\n['../listprolog'].\nleash(-all),visible(+all),protocol(",File2,"),trace,interpret(off,[[n,function],[",List_a3,"]],[[[n,function],[[v,a]],\":-\",[[[n,length],[[v,a],0,1]]]],[[n,function],[[v,a]],\":-\",[[[n,head],[[v,a],[v,d]]],[[n,equals1],[[v,d],[[v,e],[v,f]]]],[[n,reverse],[[v,a],[],[v,a1]]],[[n,head],[[v,a1],[v,d1]]],[[n,equals1],[[v,d1],[[v,e1],[v,f1]]]],[[n,function2],[[v,a],[v,f],[v,f1]]]]],[[n,reverse],[[],[v,l],[v,l]]],[[n,reverse],[[v,l],[v,m],[v,n]],\":-\",[[[n,head],[[v,l],[v,h]]],[[n,tail],[[v,l],[v,t]]],[[n,wrap],[[v,h],[v,h1]]],[[n,append],[[v,h1],[v,m],[v,o]]],[[n,reverse],[[v,t],[v,o],[v,n]]]]],[[n,function2],[[v,a],[v,b],[v,f]],\":-\",[[[n,member2],[[v,a],[v,d]]],[[n,equals1],[[v,d],[[v,b],[v,f]]]]]],[[n,function2],[[v,a],[v,b],[v,c]],\":-\",[[[n,member2],[[v,a],[v,d]]],[[n,equals1],[[v,d],[[v,b],[v,f]]]],[[n,function2],[[v,d],[v,f],[v,c]]]]],[[n,length],[[],[v,l],[v,l]]],[[n,length],[[v,l],[v,m1],[v,n]],\":-\",[[[n,not],[[[n,=],[[v,l],[]]]]],[[n,tail],[[v,l],[v,t]]],[[n,+],[[v,m1],1,[v,m2]]],[[n,length],[[v,t],[v,m2],[v,n]]]]]],[[]]),notrace,noprotocol.\nhalt.\nswipl -G100g -T20g -L2g\n['../Text-to-Breasonings/text_to_breasonings.pl'].\ntime((N is 3,\nM is 16000,\ntexttobr2(N,",File2,",u,M),texttobr(N,",File2,",u,M))).\n['../texttobr2qb'].\ntexttobr2(3).\nhalt."],List_a1),
+ writeln1([*,Sentence1,a_alg(List_a)]),
+ writeln(List_a1),
+
+ concat_list(["\n\nswipl -G100g -T20g -L2g\n['../listprolog'].\nleash(-all),visible(+all),protocol(",File2,"),trace,interpret(off,[[n,function],[",List_a3,",[v,b]]],[[[n,function],[[v,a],[v,b]],\":-\",[[[n,tail],[[v,a],[v,b]]]]]],_),notrace,noprotocol.\nhalt.\nswipl -G100g -T20g -L2g\n['../Text-to-Breasonings/text_to_breasonings.pl'].\ntime((N is 3,\nM is 16000,\ntexttobr2(N,",File2,",u,M),texttobr(N,",File2,",u,M))).\n['../texttobr2qb'].\ntexttobr2(3).\nhalt."],List_b1),
+ writeln1([*,Sentence1,b_alg(List_a)]),
+ writeln(List_b1),
+
+ term_to_atom(List_bb,List_bb2),
+ string_atom(List_bb3,List_bb2),
+
+ concat_list(["swipl -G100g -T20g -L2g\n['../listprolog'].\nleash(-all),visible(+all),protocol(",File2,"),trace,interpret(off,[[n,function],[",List_bb3,"]],[[[n,function],[[v,a]],\":-\",[[[n,length],[[v,a],0,1]]]],[[n,function],[[v,a]],\":-\",[[[n,head],[[v,a],[v,d]]],[[n,equals1],[[v,d],[[v,e],[v,f]]]],[[n,reverse],[[v,a],[],[v,a1]]],[[n,head],[[v,a1],[v,d1]]],[[n,equals1],[[v,d1],[[v,e1],[v,f1]]]],[[n,function2],[[v,a],[v,f],[v,f1]]]]],[[n,reverse],[[],[v,l],[v,l]]],[[n,reverse],[[v,l],[v,m],[v,n]],\":-\",[[[n,head],[[v,l],[v,h]]],[[n,tail],[[v,l],[v,t]]],[[n,wrap],[[v,h],[v,h1]]],[[n,append],[[v,h1],[v,m],[v,o]]],[[n,reverse],[[v,t],[v,o],[v,n]]]]],[[n,function2],[[v,a],[v,b],[v,f]],\":-\",[[[n,member2],[[v,a],[v,d]]],[[n,equals1],[[v,d],[[v,b],[v,f]]]]]],[[n,function2],[[v,a],[v,b],[v,c]],\":-\",[[[n,member2],[[v,a],[v,d]]],[[n,equals1],[[v,d],[[v,b],[v,f]]]],[[n,function2],[[v,d],[v,f],[v,c]]]]],[[n,length],[[],[v,l],[v,l]]],[[n,length],[[v,l],[v,m1],[v,n]],\":-\",[[[n,not],[[[n,=],[[v,l],[]]]]],[[n,tail],[[v,l],[v,t]]],[[n,+],[[v,m1],1,[v,m2]]],[[n,length],[[v,t],[v,m2],[v,n]]]]]],[[]]),notrace,noprotocol.\nhalt.\nswipl -G100g -T20g -L2g\n['../Text-to-Breasonings/text_to_breasonings.pl'].\ntime((N is 3,\nM is 16000,\ntexttobr2(N,",File2,",u,M),texttobr(N,",File2,",u,M))).\n['../texttobr2qb'].\ntexttobr2(3).\nhalt."],List_bb1),
+ writeln1([*,Sentence1,bb_alg(List_bb)]),
+ writeln(List_bb1),
+
+ writeln1(Cs1),
+ writeln1(Cs2).
+
+grammar_logic_to_alg(Sentence1,B) :- %% Not by multi-sentence algorithms, just by sentence
+ atom_string(Sentence0,Sentence1),
+ downcase_atom(Sentence0,Sentence01),
+ atom_string(Sentence01,Sentence02),
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ Connectors=
+ ["the","a","i","on","with","of","an","for","to",
+ "was","were","and","in","my","from","out","by"],
+ split_string(Sentence02,SepandPad,SepandPad,Sentence2),
+ subtract(Sentence2,Connectors,Sentence3),
+ %%length(Sentence3,Length),
+
+ %% () add generated data
+ %%write_commands(Length,[],Commands), %% sentence alg
+
+ generate_sentences(Sentence3,[],Sentence_a,30), %% detail sentences
+ append(Sentence3,Sentence_a,Sentence4),
+ findall([*,Sentence1,a_alg(Sentence5),b_alg(Sentence5,a),bb_alg(Sentence6)],(member(Sentence4a,Sentence4),make_lists(Sentence4a,[],Sentence5),Sentence5=[_|Sentence6]),B),!.
+ %% detail algs
+
+generate_sentences(_Sentence3,Sentence_a,Sentence_a,0) :- !.
+generate_sentences(Sentence3,Sentence_a1,Sentence_a2,N1) :-
+ random_member(Item,Sentence3),
+ generate_sentence(Item,Sentence_a3),
+ append(Sentence_a1,[Sentence_a3],Sentence_a4),
+ N2 is N1-1,
+ generate_sentences(Sentence3,Sentence_a4,Sentence_a2,N2).
+
+%%write_commands(0,Commands,Commands) :- !.
+%%write_commands(Length1,Commands1,Commands2) :-
+%% Length2 is Length1-1.
+%% append(Commands1,[[[n,member2],[[v,Length1],[v,Length2]]]).
+ %%[[n,equals1],[[v,Length2],[[v,a***],[v,b]]]]].
+
+%%[a,b]
+%%[c,d]
+
+generate_sentence(Item,Sentence) :-
+ random_member(Grammar1,[[n,v,n],[n,v,a,n],[v,n],[v,a,n]]),
+ brdict(BrDict012),
+ find_pos(Item,POS,BrDict012),
+ substitute1(Item,POS,Grammar1,[],Grammar2),
+ substitute2(Grammar2,BrDict012,[],Sentence).
+
+find_pos(Item,POS2,BrDict012) :-
+ member([Item,POS1],BrDict012),
+ POS1="right",
+ POS2=v,!.
+find_pos(Item,POS2,BrDict012) :-
+ member([Item,POS1],BrDict012),
+ POS1="plus",
+ POS2=a,!.
+find_pos(_Item,POS2,_BrDict012) :-
+ POS2=n.
+
+substitute1(_Item,_POS,[],Grammar,Grammar) :- !.
+substitute1(Item,POS,Grammar1,Grammar2,Grammar3) :-
+ Grammar1=[Grammar4|Grammar5],
+ Grammar4=POS,
+ append_list([Grammar2,Item],Grammar6),
+ append(Grammar6,Grammar5,Grammar3),!.
+substitute1(Item,POS,Grammar1,Grammar2,Grammar3) :-
+ Grammar1=[Grammar4|Grammar5],
+ not(Grammar4=POS),
+ append_list([Grammar2,Grammar4],Grammar6),
+ substitute1(Item,POS,Grammar5,Grammar6,Grammar3),!.
+
+substitute2([],_BrDict012,Sentence,Sentence) :- !.
+substitute2(Grammar1,BrDict012,Sentence1,Sentence2) :-
+ Grammar1=[Grammar2|Grammar3],
+ Grammar2=n,
+ findall(A,(member([A,"box"],BrDict012)),B),
+ random_member(Word,B),
+ append(Sentence1,[Word],Sentence3),
+ substitute2(Grammar3,BrDict012,Sentence3,Sentence2).
+substitute2(Grammar1,BrDict012,Sentence1,Sentence2) :-
+ Grammar1=[Grammar2|Grammar3],
+ Grammar2=v,
+ findall(A,(member([A,"right"],BrDict012)),B),
+ random_member(Word,B),
+ append(Sentence1,[Word],Sentence3),
+ substitute2(Grammar3,BrDict012,Sentence3,Sentence2).
+substitute2(Grammar1,BrDict012,Sentence1,Sentence2) :-
+ Grammar1=[Grammar2|Grammar3],
+ Grammar2=a,
+ findall(A,(member([A,"plus"],BrDict012)),B),
+ random_member(Word,B),
+ append(Sentence1,[Word],Sentence3),
+ substitute2(Grammar3,BrDict012,Sentence3,Sentence2).
+substitute2(Grammar1,BrDict012,Sentence1,Sentence2) :-
+ Grammar1=[Grammar2|Grammar3],
+ append(Sentence1,[Grammar2],Sentence3),
+ substitute2(Grammar3,BrDict012,Sentence3,Sentence2).
+
+make_lists(Sentence1,Sentence,Sentence) :-
+ Sentence1=[_Sentence2],
+ !.
+make_lists(Sentence1,Sentence2,Sentence3) :-
+ Sentence1=[Sentence4|Sentence5],
+ Sentence5=[Sentence6|_Sentence7],
+ append(Sentence2,[[Sentence4,Sentence6]],Sentence8),
+ make_lists(Sentence5,Sentence8,Sentence3).
+
+
\ No newline at end of file
diff --git a/Algorithm-Writer-with-Lists/combophil_grammar_logic_to_alg_vps.pl b/Algorithm-Writer-with-Lists/combophil_grammar_logic_to_alg_vps.pl
new file mode 100644
index 0000000000000000000000000000000000000000..bc4647dd4c6a542449aef565450387cccd001c32
--- /dev/null
+++ b/Algorithm-Writer-with-Lists/combophil_grammar_logic_to_alg_vps.pl
@@ -0,0 +1,241 @@
+/**
+
+grammar_logic_to_alg.pl
+
+
+e.g. I liked God with you
+[liked,God],[God,you] with extra data
+- connect liked to you with member, return words on path
+
+POS
+
+goes backwards x forwards
+- I v n by v n x ignore
+
+n,v
+- single type
+
+adjective
+- ignored x (ignore names in alg)
+- like v,n
+
+joining words - ignore, just pairs v, n
+- on
+- joins v to n
+- separates vns
+
+negative terms
+- switch to positive or ignore
+
+disappearing words
+- my
+- no list of these, because they are ignored
+
+vv is v1, v2 x v1
+nn is n1
+
+*
+
+later: can randomly generate details like given sentence
+
+**/
+
+:-include('../Text-to-Breasonings/text_to_breasonings.pl').
+
+:- dynamic brdict/1.
+
+truncate(List1,M,String0) :-
+ ((number(M),length(String0,M),
+ append(String0,_,List1))->true;
+ String0=List1),!.
+
+combophil_grammar_logic_to_alg1(P,String000) :-%%(String000) :-
+ phrase_from_file_s(string(Text1), "../Lucian-Academy/luciansphilosophy.txt"),
+ combophil_grammar_logic_to_alg2(String000,Text1).
+
+combophil_grammar_logic_to_alg1(File) :-%%(String000) :-
+ phrase_from_file_s(string(Text1), "../Text-to-Breasonings/file.txt"),
+ string_codes(Text11,Text1),
+ downcase_atom(%%B1
+ Text11,B11),atom_string(B11,B12),
+ SepandPad1=".\n",
+ split_string(B12,SepandPad1,SepandPad1,A0),
+ findall(_,(member(A00,A0),
+ combophil_grammar_logic_to_alg2(String000,A00),
+ %%String000="a b c",
+ time((N = u, M = u,texttobr2(N,u,String000,M),texttobr(N,u,String000,M))),
+%% Give the meditators, etc. the As.
+ texttobr2(3)),_).
+
+combophil_grammar_logic_to_alg2(String000,Text1) :-
+ phrase_from_file_s(string(BrDict0), "../Text-to-Breasonings/brdict1.txt"),
+ splitfurther(BrDict0,BrDict01),
+ sort(BrDict01,BrDict012),
+ retractall(brdict(_)),
+ assertz(brdict(BrDict012)),
+
+ %%SepandPad=".\n",
+ %%split_string(Text1,SepandPad,SepandPad,Text2a),
+ %%delete(Text2a,"",Text2),
+
+
+ %%findall(B2,(member(B1,Text2),
+ string_codes(Text11,Text1),
+ downcase_atom(%%B1
+ Text11,B11),atom_string(B11,B12),
+ SepandPad1=" .\n",
+ split_string(B12,SepandPad1,SepandPad1,A01),
+ append(["go"],A01,A0),
+ truncate(A0,20,A),
+
+ findall(D,(member(C3,A),
+ member([C3,"right"],BrDict012),member(C1,A),
+ not(member([C1,"right"],BrDict012)),
+ concat_list([C3," ",C1],C2),grammar_logic_to_alg(C2,D)),C),
+ %%writeln(C),trace,
+
+ %%grammar_logic_to_alg(D,B2)),C),
+ length(C,CLength),
+ writeln([CLength,sentences]),
+
+ C=[[[_,Sentence1,a_alg(List_a),_,bb_alg(List_bb)]|Cs1]|Cs2],
+ %%get_time(TS),stamp_date_time(TS,date(Year,Month,Day,Hour1,Minute1,Seconda,_A,_TZ,_False),local),
+ concat_list(["gla_del"],%%[Year,Month,Day,Hour1,Minute1,Seconda],
+ File1),
+ concat_list(["\"",File1,".txt\""],File2),
+
+ term_to_atom(List_a,List_a2),
+ string_atom(List_a3,List_a2),
+
+ concat_list(["swipl -G100g -T20g -L2g\n['../listprolog'].\nleash(-all),visible(+all),protocol(",File2,"),trace,interpret(off,[[n,function],[",List_a3,"]],[[[n,function],[[v,a]],\":-\",[[[n,length],[[v,a],0,1]]]],[[n,function],[[v,a]],\":-\",[[[n,head],[[v,a],[v,d]]],[[n,equals1],[[v,d],[[v,e],[v,f]]]],[[n,reverse],[[v,a],[],[v,a1]]],[[n,head],[[v,a1],[v,d1]]],[[n,equals1],[[v,d1],[[v,e1],[v,f1]]]],[[n,function2],[[v,a],[v,f],[v,f1]]]]],[[n,reverse],[[],[v,l],[v,l]]],[[n,reverse],[[v,l],[v,m],[v,n]],\":-\",[[[n,head],[[v,l],[v,h]]],[[n,tail],[[v,l],[v,t]]],[[n,wrap],[[v,h],[v,h1]]],[[n,append],[[v,h1],[v,m],[v,o]]],[[n,reverse],[[v,t],[v,o],[v,n]]]]],[[n,function2],[[v,a],[v,b],[v,f]],\":-\",[[[n,member2],[[v,a],[v,d]]],[[n,equals1],[[v,d],[[v,b],[v,f]]]]]],[[n,function2],[[v,a],[v,b],[v,c]],\":-\",[[[n,member2],[[v,a],[v,d]]],[[n,equals1],[[v,d],[[v,b],[v,f]]]],[[n,function2],[[v,d],[v,f],[v,c]]]]],[[n,length],[[],[v,l],[v,l]]],[[n,length],[[v,l],[v,m1],[v,n]],\":-\",[[[n,not],[[[n,=],[[v,l],[]]]]],[[n,tail],[[v,l],[v,t]]],[[n,+],[[v,m1],1,[v,m2]]],[[n,length],[[v,t],[v,m2],[v,n]]]]]],[[]]),notrace,noprotocol.\nhalt.\nswipl -G100g -T20g -L2g\n['../Text-to-Breasonings/text_to_breasonings.pl'].\ntime((N is 3,\nM is 16000,\ntexttobr2(N,",File2,",u,M),texttobr(N,",File2,",u,M))).\n['../texttobr2qb'].\ntexttobr2(3).\nhalt."],List_a1),
+ writeln1([*,Sentence1,a_alg(List_a)]),
+ writeln(List_a1),
+
+ concat_list(["\n\nswipl -G100g -T20g -L2g\n['../listprolog'].\nleash(-all),visible(+all),protocol(",File2,"),trace,interpret(off,[[n,function],[",List_a3,",[v,b]]],[[[n,function],[[v,a],[v,b]],\":-\",[[[n,tail],[[v,a],[v,b]]]]]],_),notrace,noprotocol.\nhalt.\nswipl -G100g -T20g -L2g\n['../Text-to-Breasonings/text_to_breasonings.pl'].\ntime((N is 3,\nM is 16000,\ntexttobr2(N,",File2,",u,M),texttobr(N,",File2,",u,M))).\n['../texttobr2qb'].\ntexttobr2(3).\nhalt."],List_b1),
+ writeln1([*,Sentence1,b_alg(List_a)]),
+ writeln(List_b1),
+
+ term_to_atom(List_bb,List_bb2),
+ string_atom(List_bb3,List_bb2),
+
+ concat_list(["swipl -G100g -T20g -L2g\n['../listprolog'].\nleash(-all),visible(+all),protocol(",File2,"),trace,interpret(off,[[n,function],[",List_bb3,"]],[[[n,function],[[v,a]],\":-\",[[[n,length],[[v,a],0,1]]]],[[n,function],[[v,a]],\":-\",[[[n,head],[[v,a],[v,d]]],[[n,equals1],[[v,d],[[v,e],[v,f]]]],[[n,reverse],[[v,a],[],[v,a1]]],[[n,head],[[v,a1],[v,d1]]],[[n,equals1],[[v,d1],[[v,e1],[v,f1]]]],[[n,function2],[[v,a],[v,f],[v,f1]]]]],[[n,reverse],[[],[v,l],[v,l]]],[[n,reverse],[[v,l],[v,m],[v,n]],\":-\",[[[n,head],[[v,l],[v,h]]],[[n,tail],[[v,l],[v,t]]],[[n,wrap],[[v,h],[v,h1]]],[[n,append],[[v,h1],[v,m],[v,o]]],[[n,reverse],[[v,t],[v,o],[v,n]]]]],[[n,function2],[[v,a],[v,b],[v,f]],\":-\",[[[n,member2],[[v,a],[v,d]]],[[n,equals1],[[v,d],[[v,b],[v,f]]]]]],[[n,function2],[[v,a],[v,b],[v,c]],\":-\",[[[n,member2],[[v,a],[v,d]]],[[n,equals1],[[v,d],[[v,b],[v,f]]]],[[n,function2],[[v,d],[v,f],[v,c]]]]],[[n,length],[[],[v,l],[v,l]]],[[n,length],[[v,l],[v,m1],[v,n]],\":-\",[[[n,not],[[[n,=],[[v,l],[]]]]],[[n,tail],[[v,l],[v,t]]],[[n,+],[[v,m1],1,[v,m2]]],[[n,length],[[v,t],[v,m2],[v,n]]]]]],[[]]),notrace,noprotocol.\nhalt.\nswipl -G100g -T20g -L2g\n['../Text-to-Breasonings/text_to_breasonings.pl'].\ntime((N is 3,\nM is 16000,\ntexttobr2(N,",File2,",u,M),texttobr(N,",File2,",u,M))).\n['../texttobr2qb'].\ntexttobr2(3).\nhalt."],List_bb1),
+ writeln1([*,Sentence1,bb_alg(List_bb)]),
+ writeln(List_bb1),
+
+ writeln1(Cs1),
+ writeln1(Cs2),
+
+ term_to_atom([[CLength,sentences],[*,Sentence1,a_alg(List_a)],List_a1,[*,Sentence1,b_alg(List_a)],List_b1,[*,Sentence1,bb_alg(List_bb)],List_bb1,Cs1,Cs2],String0001),
+atom_string(String0001,String000)
+
+ %%a(P,String000):-
+
+
+ %%CLength=a,Sentence1=a,List_a=a,List_a1=a,List_b1=a,List_bb=a,List_bb1=a,Cs1=a,Cs2=a,
+
+.
+
+grammar_logic_to_alg(Sentence1,B) :- %% Not by multi-sentence algorithms, just by sentence
+ atom_string(Sentence0,Sentence1),
+ downcase_atom(Sentence0,Sentence01),
+ atom_string(Sentence01,Sentence02),
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ Connectors=
+ ["the","a","i","on","with","of","an","for","to",
+ "was","were","and","in","my","from","out","by"],
+ split_string(Sentence02,SepandPad,SepandPad,Sentence2),
+ subtract(Sentence2,Connectors,Sentence3),
+ %%length(Sentence3,Length),
+
+ %% () add generated data
+ %%write_commands(Length,[],Commands), %% sentence alg
+
+ generate_sentences(Sentence3,[],Sentence_a,30), %% detail sentences
+ append(Sentence3,Sentence_a,Sentence4),
+ findall([*,Sentence1,a_alg(Sentence5),b_alg(Sentence5,a),bb_alg(Sentence6)],(member(Sentence4a,Sentence4),make_lists(Sentence4a,[],Sentence5),Sentence5=[_|Sentence6]),B),!.
+ %% detail algs
+
+generate_sentences(_Sentence3,Sentence_a,Sentence_a,0) :- !.
+generate_sentences(Sentence3,Sentence_a1,Sentence_a2,N1) :-
+ random_member(Item,Sentence3),
+ generate_sentence(Item,Sentence_a3),
+ append(Sentence_a1,[Sentence_a3],Sentence_a4),
+ N2 is N1-1,
+ generate_sentences(Sentence3,Sentence_a4,Sentence_a2,N2).
+
+%%write_commands(0,Commands,Commands) :- !.
+%%write_commands(Length1,Commands1,Commands2) :-
+%% Length2 is Length1-1.
+%% append(Commands1,[[[n,member2],[[v,Length1],[v,Length2]]]).
+ %%[[n,equals1],[[v,Length2],[[v,a***],[v,b]]]]].
+
+%%[a,b]
+%%[c,d]
+
+generate_sentence(Item,Sentence) :-
+ random_member(Grammar1,[[n,v,n],[n,v,a,n],[v,n],[v,a,n]]),
+ brdict(BrDict012),
+ find_pos(Item,POS,BrDict012),
+ substitute1(Item,POS,Grammar1,[],Grammar2),
+ substitute2(Grammar2,BrDict012,[],Sentence).
+
+find_pos(Item,POS2,BrDict012) :-
+ member([Item,POS1],BrDict012),
+ POS1="right",
+ POS2=v,!.
+find_pos(Item,POS2,BrDict012) :-
+ member([Item,POS1],BrDict012),
+ POS1="plus",
+ POS2=a,!.
+find_pos(_Item,POS2,_BrDict012) :-
+ POS2=n.
+
+substitute1(_Item,_POS,[],Grammar,Grammar) :- !.
+substitute1(Item,POS,Grammar1,Grammar2,Grammar3) :-
+ Grammar1=[Grammar4|Grammar5],
+ Grammar4=POS,
+ append_list([Grammar2,Item],Grammar6),
+ append(Grammar6,Grammar5,Grammar3),!.
+substitute1(Item,POS,Grammar1,Grammar2,Grammar3) :-
+ Grammar1=[Grammar4|Grammar5],
+ not(Grammar4=POS),
+ append_list([Grammar2,Grammar4],Grammar6),
+ substitute1(Item,POS,Grammar5,Grammar6,Grammar3),!.
+
+substitute2([],_BrDict012,Sentence,Sentence) :- !.
+substitute2(Grammar1,BrDict012,Sentence1,Sentence2) :-
+ Grammar1=[Grammar2|Grammar3],
+ Grammar2=n,
+ findall(A,(member([A,"box"],BrDict012)),B),
+ random_member(Word,B),
+ append(Sentence1,[Word],Sentence3),
+ substitute2(Grammar3,BrDict012,Sentence3,Sentence2).
+substitute2(Grammar1,BrDict012,Sentence1,Sentence2) :-
+ Grammar1=[Grammar2|Grammar3],
+ Grammar2=v,
+ findall(A,(member([A,"right"],BrDict012)),B),
+ random_member(Word,B),
+ append(Sentence1,[Word],Sentence3),
+ substitute2(Grammar3,BrDict012,Sentence3,Sentence2).
+substitute2(Grammar1,BrDict012,Sentence1,Sentence2) :-
+ Grammar1=[Grammar2|Grammar3],
+ Grammar2=a,
+ findall(A,(member([A,"plus"],BrDict012)),B),
+ random_member(Word,B),
+ append(Sentence1,[Word],Sentence3),
+ substitute2(Grammar3,BrDict012,Sentence3,Sentence2).
+substitute2(Grammar1,BrDict012,Sentence1,Sentence2) :-
+ Grammar1=[Grammar2|Grammar3],
+ append(Sentence1,[Grammar2],Sentence3),
+ substitute2(Grammar3,BrDict012,Sentence3,Sentence2).
+
+make_lists(Sentence1,Sentence,Sentence) :-
+ Sentence1=[_Sentence2],
+ !.
+make_lists(Sentence1,Sentence2,Sentence3) :-
+ Sentence1=[Sentence4|Sentence5],
+ Sentence5=[Sentence6|_Sentence7],
+ append(Sentence2,[[Sentence4,Sentence6]],Sentence8),
+ make_lists(Sentence5,Sentence8,Sentence3).
+
+
\ No newline at end of file
diff --git a/Algorithm-Writer-with-Lists/four_crosses.pl b/Algorithm-Writer-with-Lists/four_crosses.pl
new file mode 100644
index 0000000000000000000000000000000000000000..c2aa04a053332f26533d90ea54390ccfd5d9eeef
--- /dev/null
+++ b/Algorithm-Writer-with-Lists/four_crosses.pl
@@ -0,0 +1,12 @@
+four_crosses :-
+ prompt("What are the two items to cross?",_Two_items),
+ cross,cross,cross,
+ prompt("What is their cross?",_Cross11).
+
+cross :-
+ prompt("What is their cross?",_Cross11),
+ prompt("What is at the same level as this?",_Cross12).
+
+prompt(Prompt,String) :-
+ writeln(Prompt),
+ read_string(user_input, "\n", "\r", _End, String).
\ No newline at end of file
diff --git a/Algorithm-Writer-with-Lists/gl-api.pl b/Algorithm-Writer-with-Lists/gl-api.pl
new file mode 100644
index 0000000000000000000000000000000000000000..9798eaa51a44544d9b9b8b1df4780e23e2850b21
--- /dev/null
+++ b/Algorithm-Writer-with-Lists/gl-api.pl
@@ -0,0 +1,63 @@
+:- use_module(library(http/thread_httpd)).
+:- use_module(library(http/http_dispatch)).
+:- use_module(library(http/http_error)).
+:- use_module(library(http/html_write)).
+
+% we need this module from the HTTP client library for http_read_data
+:- use_module(library(http/http_client)).
+:- http_handler('/', web_form, []).
+
+% GitHub
+:- include('grammar_logic_to_alg.pl').
+
+server(Port) :-
+ http_server(http_dispatch, [port(Port)]).
+
+ /*
+ browse http://127.0.0.1:8000/
+ This demonstrates handling POST requests
+ */
+
+ web_form(_Request) :-
+ reply_html_page(
+ title('Grammar Logic'),
+ [
+ form([action='/landing', method='POST'], [
+ /**
+ p([], [
+ label([for=debug],'Debug (on/off):'),
+ input([name=debug, type=textarea])
+ ]),
+ **/
+ p([], [
+ label([for=query],'Grammar Logic Input:'),
+ input([name=query, type=textarea])
+ ]),
+
+ p([], input([name=submit, type=submit, value='Submit'], []))
+ ])]).
+
+ :- http_handler('/landing', landing_pad, []).
+
+ landing_pad(Request) :-
+
+% working_directory(_, 'GitHub/Algorithm-Writer-with-Lists/'),
+ member(method(post), Request), !,
+ http_read_data(Request, Data, []),
+ format('Content-type: text/html~n~n', []),
+ format('
",Refs_no_heading2,""],HTML).
+
+write_heading(String01,Heading) :-
+ concat_list([String01,"\n","\n"],Heading).
+
+write_introduction(String01,Pole1,Critique,Introduction) :-
+ %% The heading should be in the form "Author's topic"
+ atom_string(Pole1,Pole2),
+ findall([Paragraph_topic_sentence," "],(member(A,Critique),A=[_,[Paragraph_topic_sentence|_]|_]),Paragraph_topic_sentences1),
+ concat_list1(Paragraph_topic_sentences1,Paragraph_topic_sentences2),
+ concat_list(["I will critically analyse ",String01,". ",
+ "I will ",Pole2," with ",String01,". ",
+ Paragraph_topic_sentences2,"\n\n"],Introduction).
+
+write_conclusion(String01,Pole1,Critique,Future_research,Conclusion) :-
+ atom_string(Pole1,Pole2),
+ findall([Paragraph_topic_sentence," "],(member(A,Critique),A=[_,[Paragraph_topic_sentence|_]|_]),Paragraph_topic_sentences1),
+ concat_list1(Paragraph_topic_sentences1,Paragraph_topic_sentences2),
+ concat_list([
+ Paragraph_topic_sentences2,
+ "I have ",Pole2,"d with ",String01,". ",
+ Future_research,"\n\n"
+ ],Conclusion).
+
+write_references(R2,References,Refs_no_head) :-
+ findall([Reference,"\n"],member(Reference,R2),References1),
+ concat_list1(References1,References2),
+ concat_list([References2],Refs_no_head),
+ concat_list(["Bibliography","\n\n",References2],References).
+
+%%a1
+%% write_exposition([[[1,"g1"]],[[1,1,_15410,_15416,"a1","a1 is in g1."],[1,2,_15352,_15358,"a2","g1 contains a2."]]],A),writeln1(A).
+%% A = "a1 a1 is in g1. a2 g1 contains a2. ".
+
+%% write_exposition([[[1,"g1"],[1,"g1"]],[[1,1,_15410,_15416,"a1","a1 is in g1."],[1,2,_15352,_15358,"a2","g1 contains a2."],[1,1,_15410,_15416,"a1","a1 is in g1."],[2,2,_15352,_15358,"a2","g1 contains a2."]]],A).
+%% A = "a1 a1 is in g1. a2 g1 contains a2. a1 a1 is in g1. a2 g1 contains a2. ".
+
+write_exposition(Exposition,Essay4b) :-
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+
+Exposition=[_,Exposition2],
+
+
+findall([Essay4c%%,"\n"
+],(member(Numbera11,Numbers),
+
+
+%% not "" with findall
+findall(Essay4,(
+%%member(Exposition1,Exposition),
+%%Exposition1=[Numbera11,_Number3a,_String3,_String3a,String5a,String3y,_String3ay,String5a1,_CNumber2aa,_CNumber3aa,CString5a1a,_CNumber2a1,_CNumber3a1,_LastCStrings,String5aaa],
+
+
+%%output_exposition(Numbera11,Exposition2,"",Essay1),
+
+ %%findall( Essay4,(
+ member(Exposition1,Exposition2),Exposition1=[Numbera11,_Number3a,_String3,_String3a,String5a,Group_link],
+ concat_list([String5a," ",Group_link," "],Essay4)
+ %%delete(Exposition,Exposition1,Exposition2)
+ %%output_exposition(Numbera11,Exposition2,Essay4,Essay6)
+),Essay4a),
+concat_list(Essay4a,Essay4c1),%%trace,
+(Essay4c1=""->Essay4c="";concat_list([Essay4c1,"\n"],Essay4c))
+
+),Essay4d),
+
+maplist(concat_list,Essay4d,Essay4f),
+concat_list(Essay4f,Essay4b)
+%%concat_list([Essay4e,"\n"],Essay4b)
+%%concat_list([Essay1," ",Essay3],Essay2),
+ %%concat_list([Essay2,"\n"],Essay23))
+%%,Essay3a),
+ %%concat_list(Essay3a,Essay4a)
+.
+%% *** HTML ( not \n)
+
+%%%%%
+%%a
+
+%% write_critique([[1,["heading is e12",[1,1,_25346,_25352,"e1",_25370,_25376,"e12"],[1,2,_25412,_25418,"e2",_25436,_25442,"e22",1,1,"e12",0,0,"e22","e12 is e22"]]]],A),writeln1(A).
+%% A = "heading is e12 e1 e12 e2 e22 e12 is e22 \n".
+
+write_critique(Critique,Essay4):-
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+
+findall(Essay23,(member(Numbera11,Numbers),
+
+%% not "" with findall
+%%findall(Essay22,(
+member(Critique1,Critique),
+%%Critique1=[Numbera11,_Number3a,_String3,_String3a,String5a,String3y,_String3ay,String5a1,_CNumber2aa,_CNumber3aa,CString5a1a,_CNumber2a1,_CNumber3a1,_LastCStrings,String5aaa],
+
+Critique1=[Numbera11,[Para_topic_sent,[_Number2a,_Number3a,_String3,_String3a,String5a,_String3y,_String3ay,String5a1]|Critique2]],
+
+concat_list([Para_topic_sent," ",String5a," ",String5a1," "],Essay0),output_critique(Numbera11,Critique2,String5a1,Essay0,Essay1),
+
+ concat_list([Essay1,Para_topic_sent,"\n"],%%Essay22)
+
+%%),
+Essay23)),Essay3),
+ concat_list(Essay3,Essay4)
+.
+%% *** HTML ( not \n)
+
+output_critique(_Numbera11,[],_String5a1a,Essay,Essay) :- !.
+output_critique(Numbera11,Critique,CString5a1a,Essay1,Essay2) :-
+findall( Essay6,(member(Critique1,Critique),Critique1=[Numbera11,_Number3a,_String3,_String3a,String5a,String3y,_String3ay,String5a1,
+_CNumber2aa,_CNumber3aa,CString5a1a,
+ _CNumber2a1,_CNumber3a1,_LastCStrings,
+ String5aaa],
+ concat_list([String5a," ",String5a1," ",String5aaa," "],Essay4),
+ delete(Critique,Critique1,Critique2),
+ output_critique(Numbera11,Critique2,String5aaa,Essay4,Essay6)
+),Essay33),
+%%trace,
+(Essay33=[]->concat_list([Essay1%%," "
+],Essay2);%%(Essay33=[Essay3]->concat_list([Essay1," ",Essay3],Essay2);%%(Essay33=[Essay3|[E33]]-> concat_list([Essay1," ",Essay3,E33],Essay2);
+(Essay33=[Essay3|E33], concat_list(E33,E34),concat_list([Essay1,%%" ",
+Essay3,E34],Essay2)))
+%%)
+%%)
+.
+
+
+/**critique(String00,String01,Reasons_per_paragraph,Numbers,Critique).
+ **/
+
+generate_file_name(File1,File2) :-
+ get_time(TS),stamp_date_time(TS,date(Year,Month,Day,Hour1,Minute1,Seconda,_A,_TZ,_False),local),
+ concat_list(["file",Year,Month,Day,Hour1,Minute1,Seconda,".txt"],File1),
+ concat_list(["file",Year,Month,Day,Hour1,Minute1,Seconda,".html"],File2).
+
+
+explain_structure(String01,Reasons_per_paragraph,File1) :-
+ concat_list(["The Short Essay Helper will you help structure and write your essay about \"",String01,"\" with ",Reasons_per_paragraph," reasons per paragraph.","\n",
+ "The Helper will help write an exposition (which summarises but doesn't critique the idea), a critique (which agrees with or disagrees with the topic), the introduction and the conclusion (which state whether you agreed or disagreed with the topic, etc.). Citations will be automatically made.","\n"],String1),
+ writeln(String1).
+
+exposition(String00,String01,Reasons_per_paragraph,Numbers,ML_db,Exposition1) :-
+ length(List1,5), %% 5->1
+ append(List1,_,Numbers),
+ length(List2,Reasons_per_paragraph),
+ append(List2,_,Numbers),
+
+ %%string_codes(String001,String00),
+ %%writeln(String001),
+ findall([Number1,Exposition2],(
+ %%trace,
+member(Number1,List1),concat_list(["What is group ",Number1," of 5 in the exposition that groups ideas about \"",String01,"\"? "],String1),get_string(String1,either,one-not-ml,"","",%ML_db,
+Exposition2)),Exposition3),
+
+ findall([Number2,Number3,String3,String3a,String5a,String5],(
+ member(Number2,List1),member(Number3,List2),get_item_n(Exposition3,Number2,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you how the quote you are about to enter relates to the paragraph topic."],String2b),writeln(String2b),
+ %%trace,
+exposition2(Item1,ML_db,String3,String3a,String5a,String5)
+ ),Exposition4),
+ Exposition1=[Exposition3,Exposition4].
+
+exposition2(Item1,ML_db,String3,String3a,String5a,String5):-
+ (%%concat_list(["What is the paragraph number of the quote about the paragraph topic \"",Item1,"\"? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote about the paragraph topic \"",Item1,"\"? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ concat_list(["What is the paraphrased quote about the paragraph topic \"",Item1,"\"? "],String4a),get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+ concat_list(["How does the quote you entered (\"",String5a,"\") relate to the paragraph topic \"",Item1,"\"? "],String4),
+ %%trace,
+ SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",downcase_atom(Item1,String41a),split_string(String41a, SepandPad, SepandPad, Item1a),
+
+ get_string(String4,either,one-not-ml,Item1a,String3aa,String5))
+ ->true;exposition2(Item1,ML_db,String3,String3a,String5a,String5).
+
+%% Agree or disagree
+
+critique(String00,String01,Reasons_per_paragraph,Numbers,ML_db,Critique1) :-
+ length(List1,5), %% 5->1
+ append(List1,_,Numbers),
+ length(List2,Reasons_per_paragraph),
+ append(List2,_,Numbers),
+
+ %%string_codes(String001,String00),
+ %%writeln(String001),
+
+ retractall(critique3(_)),
+ assertz(critique3([])),
+
+
+ findall([Number2a,Critique2],(
+%% Reason 1
+
+member(Number2a,List1),
+%%List1=[Number2a|List1a],
+List2=[Number3a|List2a],
+%%trace,
+
+
+critique_reason1(String01,Number2a,Number3a,Reasons_per_paragraph,ML_db,Critique3,Topic_paragraph_link),
+
+critique_reasons_2_to_n(Number2a,List2a,Critique3,Reasons_per_paragraph,ML_db,Critique4),
+
+ append_list2([[Topic_paragraph_link],Critique3,Critique4],Critique2)),Critique1).
+
+ critique_reason1(String01,Number2a,Number3a,Reasons_per_paragraph,ML_db,Critique3,Topic_paragraph_link) :-
+
+ %%member(Number2,List1),member(Number3,List2),
+ %%get_item_n(Critique3,Number2a,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you for your comment on the quote you are about to enter."],String2b),writeln(String2b),
+ %% Later: connections
+
+ %%trace,
+critique2(String01,ML_db,String3,String3a,String5a,String3y,String3ay,String5a1,Topic_paragraph_link),
+ %%),Critique4).
+ Critique3=[[Number2a,Number3a,String3,String3a,String5a,String3y,String3ay,String5a1]].
+
+critique2(String01,ML_db,String3,String3a,String5a,String3y,String3ay,String5a1,Topic_paragraph_link):-
+ (%%concat_list(["What is the paragraph number of the quote to comment on? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote to comment on? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ concat_list(["What is the paraphrased quote to comment on? "],String4a),get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+
+ concat_list(["Is your comment from a quote (y/n)? "],String2yn),get_string(String2yn,either,one-not-ml,"","",String3yn),
+
+ agree_disagree(Pole),
+
+ (String3yn="y"->
+ (%%concat_list(["What is the paragraph number of the comment? "],String2y),get_number(String2y,String3y),
+ %%concat_list(["What is the sentence number of the comment? "],String2ay),get_number(String2ay,String3ay),
+ %%trace,
+ %%member1a([String3y,String3ay,String3aay],ML_db),
+
+ %% use either original x or paraphrase
+
+ concat_list(["What is the comment that is from the quote? "],String4ac),
+ %%trace,
+ get_string(String4ac,either,one-not-ml-ref,"",String3aay,String5a1)
+ )
+
+ ;(String3y=0,String3ay=0,
+ concat_list(["What is the comment? "],String4ac),get_string(String4ac,either,one-not-ml,"","",%%String5a,
+ String5a1))),
+
+ concat_list(["How does the comment \"",String5a1,"\" relate to the essay topic \"",String01,"\"? "],Topic_paragraph_link_prompt),
+ %%trace,
+
+ downcase_and_split(String5a1,String5a1ds),
+ downcase_and_split(String01,String01ds),
+ get_string(Topic_paragraph_link_prompt,either,one-not-ml,String5a1ds,String01ds,Topic_paragraph_link)
+
+
+ /**
+ %% conn - choose connected comments
+ concat_list(["How does the quote you entered (\"",String5a,"\") relate to the paragraph topic \"",Item1,"\"? "],String4),
+ %%trace,
+ SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",downcase_atom(Item1,String41a),split_string(String41a, SepandPad, SepandPad, Item1a),
+
+ get_string(String4,either,two,Item1a,String3aa,String5)
+ **/
+ )
+ ->true;critique2(ML_db,String3,String3a,String5a,String3y,String3ay,String5a1,Topic_paragraph_link).
+
+
+
+critique_reasons_2_to_n(Number2a,List2a,Critique3,Reasons_per_paragraph,ML_db,Critique4) :-
+ retractall(critique3(_)),
+ assertz(critique3(Critique3)),
+%%trace,
+/** critique3(Critique31),
+ append(Critique31,Critique3,Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32)),
+**/
+%%notrace,
+findall([Number2a,Number3a,String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa],(
+ %%member(Number2,List1a),
+ member(Number3a,List2a),
+ %%get_item_n(Critique3,Number2a,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you for your comment on the quote you are about to enter."],String2b),writeln(String2b),
+ %% Later: connections
+
+
+ %%trace,
+critique3(ML_db,%%Critique3,
+String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa)
+
+
+/**
+ trace,
+ critique3(Critique31),
+ append(Critique31,[[String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32))
+**/
+
+),
+ Critique4).
+
+ %%Critique3=[].
+
+critique3(ML_db,%%Critique3,
+String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa):-
+ (%%concat_list(["What is the paragraph number of the quote to comment on? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote to comment on? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ concat_list(["What is the paraphrased quote to comment on? "],String4a),get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+
+ concat_list(["Is your comment from a quote (y/n)? "],String2yn),get_string(String2yn,either,one-not-ml,"","",String3yn),
+
+ agree_disagree(Pole),
+
+ (String3yn="y"->
+ (%%concat_list(["What is the paragraph number of the comment? "],String2y),get_number(String2y,String3y),
+ %%concat_list(["What is the sentence number of the comment? "],String2ay),get_number(String2ay,String3ay),
+ %%trace,
+ %%member1a([String3y,String3ay,String3aay],ML_db),
+
+ %% use either original x or paraphrase x
+ %%trace,
+ concat_list(["What is the comment that is from the quote? "],String4ac),
+ %%trace,
+ get_string(String4ac,either,one-not-ml-ref,"",String3aay,String5a1)
+ %%,trace
+ )
+
+ ;(String3y=0,String3ay=0,
+ concat_list(["What is the comment? "],String4ac),get_string(String4ac,either,one-not-ml,"","",%%String5a,
+ String5a1))),
+ %%*** assertz recurse not findall new critique3 x
+
+
+ %%trace,
+ critique3(Critique31),
+ append(Critique31,[[0,0,String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32)),
+
+ critique3(Critique33),
+
+
+((
+
+
+ %%critique3(Critique3),
+ length(Critique33,LCritique3),
+ %%length(List1,LCritique3),
+ numbers(LCritique3,1,[],List1),
+ %%append(List1,_,Numbers),
+ %%Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+ %%trace,
+
+findall([N," - ",CString5a1,"\n"],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString3,_CString3a,_CString5a,_CString3y,_CString3ay,CString5a1])),CStrings1),
+
+findall([N,CNumber2a,CNumber3a,CString5a1],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString31,_CString3a1,_CString5a1,_CString3y1,_CString3ay1,CString5a1])),CStrings2),
+
+%%trace,
+
+%%CStrings=[CStrings1,CStrings2],
+reverse(CStrings2,CStringsR),CStringsR=[[_,CNumber2a1,CNumber3a1,LastCStrings]|CStringsR1],
+reverse(CStringsR1,CStringsRR),
+
+reverse(CStrings1,CStringsR10),CStringsR10=[_|CStringsR11],
+reverse(CStringsR11,CStringsRR1),
+
+append_list2(CStringsRR1,CStrings11),
+concat_list(CStrings11,CStrings12),
+concat_list(["Please select a comment to connect the comment \"",LastCStrings,"\" to:","\n",CStrings12],ConnectionNumberPrompt),
+get_number(ConnectionNumberPrompt,ConnectionNumber),
+
+ member([ConnectionNumber,CNumber2aa,CNumber3aa,CString5a1a],CStringsRR),
+
+ SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",downcase_atom(CString5a1a,CString5a1a1),split_string(CString5a1a1, SepandPad, SepandPad, CString5a1a2),
+
+ %%CNumber2a1,CNumber3a1,
+ downcase_atom(LastCStrings,LastCStrings_a),split_string(LastCStrings_a, SepandPad, SepandPad, LastCStrings_a1),
+
+
+ %% conn - choose connected comments, this to a previous comment
+ %%trace,
+
+ concat_list(["How does \"",LastCStrings,"\" connect to \"",CString5a1a,"\"? "],ConnectionPrompt),
+
+ get_string(ConnectionPrompt,either,one-not-ml,CString5a1a2,LastCStrings_a1,String5aaa))->true;(
+
+ %% If the section since updating dynamic critique comments fails, prevent doubling of critique comments
+
+ critique3(Critique311),
+ reverse(Critique311,Critique312),
+ Critique312=[_|Critique313],
+ reverse(Critique313,Critique314),
+ retractall(critique3(_)),
+ assertz(critique3(Critique314)),fail
+
+ ))
+
+/** Critique4=[String3,String3a,String5a,String3y,String3ay,String5a1,
+ CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa],
+ **/
+ /**
+ critique3(Critique31),
+ append(Critique31,[[String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32))
+**/
+
+ )
+ %% Retries the predicate if it fails
+ ->true;critique3(ML_db,%%Critique3,
+ String3,String3a,String5a,String3y,String3ay,String5a1,
+ CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa
+ ).
+
+
+
+
+member1a([String3,String3a,String3aa],ML_db) :-
+ member([String3,String3a,String3aa],ML_db),!.
+
+
+get_item_n(Exposition,Number1,Item) :-
+ Number2 is Number1-1,
+ length(List,Number2),
+ append(List,[Item|_],Exposition).
+
+get_number(Prompt1,Number) :-
+ %%concat_list(Prompt1,Prompt2),
+ (%%repeat,
+ writeln(Prompt1),read_string(user_input, "\n", "\r", _End, String),split_string(String, ",", " ", Value1),Value1=[Value2],number_string(Number,Value2)).
+
+
+/**
+get_string(Prompt1,String1) :-
+ concat_list(Prompt1,Prompt2),
+ (repeat,write(Prompt2),read_string(String1),not(String1="")).
+**/
+
+equals_empty_list([]).
+
+downcase_and_split(String1, String2) :-
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ downcase_atom(String1,String3),split_string(String3, SepandPad, SepandPad, String2).
+
+get_string(Prompt2,Flag1,Flag2,ML_db0,ML_db1,String2) :-
+%%writeln1(get_string(Prompt2,Flag1,Flag2,ML_db1,String2)),
+ %%concat_list(Prompt1,Prompt2),
+ %%trace,
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ %%(repeat,
+ (Flag2=one-not-ml-ref->(concat_list(["Note: Enter in-text reference using AGPS, e.g.\n","The first work supports the second work (Surname 2000, pp. 18-9).\n","Surname (2000, pp. 18-9) states that ...\n","Remember to use words like \"also\", \"moreover\" and \"in addition\" before the sentence."],String_a1),writeln(String_a1));true),
+ writeln(Prompt2),read_string(user_input, "\n", "\r", _End, String2aa),%%not(String2aa=""),
+ %%String2aa=[String2aaa],
+ downcase_atom(String2aa,String3),split_string(String3, SepandPad, SepandPad, String4),
+ Neg_term_list=["no","not","don","t","shouldn","wouldn","disagree","differ","dislikes","disagrees","differs","dislikes","disagreed","differed","disliked","negative","negation","non","negate","negates","negated","but","however","isn","lack"],
+ (Flag1=%%non_negative
+ positive->(
+
+ (findall(Item11,(
+
+ member(Item1,String4),
+ findall(Item1,(
+member(Item2,Neg_term_list),(Item1=Item2->(write("Error: Contains the negative term \""),write(Item1),writeln("\".")))),Item11)),Item12)),
+
+maplist(equals_empty_list,Item12)
+
+);
+ ((Flag1=negative->((member(Item1,String4),member(Item1,Neg_term_list))->true;(writeln("Error: Contains no negative term, one of:"),writeln(Neg_term_list),fail));true)->true;Flag1=either)),
+ (Flag2=one-not-ml->String2=String2aa;
+ (Flag2=one-not-ml-ref->
+ (refs(R1),writeln("What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.\n"),writeln("Existing references (copy one or many delimited with \"\\n\"):"), findall(_,(member(R11,R1),writeln(R11)),_),read_string(user_input, "\n", "\r", _End, String2r),not(String2r=""),%%downcase_atom(String2r,_String3r),
+ String2=String2aa,split_string(String2r,"\n\r","\n\r",String2r3),
+ %%trace,
+ retractall(refs(_)),maplist(append,[[R1,String2r3]],[String2r21]),
+ sort1(String2r21,String2r2),
+ assertz(refs(String2r2))%%split_string(String3r, SepandPad, SepandPad, String4)
+ );
+(Flag2=one->(%%split_string(String4,SepandPad,SepandPad,String21),
+ writeln("Attempt 1"),
+
+ (length(String4,Length_string1),
+(check_strings_container1(Length_string1,String4,[0,0,ML_db1],[[0,0,[xxx,xxx,xxx,xxx,xxx]],[0,0,ML_db1],[999,999,[]]],_,_List2)->
+ writeln("Success");(writeln("Failed"),fail))
+ %%(%%data_instance_k_classification1([[0,0,[xxx,xxx,xxx,xxx,xxx]],[0,0,ML_db1]%%,[999,999,[]]
+ %%],[0,0,String4]%%21
+ %%,1,String4a%%21
+ %%),
+ %%String4=String4a)
+ %%)->
+ %%(%%String4a=[_,_,String4a1],
+ %%writeln([found,String4a,String4]),
+%%writeln("Success"));
+ %%(writeln("Failed"),fail)
+ %%
+ ));
+ (Flag2=%%[
+ two,%%,P1,S1,P2,S2],
+ %%trace,
+ append([ML_db0],[ML_db1],ML_db2),
+ check_strings(String4,ML_db2%%,P1,S1,P2,S2
+ ))))).
+
+
+%% Sorts by first surname then title in AGPS
+
+sort1(List1,List2) :-
+ findall([C,B],(member(B,List1),downcase_atom(B,D),atom_string(D,C)),E),sort(E,F),findall(G,member([_,G],F),List2).
+
+
+prepare_file_for_ml(String000,String021) :-
+ string_codes(String001,String000),
+ downcase_atom(String001,String00),
+ split_string(String00, "\n\r", "\n\r", String01),
+ delete(String01,"",String02),
+ findall(String03,(member(String02a,String02),split_string(String02a,".",".",String04),
+ ((String04=[String05|String06],
+ number_string(Number05,String05),
+ number_sentences(Number05,1,String06,[],String03))->true;
+ (findall(String08,
+ (SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ member(String04a,String04),split_string(String04a,SepandPad,SepandPad,String09),
+ append_list([[""],"",String09],String08)),String03)))),String0211),
+ append_list2(String0211,String021).
+
+number_sentences(_,_,[],String,String) :- !. number_sentences(Number_a,Number_b1,String06,String07,String08) :-
+ String06=[String00|String12],
+
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ split_string(String00,SepandPad,SepandPad,String09),
+ append_list([[Number_a],Number_b1,String09],String10),
+ append(String07,[String10],String11),
+ Number_b2 is Number_b1 + 1,
+ number_sentences(Number_a,Number_b2,String12,String11,String08).
+
+
+data_instance_k_classification1(Data,I,K,C):-
+ maplist(o_oclass_disClass1(I),Data,DisAndClass),
+ keysort(DisAndClass,DSorted),
+
+ %%writeln(DSorted),
+
+ length(TopK,K),
+ append(TopK,_,DSorted),
+ %This is not a very good way of selecting k as you may have many values with the same distance, and the sorting just cuts these off
+ %Dsorted = [1-pos,3-pos,3-pos,3-neg,3-neg]
+ %Topk =[1-pos,3-pos,3-pos]
+ topk_vote(TopK,C).
+
+o_oclass_disClass1(O,[A,B,O2],D-[A,B,O2]):-
+ o_o_dis(O,O2,D).
+
+%% could be in either order
+%% a([w,z,a,b,e,c,z,y],[1,1,[c]],[1,2,[a]]).
+
+%% true
+%% a([a,c,b],[1,1,[a,d]],[1,2,[b]]).
+%% a([a,c,b],[1,1,[a,c]],[1,2,[b]]).
+%% a([a,b],[1,1,[a]],[1,2,[b]]).
+
+%% false
+%% a([c,d],[1,1,[a]],[1,2,[b]]).
+
+%% q in "q a b" sends food like e in "c d e"
+
+/**
+
+[debug] ?- a([q,e,r,a,t,y,u,q,e,r,a,t,y,u,c,b,x,v,n,m],[1,1,[c,a,t,y,u]],[1,2,[c,a,t,y,u]]). [[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[c,a,t,y,u]],[r,a,t,y,u]]
+true.
+
+X:
+[debug] ?- a([q,e,r,a,t,y,u,c,b,x,v,n],[1,1,[c,a,t,y,u]],[1,2,[b,x,u]]).
+[[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[b,x,u]],[c,b,x]]
+true.
+
+[debug] ?- a([q,e,r,a,t,y,u,c,c,c,b,x,v,n],[1,1,[c,a,t,y,u]],[1,2,[b,x,v]]). [[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[b,x,v]],[c,c,c]]
+true.
+
+**/
+
+check_strings(String1,ML_db) :-
+ %%member([P1,S1,String2],ML_db),
+ %%member([P2,S2,String3],ML_db),
+ ML_db=[String2a,String3a],
+%%writeln(["String1,String2a,String3a",String1,String2a,String3a]),
+ String2=[0,0,String2a],
+ String3=[0,0,String3a],
+%%a(String1,String2,String3):-
+ length(String1,Length_string1),
+((writeln("Attempt 1"),
+check_strings_container1(Length_string1,String1,String2,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String2,[999,999,[]]],_,List2),
+ length(List2,Length_list2),
+ %%Length_list3 is Length_list2+1,
+ %%writeln(here),
+ check_strings_container1(Length_list2,List2,String3,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String3,[999,999,[]]],_,_List3),
+ writeln("Success")
+ %%,trace
+ )->true;
+ (writeln("Failed"),
+ writeln("Attempt 2"),
+ ((check_strings_container1(Length_string1,String1,String3,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String3,[999,999,[]]],_,List2),
+ length(List2,Length_list2),
+ %%Length_list3 is Length_list2+1,
+ %%writeln(here),
+
+ check_strings_container1(Length_list2,List2,String2,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String2,[999,999,[]]],_,_List3))->
+ writeln("Success");(writeln("Failed"),fail)))
+).
+
+check_strings_container1(Length_string1,String1,String2,Db,List2,List2b) :-
+check_strings1(Length_string1,String1,String2,Db,List2,List2b),not(var(List2b)).
+%%check_strings_container2(Length_string1,Length_string3,List1,String2,Db,List2,List2b) :-
+%%check_strings2(Length_string1,Length_string3,List1,String2,Db,List2,List2b),not(var(List2b)).
+
+
+ %% finds the length of each string - from position 1 to (length of string1) of string1
+ %% starts with the shortest possible string, then increases the length
+ %% repeat this for second string
+ %%string1
+
+ %%*** check with s2,s3 in db
+check_strings1(0,_String1,_String2,_Db,List2,List2) :- !.
+check_strings1(Length_string1,String1,String2,Db,List2,List2b) :-
+ %% finds the first str
+ %%length(List,Index),
+ length(List1,Length_string1),
+ append(_,List1,String1),
+ Length_string2 is Length_string1-1,
+ Length_string3 is Length_string1+1,
+ check_strings2(0,Length_string3,List1,String2,Db,List2,List2c),
+ (var(List2c)->
+ check_strings1(Length_string2,String1,String2,Db,List2c,List2b);List2c=List2b),!.
+
+check_strings2(Length_string,Length_string,_String1,_String2,_Db,List2,List2) :- !.
+check_strings2(Length_string1,Length_string3,List1,String2,Db,List2,List2b) :-
+
+
+ %%split_string(String4,SepandPad,SepandPad,String21),
+
+ %% go through s1, removing the first word each time, until v
+ %%Length_string11 is Length_string1-1,
+ length(List11,Length_string1),
+ append(List11,List2,List1),
+ Length_string2 is Length_string1+1,
+
+%%writeln([list11,List11]),
+
+ ((%%trace,
+ %%(List11=[z,a,b]->trace;true),
+ %%writeln([[_,_,List11],String2]),
+ %%notrace,
+ not(List11=[]),
+
+%%writeln(data_instance_k_classification1(Db
+%% ,List11,1,A)),
+ data_instance_k_classification1(Db
+ %%String2
+ ,List11,1,A),
+ %%writeln([string2,String2,list11,List11,a,A]),
+A=String2,%%[_,_,List11],
+ %%trace,
+
+ %%((List11=[z,a,b],A=[_,_,[z,t,b]],not(String2=[_,_,[c,z]]))->trace;notrace),
+ %%trace,
+%%writeln([string2=list11,String2=List11]),
+%%(List11=[y]->true%%trace
+%%;true),
+%%member(List11,Db),
+ %%**String2=[_,_,List11]
+ List2b=List2,%%,notrace
+ String2=[_,_,String21]
+ ,writeln([found,String21,List11])
+ )
+ ->(true
+ %%,writeln(List11)
+ );
+ check_strings2(Length_string2,Length_string3,List1,String2,Db,_List2c,List2b)),!.
+
+numbers(N2,N1,Numbers,Numbers) :-
+ N2 is N1-1,!.
+numbers(N2,N1,Numbers1,Numbers2) :-
+ N3 is N1+1,
+ append(Numbers1,[N1],Numbers3),
+ numbers(N2,N3,Numbers3,Numbers2).
+
diff --git a/Essay-Helper/short_essay_helper3.1_agps-mr-tree.pl b/Essay-Helper/short_essay_helper3.1_agps-mr-tree.pl
new file mode 100644
index 0000000000000000000000000000000000000000..d88d152fdb5fd87809b911096c9c87c3abb572c7
--- /dev/null
+++ b/Essay-Helper/short_essay_helper3.1_agps-mr-tree.pl
@@ -0,0 +1,1120 @@
+%% backdated from this - which has no repeats and forward progress through essays, but has a bug in numbering pages in references, so backdated to version with repeats and random progress, made forward progress x kept this version and solved bug with pg info in db
+
+%% Prolog Short Essay Helper
+
+%% Keep 1,2,3 in aphors
+%% Certain number of reasons per paragraph
+%% Explains essay structure at start
+%% Exposition (negative terms not allowed, asks for 5 groups from text to take optionally enough notes about, which can revise) and critique
+%% Paraphrasing
+%% Converts x, explains x, asks about
+%% Allows citation of aphor
+%% Prints citations used so far
+%% Prints chapter, essay and allows changes (using text editor) at end.
+%% Outputs db file and br dicts for marking later
+
+%% *** Rewrite essay files with e.g. 1a. before aphors not 1. so not confused with aphors
+
+%% short_essay_helper("file.txt",5,E),writeln1(E).
+
+%%:- include('distances.pl').
+:- use_module(library(date)).
+:- include('../listprologinterpreter/la_strings').
+:- include('../mindreader/make_mind_reading_tree4 working1.pl').
+:- include('../mindreader/mr_tree.pl').
+:- include('texttobr2qb.pl').
+:- include('sheet_feeder.pl').
+
+:- dynamic critique3/1.
+:- dynamic agree_disagree/1.
+:- dynamic refs/1.
+:- dynamic chosen_quotes/1.
+:- dynamic string00_z/1.
+
+choose(N2,B,B1,B2,C,Item) :-
+%%trace,
+(
+ choose2(N2,B,B1,B2,C,Item)->true;(Item="* All quotes exhausted. (*)"),N2=0,B="()",B1="()",B2=0,C=""),
+ %%notrace,
+ !.
+choose2(N2,B,B1,B2,List0,List0) :-
+%%trace,
+ string00_z(String00),
+ choose_sentence_range(String00,N1,B,B1,B2,List0),
+ %%chosen_quotes(Chosen_quotes1),
+ %%trace,
+ %%length(List0,L),
+ %%numbers(L,1,[],N),
+ %%random_
+ %%member(N1,N),
+ %%
+ %%random_
+ %%mind_read([N1,Item10],List0),
+
+ %%random_
+ %%mind_read(Item1,Item10),
+ N2 is N1+B2-1,
+ %%get_item_n(List0,N1,Item10),
+
+
+ %%**string_codes(Item10,List),
+ %%notrace,
+ %%**split_string(List,".\n",".\n",List2),
+
+ %%length(List2,L),
+ %%numbers(L,1,[],N),
+ %%random_
+ %%member(N1,N),
+ %%N2 is N1+B2-1,
+ %%random_
+ %%**member(Item1,List2),
+
+ %%get_item_n(List2,N1,Item1),
+ /**
+ string_concat(E,D,Item1),
+ string_length(E,1),
+ downcase_atom(E,E1),
+ atom_string(E1,E2),
+ string_concat(E2,D,Item2),
+ string_length(E2,1),
+ string_concat(Item2,""%%"."
+ ,Item),
+ **/
+ delete(String00,[B,B1,B2,N1,List0],String00_a),
+ %%**delete(String00,[B,B1,B2|_],String00_a),
+ %%**delete(List0,[N1,Item10],List6),
+ %%findall([Item3,". "],(member(Item3,List2)),List3),
+ %%maplist(append,[List3],[List4]),
+ %%concat_list(List4,_List5),
+ %%append(List6,[]%%List5
+ %%,List7),
+ %%**(List6=[]->String00_b=String00_a;
+ %%**(%%trace,
+ %%**maplist(append,[[[B,B1,B2],List6]],[String00_c]),
+ %%**append(String00_a,[String00_c],String00_b)%%,notrace
+ %%**)),
+ retractall(string00_z(_)),
+ assertz(string00_z(String00_a))
+ %%trace,
+ %%writeln1(String00_b),notrace
+
+
+ %%,not(member(Item,Chosen_quotes1)),
+ %%append(Chosen_quotes1,[Item],Chosen_quotes2),
+ %%retractall(chosen_quotes(_)),
+ %%assertz(chosen_quotes(Chosen_quotes2))
+ .
+
+choose1(List0,Item) :-
+%trace,
+ mind_read(Item,List0),writeln(here1).
+
+delete_invisibles_etc(F,G) :-
+ findall(J,(member(H,F),atom_string(H,J),not(J="."),not(J=".."),not(string_concat(".",_,J))),G).
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+short_essay_helper(%%Filex,
+ String01,Key_words,
+ Reasons_per_paragraph) :-
+ retractall(string00_z(_)),
+ %%assertz(string00_z([])),
+
+ retractall(critique3(_)),
+ assertz(critique3([])),
+
+ retractall(refs(_)),
+ assertz(refs([])),
+
+ retractall(chosen_quotes(_)),
+ assertz(chosen_quotes([])),
+
+ directory_files("sources/",F),
+ delete_invisibles_etc(F,G),
+%%trace,
+SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",
+ findall(String02h3,(member(Filex1,G),
+ string_concat("sources/",Filex1,Filex),
+ phrase_from_file_s(string(String00a), Filex),
+ string_codes(String02b,String00a),
+ atom_to_term(String02b,String02a,[]),
+
+ (String02a=[Az,Bz,Cz|String02c]->true;
+ (concat_list(["Error: ",Filex," not in format [\"Surname, A 2000, Title: Subtitle, Publisher, City.\",\"Surname, A 2000\",First_Page_Num,\"\",\"\",...\"]"],Notification1),writeln(Notification1),abort)),
+ %%String02c=String02d,
+ %%trace,
+ findall([Az,Bz,Cz,N1,String02cb],(
+
+ length(String02c,L),
+ numbers(L,1,[],N),
+ %%random_
+ member(N1,N),
+ get_item_n(String02c,N1,String02ca),
+
+ %%member(String02ca,String02c),
+ split_string(String02ca, ".\n\r", ".\n\r", String02cb)
+
+ %%member(String02cb1,String02cb)
+
+ ),String02cc),
+ %%maplist(append,[String02cc],[String02d]),
+
+ %%delete(String02cc,[_,[]],String02d),
+ String02cc=String02d,
+
+ findall([Az,Bz,Cz,N2,String02d2],(member([Az,Bz,Cz,N2,String02d1],String02d),
+ member(String02d2,String02d1),
+ downcase_atom(String02d2,String02e),
+ atom_string(String02e,String02f1),
+ split_string(String02f1, SepandPad, SepandPad, String02e1),
+ findall(String02g,(member(Key_words1,Key_words),
+ %%trace,
+ downcase_atom(Key_words1,Key_words11),
+ atom_string(Key_words11,Key_words12),
+findall(Key_words12,(member(Key_words12,String02e1)),String02g)
+ ),String02i),
+ not(maplist(equals_empty_list,String02i))
+
+ ),String02h31),
+
+ sort(String02h31,String02h3)
+
+ %%prepare_file_for_ml(String00,String02a)
+ ),String00z1),
+ %%,
+
+ %%** findall(String02h2,(member([Ay,By,Cy,String02h1],String00z1),
+ %%**(String02h1=[]->String02h2=[];
+ maplist(append,[String00z1],[String00]),%%**)
+ %%**),String00z),
+
+%%delete(String00z,[],String00),
+
+
+term_to_atom(Key_words,Key_words_a),
+atom_string(Key_words_a,Key_words_b),
+ (String00=[]->(concat_list(["Error: No files in source folder or no instances of keywords ",Key_words_b," in files in source folder."],Notification2),writeln(Notification2),abort);true),
+
+ %%maplist(append,[[String00z1]],String00),
+%%maplist(append,[String00z],String00),
+ %%trace,
+assertz(string00_z(String00)),
+ %%writeln1(String00),
+ %%notrace,
+
+%%writeln1(String02),
+
+
+ generate_file_name(File1,File2),
+
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+ explain_structure(String01,Reasons_per_paragraph,File1),
+ exposition(String00,String01,Reasons_per_paragraph,Numbers,String02,Exposition),
+
+ %%concat_list(["Do you agree or disagree with ",String01," (a/d) ? "],String2ad),%%get_string(String2ad,either,one-not-ml,"","",String3ad),
+ choose1(["a"%%,"d"
+ ],String3ad),
+
+ (String3ad="a"->
+ (retractall(agree_disagree(_)),
+ assertz(agree_disagree(agree)));
+ (retractall(agree_disagree(_)),
+ assertz(agree_disagree(disagree)))),
+
+
+critique(String00,String01,Reasons_per_paragraph,Numbers,String02,Critique),
+
+agree_disagree(Pole),
+
+ %%concat_list(["What is the future area of research from your essay about ",String01,"? "],Future_research_prompt),
+ %%trace,
+ %%get_string(Future_research_prompt,either,one-not-ml,"","",Future_research),
+%% choose_sentence_range(String00,),
+ choose(N_page_ref,String00a1,String00a2,_String00a3,_String00a4,String00a5),
+ concat_list(["In ",String01,", automation should apply to \"",String00a5,"\" (",String00a2,", p. ",N_page_ref,")."],Future_research),
+ reference(String00a1),
+
+refs(R2),
+term_to_atom([Exposition,Critique,String3ad,Future_research,R2],File_contents),open_s(File1,write,Stream),write(Stream,File_contents),close(Stream),
+
+%% Output essay
+%%findall(_,(member(Exposition1,Exposition),Exposition1=
+
+
+%%writeln1([Exposition,Critique,Future_research,R2]),
+
+write_essay(String01,Pole,Exposition,Critique,Future_research,R2,Essay,HTML),
+writeln1(Essay),
+
+ (open_s(File2,write,Stream1),
+%% string_codes(BrDict3),
+ write(Stream1,HTML),
+ close(Stream1)),!
+ .
+
+%% replace("a\nb","\n"," \n",F).
+%% F="a \nb \n".
+
+replace(A,Find,Replace,F) :-
+ split_string(A,Find,Find,B),findall([C,Replace],(member(C,B)),D),maplist(append,[D],[E]),concat_list(E,F).
+
+concat_list1(D,F) :-
+ maplist(append,[D],[E]),concat_list(E,F).
+
+write_essay(String01,Pole,Exposition,Critique,Future_research,R2,Essay,HTML) :-
+ write_heading(String01,Heading),
+ write_introduction(String01,Pole,Critique,Introduction),
+ write_exposition(Exposition,Exposition2a),
+ concat_list(["I will expose ",String01," in this half. ",Exposition2a],Exposition2),
+ %%string_concat(Exposition2,"\n",Exposition2a),
+ write_critique(Critique,Critique2a),
+ string_concat(Critique2a,"\n",Critique2b),
+ atom_string(Pole,Pole1),
+ concat_list(["I will ",Pole1," with ",String01," in this half. ",Critique2b],Critique2),
+ write_conclusion(String01,Pole,Critique,Future_research,Conclusion),
+ write_references(R2,References,Refs_no_heading),
+ concat_list([Heading,Introduction,Exposition2,Critique2,Conclusion,References],
+ Essay),
+ concat_list([Introduction,Exposition2,Critique2,Conclusion],
+ Essay2),
+ replace(Essay2,"\n"," ",HTML1),
+ replace(Refs_no_heading,"\n"," ",Refs_no_heading2),
+ concat_list(["",String01,"
",
+ String01,"
",HTML1,"
Bibliography
",Refs_no_heading2,""],HTML).
+
+write_heading(String01,Heading) :-
+ concat_list([String01,"\n","\n"],Heading).
+
+write_introduction(String01,Pole1,Critique,Introduction) :-
+ %% The heading should be in the form "Author's topic"
+ atom_string(Pole1,Pole2),
+ findall([Paragraph_topic_sentence," "],(member(A,Critique),A=[_,[Paragraph_topic_sentence|_]|_]),Paragraph_topic_sentences1),
+ concat_list1(Paragraph_topic_sentences1,Paragraph_topic_sentences2),
+ concat_list(["I will critically analyse ",String01,". ",
+ "I will ",Pole2," with ",String01,". ",
+ Paragraph_topic_sentences2,"\n\n"],Introduction).
+
+write_conclusion(String01,Pole1,Critique,Future_research,Conclusion) :-
+ atom_string(Pole1,Pole2),
+ findall([Paragraph_topic_sentence," "],(member(A,Critique),A=[_,[Paragraph_topic_sentence|_]|_]),Paragraph_topic_sentences1),
+ concat_list1(Paragraph_topic_sentences1,Paragraph_topic_sentences2),
+ concat_list([
+ Paragraph_topic_sentences2,
+ "I have ",Pole2,"d with ",String01,". ",
+ Future_research,"\n\n"
+ ],Conclusion).
+
+write_references(R2,References,Refs_no_head) :-
+ findall([Reference,"\n"],member(Reference,R2),References1),
+ concat_list1(References1,References2),
+ concat_list([References2],Refs_no_head),
+ concat_list(["Bibliography","\n\n",References2],References).
+
+%%a1
+%% write_exposition([[[1,"g1"]],[[1,1,_15410,_15416,"a1","a1 is in g1."],[1,2,_15352,_15358,"a2","g1 contains a2."]]],A),writeln1(A).
+%% A = "a1 a1 is in g1. a2 g1 contains a2. ".
+
+%% write_exposition([[[1,"g1"],[1,"g1"]],[[1,1,_15410,_15416,"a1","a1 is in g1."],[1,2,_15352,_15358,"a2","g1 contains a2."],[1,1,_15410,_15416,"a1","a1 is in g1."],[2,2,_15352,_15358,"a2","g1 contains a2."]]],A).
+%% A = "a1 a1 is in g1. a2 g1 contains a2. a1 a1 is in g1. a2 g1 contains a2. ".
+
+write_exposition(Exposition,Essay4b) :-
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+
+Exposition=[_,Exposition2],
+
+
+findall([Essay4c%%,"\n"
+],(member(Numbera11,Numbers),
+
+
+%% not "" with findall
+findall(Essay4,(
+%%member(Exposition1,Exposition),
+%%Exposition1=[Numbera11,_Number3a,_String3,_String3a,String5a,String3y,_String3ay,String5a1,_CNumber2aa,_CNumber3aa,CString5a1a,_CNumber2a1,_CNumber3a1,_LastCStrings,String5aaa],
+
+
+%%output_exposition(Numbera11,Exposition2,"",Essay1),
+
+ %%findall( Essay4,(
+ member(Exposition1,Exposition2),Exposition1=[Numbera11,_Number3a,_String3,_String3a,String5a,Group_link],
+ concat_list([String5a," ",Group_link," "],Essay4)
+ %%delete(Exposition,Exposition1,Exposition2)
+ %%output_exposition(Numbera11,Exposition2,Essay4,Essay6)
+),Essay4a),
+concat_list(Essay4a,Essay4c1),%%trace,
+(Essay4c1=""->Essay4c="";concat_list([Essay4c1,"\n"],Essay4c))
+
+),Essay4d),
+
+maplist(concat_list,Essay4d,Essay4f),
+concat_list(Essay4f,Essay4b)
+%%concat_list([Essay4e,"\n"],Essay4b)
+%%concat_list([Essay1," ",Essay3],Essay2),
+ %%concat_list([Essay2,"\n"],Essay23))
+%%,Essay3a),
+ %%concat_list(Essay3a,Essay4a)
+.
+%% *** HTML ( not \n)
+
+%%%%%
+%%a
+
+%% write_critique([[1,["heading is e12",[1,1,_25346,_25352,"e1",_25370,_25376,"e12"],[1,2,_25412,_25418,"e2",_25436,_25442,"e22",1,1,"e12",0,0,"e22","e12 is e22"]]]],A),writeln1(A).
+%% A = "heading is e12 e1 e12 e2 e22 e12 is e22 \n".
+
+write_critique(Critique,Essay4):-
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+
+findall(Essay23,(member(Numbera11,Numbers),
+
+%% not "" with findall
+%%findall(Essay22,(
+member(Critique1,Critique),
+%%Critique1=[Numbera11,_Number3a,_String3,_String3a,String5a,String3y,_String3ay,String5a1,_CNumber2aa,_CNumber3aa,CString5a1a,_CNumber2a1,_CNumber3a1,_LastCStrings,String5aaa],
+
+Critique1=[Numbera11,[Para_topic_sent,[_Number2a,_Number3a,_String3,_String3a,String5a,_String3y,_String3ay,String5a1]|Critique2]],
+
+concat_list([Para_topic_sent," ",String5a," ",String5a1," "],Essay0),output_critique(Numbera11,Critique2,String5a1,Essay0,Essay1),
+
+ concat_list([Essay1,Para_topic_sent,"\n"],%%Essay22)
+
+%%),
+Essay23)),Essay3),
+ concat_list(Essay3,Essay4)
+.
+%% *** HTML ( not \n)
+
+output_critique(_Numbera11,[],_String5a1a,Essay,Essay) :- !.
+output_critique(Numbera11,Critique,CString5a1a,Essay1,Essay2) :-
+findall( Essay6,(member(Critique1,Critique),Critique1=[Numbera11,_Number3a,_String3,_String3a,String5a,_String3y1,_String3ay,String5a1,
+_CNumber2aa,_CNumber3aa,CString5a1a,
+ _CNumber2a1,_CNumber3a1,_LastCStrings,
+ String5aaa],
+ concat_list([String5a," ",String5a1," ",String5aaa," "],Essay4),
+ delete(Critique,Critique1,Critique2),
+ output_critique(Numbera11,Critique2,String5aaa,Essay4,Essay6)
+),Essay33),
+%%trace,
+(Essay33=[]->concat_list([Essay1%%," "
+],Essay2);%%(Essay33=[Essay3]->concat_list([Essay1," ",Essay3],Essay2);%%(Essay33=[Essay3|[E33]]-> concat_list([Essay1," ",Essay3,E33],Essay2);
+(Essay33=[Essay3|E33], concat_list(E33,E34),concat_list([Essay1,%%" ",
+Essay3,E34],Essay2)))
+%%)
+%%)
+.
+
+
+/**critique(String00,String01,Reasons_per_paragraph,Numbers,Critique).
+ **/
+
+generate_file_name(File1,File2) :-
+ get_time(TS),stamp_date_time(TS,date(Year,Month,Day,Hour1,Minute1,Seconda,_A,_TZ,_False),local),
+ concat_list(["file",Year,Month,Day,Hour1,Minute1,Seconda,".txt"],File1),
+ concat_list(["file",Year,Month,Day,Hour1,Minute1,Seconda,".html"],File2).
+
+
+explain_structure(String01,Reasons_per_paragraph,_File1) :-
+ concat_list(["The Short Essay Helper will automatically structure and write your essay about ",String01," with ",Reasons_per_paragraph," reasons per paragraph.","\n",
+ "The Helper will help write an exposition (which summarises but doesn't critique the idea), a critique (which agrees with or disagrees with the topic), the introduction and the conclusion (which state whether you agreed or disagreed with the topic, etc.). Citations will be automatically made.","\n","Note: Generated essays are not to be handed in, and you need to paraphrase and cite work you have referenced. Your grade depends on whether you agree or disagree and how many breasonings you breason out. Check the referencing style is appropriate for your class.","\n"],String1),
+ writeln(String1).
+
+choose_sentence_range(String00,N2,B,B1,B2,C) :-
+%trace,
+ %length(String00,L),
+ %numbers(L,1,[],N),
+
+ %trace,
+ %writeln1(mind_read(N1,N)),
+ %findall(D1,(member(D2,String00),term_to_atom(D2,D3),string_atom(D1,D3)),D4),
+ %trace,
+ mind_read(A%N1
+ ,%%["[\"ref1\",\"author 2003\",1,1,\"M1\"]"]),%
+ String00),
+ writeln(here2),%% changed from mind_read to random_member
+ %number_string(N1,N11),
+ %term_to_atom(A,N11),
+ %get_item_n(String00,N1,A),
+ A=[B,B1,B2,N2,C].
+ %%N2 is N1+B2-1.
+ %%random_member(A,String00),
+
+exposition(String00,_String01,Reasons_per_paragraph,Numbers,ML_db,Exposition1) :-
+ length(List1,5), %% 5->1 paragraphs per exposition
+ append(List1,_,Numbers),
+ length(List2,Reasons_per_paragraph),
+ append(List2,_,Numbers),
+
+ %%string_codes(String001,String00),
+ %%writeln(String001),
+ findall([Number1,Exposition2],(
+ %%trace,
+member(Number1,List1),%%concat_list(["What is group ",Number1," of 5 in the exposition that groups ideas about ",String01,"? "],String1),%%get_string(String1,either,one-not-ml,"","",%ML_db,Exposition2)
+%% ** Doesn't print this
+%%choose_sentence_range(String00,N_page_ref,String00a1,String00a2,_String00a3,String00a4),
+ choose(N_page_ref,String00a1,String00a2,_String00a3,_String00a4,String00a5),
+ concat_list(["",String00a5," (",String00a2,", p. ",N_page_ref,") "],Exposition2),
+ reference(String00a1)),Exposition3),
+
+
+ findall([Number2,Number3,String3,String3a,String5a,String5],(
+ member(Number2,List1),member(Number3,List2),get_item_n(Exposition3,Number2,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you how the quote you are about to enter relates to the paragraph topic."],String2b),writeln(String2b),
+ %%trace,
+exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5)
+ ),Exposition4),
+ Exposition1=[Exposition3,Exposition4].
+
+exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5):-
+ (%%concat_list(["What is the paragraph number of the quote about the paragraph topic ",Item1,"? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote about the paragraph topic ",Item1,"? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote about the paragraph topic ",Item1,"? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+ %%choose_sentence_range(String00,N_page_ref,String00a1,String00a2,_String00a3,String00a4),
+ choose(N_page_ref,String00a1,String00a2,_String00a3,_String00a4,String00a5),
+ concat_list([Item1," is because ",String00a5," (",String00a2,", p. ",N_page_ref,")."],String5a),
+ reference(String00a1),
+
+ %%concat_list(["How does the quote you entered (",String5a,") relate to the paragraph topic ",Item1,"? "],String4),
+ %%trace,
+ %%SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",%%downcase_atom(Item1,String41a),split_string(String41a, SepandPad, SepandPad, Item1a),
+
+ %%get_string(String4,either,one-not-ml,Item1a,String3aa,String5)
+
+ %%choose_sentence_range(String00,N_page_ref1,String00a11,String00a21,_String00a31,String00a41),
+ choose(N_page_ref1,String00a11,String00a21,_String00a31,_String00a41,String00a51),
+ concat_list([Item1," is because \"",String00a51,"\" (",String00a21,", p. ",N_page_ref1,")."],String5),
+ reference(String00a11)
+)
+ ->true;exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5).
+
+%% Agree or disagree
+
+critique(String00,String01,Reasons_per_paragraph,Numbers,ML_db,Critique1) :-
+ length(List1,5), %% 5->1 paragraphs per critique
+ append(List1,_,Numbers),
+ length(List2,Reasons_per_paragraph),
+ append(List2,_,Numbers),
+
+ %%string_codes(String001,String00),
+ %%writeln(String001),
+
+ retractall(critique3(_)),
+ assertz(critique3([])),
+
+
+ findall([Number2a,Critique2],(
+%% Reason 1
+
+member(Number2a,List1),
+%%List1=[Number2a|List1a],
+List2=[Number3a|List2a],
+%%trace,
+
+
+critique_reason1(String00,String01,Number2a,Number3a,Reasons_per_paragraph,ML_db,Critique3,Topic_paragraph_link),
+
+critique_reasons_2_to_n(String00,Number2a,List2a,Critique3,Reasons_per_paragraph,ML_db,Critique4),
+
+ append_list2([[Topic_paragraph_link],Critique3,Critique4],Critique2)),Critique1).
+
+ critique_reason1(String00,String01,Number2a,Number3a,Reasons_per_paragraph,ML_db,Critique3,Topic_paragraph_link) :-
+
+ %%member(Number2,List1),member(Number3,List2),
+ %%get_item_n(Critique3,Number2a,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you for your comment on the quote you are about to enter."],String2b),writeln(String2b),
+ %% Later: connections
+
+ %%trace,
+critique2(String00,String01,ML_db,String3,String3a,String5a,_String3y2,String3ay,String5a1,Topic_paragraph_link),
+ %%),Critique4).
+ Critique3=[[Number2a,Number3a,String3,String3a,String5a,_String3y3,String3ay,String5a1]].
+
+critique2(String00,String01,ML_db,String3,String3a,String5a,String3y,String3ay,String5a1,Topic_paragraph_link):-
+ (%%concat_list(["What is the paragraph number of the quote to comment on? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote to comment on? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote to comment on? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+
+ %%choose_sentence_range(String00,N_page_ref1,String00a11,String00a21,_String00a31,String00a41),
+ choose(N_page_ref1,String00a11,String00a21,_String00a31,_String00a41,String00a51),
+ concat_list(["\"",String00a51,"\" (",String00a21,", p. ",N_page_ref1,")."],String5a),
+ reference(String00a11),
+
+ %%concat_list(["Is your comment from a quote (y/n)? "],String2yn),get_string(String2yn,either,one-not-ml,"","",String3yn),
+
+ %%agree_disagree(Pole),
+
+ (%%String3yn="y"
+ true->
+ (%%concat_list(["What is the paragraph number of the comment? "],String2y),get_number(String2y,String3y),
+ %%concat_list(["What is the sentence number of the comment? "],String2ay),get_number(String2ay,String3ay),
+ %%trace,
+ %%member1a([String3y,String3ay,String3aay],ML_db),
+
+ %% use either original x or paraphrase
+
+ %%concat_list(["What is the comment that is from the quote? "],String4ac),
+ %%trace,
+ %%get_string(String4ac,either,one-not-ml-ref,"",String3aay,String5a1)
+
+ %%choose_sentence_range(String00,N_page_ref2,String00a12,String00a22,_String00a32,String00a42),
+ choose(N_page_ref2,String00a12,String00a22,_String00a32,_String00a42,String00a52),
+ concat_list(["\"",String00a52,"\" (",String00a22,", p. ",N_page_ref2,")."],String5a1),
+ reference(String00a12)
+
+ )
+
+ ;(String3y=0,String3ay=0,
+ %%concat_list(["What is the comment? "],String4ac),%%get_string(String4ac,either,one-not-ml,"","",%%String5a,
+%% String5a1)
+
+ %%choose_sentence_range(String00,N_page_ref3,String00a13,String00a23,_String00a33,String00a43),
+ choose(_N_page_ref3,String00a13,_String00a23,_String00a33,_String00a43,String00a53),
+ concat_list(["\"",String00a53,"\"."],String5a1),
+ reference(String00a13)
+ %%" (",String00a23,", p. ",N_page_ref3,")."
+
+)),
+
+ %%concat_list(["How does the comment ",String5a1," relate to the essay topic ",String01,"? "],Topic_paragraph_link_prompt),
+ %%trace,
+
+ %%downcase_and_split(String5a1,String5a1ds),
+ %%downcase_and_split(String01,String01ds),
+ %%get_string(Topic_paragraph_link_prompt,either,one-not-ml,String5a1ds,String01ds,Topic_paragraph_link)
+
+ string_concat(String5a1_az,".",String5a1), %%choose_sentence_range(String00,N_page_ref4,String00a14,String00a24,_String00a34,String00a44),
+ %%choose(N_page_ref4,String00a14,String00a24,_String00a34,String00a44,String00a54),
+ split_string(String01,"(","(",[String01_a|_]),
+
+ concat_list([String01_a," is because ",String5a1_az,"."%% because of ",String00a54," (",String00a24,", p. ",N_page_ref4,")."
+ ],Topic_paragraph_link)
+ %%reference(String00a14)
+
+ /**
+ %% conn - choose connected comments
+ concat_list(["How does the quote you entered (",String5a,") relate to the paragraph topic ",Item1,"? "],String4),
+ %%trace,
+ SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",downcase_atom(Item1,String41a),split_string(String41a, SepandPad, SepandPad, Item1a),
+
+ get_string(String4,either,two,Item1a,String3aa,String5)
+ **/
+ )
+ ->true;critique2(String00,String01,ML_db,String3,String3a,String5a,String3y,String3ay,String5a1,Topic_paragraph_link).
+
+
+
+critique_reasons_2_to_n(String00,Number2a,List2a,Critique3,Reasons_per_paragraph,ML_db,Critique4) :-
+ retractall(critique3(_)),
+ assertz(critique3(Critique3)),
+%%trace,
+/** critique3(Critique31),
+ append(Critique31,Critique3,Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32)),
+**/
+%%notrace,
+findall([Number2a,Number3a,String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa],(
+ %%member(Number2,List1a),
+ member(Number3a,List2a),
+ %%get_item_n(Critique3,Number2a,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you for your comment on the quote you are about to enter."],String2b),writeln(String2b),
+ %% Later: connections
+
+
+ %%trace,
+critique3(String00,ML_db,%%Critique3,
+String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa)
+
+
+/**
+ trace,
+ critique3(Critique31),
+ append(Critique31,[[String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32))
+**/
+
+),
+ Critique4).
+
+ %%Critique3=[].
+
+critique3(String00,ML_db,%%Critique3,
+String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa):-
+ (%%concat_list(["What is the paragraph number of the quote to comment on? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote to comment on? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote to comment on? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+ %%trace,
+ %%choose_sentence_range(String00,N_page_ref4,String00a14,String00a24,_String00a34,String00a44),
+ choose(N_page_ref4,String00a14,String00a24,_String00a34,_String00a44,String00a54),
+ concat_list(["\"",String00a54,"\" (",String00a24,", p. ",N_page_ref4,")."],String5a),
+ reference(String00a14),
+
+
+ %%concat_list(["Is your comment from a quote (y/n)? "],String2yn),%%get_string(String2yn,either,one-not-ml,"","",String3yn),
+
+ %%agree_disagree(Pole),
+
+ (true->%%String3yn="y"->
+ (%%concat_list(["What is the paragraph number of the comment? "],String2y),get_number(String2y,String3y),
+ %%concat_list(["What is the sentence number of the comment? "],String2ay),get_number(String2ay,String3ay),
+ %%trace,
+ %%member1a([String3y,String3ay,String3aay],ML_db),
+
+ %% use either original x or paraphrase x
+ %%trace,
+ %%concat_list(["What is the comment that is from the quote? "],String4ac),
+ %%trace,
+ %%get_string(String4ac,either,one-not-ml-ref,"",String3aay,String5a1)
+
+ %%choose_sentence_range(String00,N_page_ref5,String00a15,String00a25,_String00a35,String00a45),
+ choose(N_page_ref5,String00a15,String00a25,_String00a35,_String00a45,String00a55),
+ concat_list(["\"",String00a55,"\" (",String00a25,", p. ",N_page_ref5,")."],String5a1),
+ reference(String00a15)
+
+ %%,trace
+ )
+
+ ;(String3y=0,String3ay=0,
+ concat_list(["What is the comment? "],String4ac),
+
+ %% This is never chosen
+ get_string(String4ac,either,one-not-ml,"","",%%String5a,
+ String5a1))),
+ %%*** assertz recurse not findall new critique3 x
+
+
+ %%trace,
+ critique3(Critique31),
+ append(Critique31,[[0,0,String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32)),
+
+ critique3(Critique33),
+
+
+((
+
+
+ %%critique3(Critique3),
+ length(Critique33,LCritique3),
+ %%length(List1,LCritique3),
+ numbers(LCritique3,1,[],List1),
+ %%append(List1,_,Numbers),
+ %%Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+ %%trace,
+
+findall([N," - ",CString5a1,"\n"],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString3,_CString3a,_CString5a,_CString3y,_CString3ay,CString5a1])),CStrings1),
+
+findall([N,CNumber2a,CNumber3a,CString5a1],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString31,_CString3a1,_CString5a1,_CString3y1,_CString3ay1,CString5a1])),CStrings2),
+
+%%trace,
+
+%%CStrings=[CStrings1,CStrings2],
+reverse(CStrings2,CStringsR),CStringsR=[[_,CNumber2a1,CNumber3a1,LastCStrings]|CStringsR1],
+reverse(CStringsR1,CStringsRR),
+
+reverse(CStrings1,CStringsR10),CStringsR10=[_|CStringsR11],
+reverse(CStringsR11,CStringsRR1),
+
+append_list2(CStringsRR1,CStrings11),
+concat_list(CStrings11,_CStrings12),
+%%concat_list(["Please select a comment to connect the comment ",LastCStrings," to:","\n",CStrings12],ConnectionNumberPrompt),
+%%get_number(ConnectionNumberPrompt,ConnectionNumber),
+%numbers(
+
+%% *** Choose phrase which is similar to a previous phrase
+
+%% findall([N," - ",CString5a1,"\n"],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString3,_CString3a,_CString5a,_CString3y,_CString3ay,CString5a1]),
+
+ /**SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",findall([CString5a1Z2,CString5a1Z5],(downcase_atom(CString5a1,CString5a1Z1),atom_string(CString5a1Z1,CString5a1Z2),split_string(CString5a1,SepandPad,SepandPad,CString5a1Z3),
+ Connectors=
+ ["the","a","i","on","with","of","an","for","to",
+ "was","were","and","in","my","from","out","by"],
+ %% find distances between terms, closest to sent
+ subtract(CString5a1Z3,Connectors,CString5a1Z5),
+ ),CString5a1Z4),
+**/
+%trace,
+choose1(List1,ConnectionNumber_aa),
+%number_string(ConnectionNumber,ConnectionNumber_aa),
+ ConnectionNumber=ConnectionNumber_aa,
+ member([ConnectionNumber,CNumber2aa,CNumber3aa,CString5a1a],CStringsRR),
+
+ %%SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",%%downcase_atom(CString5a1a,CString5a1a1),split_string(CString5a1a1, SepandPad, SepandPad, CString5a1a2),
+
+ %%CNumber2a1,CNumber3a1,
+ %%downcase_atom(LastCStrings,LastCStrings_a),split_string(LastCStrings_a, SepandPad, SepandPad, LastCStrings_a1),
+
+
+ %% conn - choose connected comments, this to a previous comment
+ %%trace,
+
+ %%concat_list(["How does ",LastCStrings," connect to ",CString5a1a,"? "],ConnectionPrompt),
+
+ %%get_string(ConnectionPrompt,either,one-not-ml,CString5a1a2,LastCStrings_a1,String5aaa)
+
+ string_concat(LastCStrings_az,".",LastCStrings),
+ string_concat(CString5a1a_az1,".",CString5a1a), %%choose_sentence_range(String00,N_page_ref6,String00a16,String00a26,_String00a36,String00a46),
+
+ split_string(LastCStrings_az,"(","(",[LastCStrings_az_a|_]),
+
+replace(CString5a1a_az1,"\"","",CString5a1a_az),
+replace(LastCStrings_az_a,"\"","",LastCStrings_az_a1),
+choose(_N_page_ref6,String00a16,_String00a26,_String00a36,_String00a46,_String00a56),
+ concat_list([LastCStrings_az_a1," because ",CString5a1a_az,"."%%" because ",String00a56," (",String00a26,", p. ",N_page_ref6,")."
+ ],String5aaa),
+ reference(String00a16)
+
+
+ )->true;(
+
+ %% If the section since updating dynamic critique comments fails, prevent doubling of critique comments
+
+ critique3(Critique311),
+ reverse(Critique311,Critique312),
+ Critique312=[_|Critique313],
+ reverse(Critique313,Critique314),
+ retractall(critique3(_)),
+ assertz(critique3(Critique314)),fail
+
+ ))
+
+/** Critique4=[String3,String3a,String5a,String3y,String3ay,String5a1,
+ CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa],
+ **/
+ /**
+ critique3(Critique31),
+ append(Critique31,[[String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32))
+**/
+
+ )
+ %% Retries the predicate if it fails
+ ->true;critique3(String00,ML_db,%%Critique3,
+ String3,String3a,String5a,String3y,String3ay,String5a1,
+ CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa
+ ).
+
+
+
+
+member1a([String3,String3a,String3aa],ML_db) :-
+ member([String3,String3a,String3aa],ML_db),!.
+
+
+get_item_n(Exposition,Number1,Item) :-
+ Number2 is Number1-1,
+ length(List,Number2),
+ append(List,[Item|_],Exposition).
+
+get_number(Prompt1,Number) :-
+ %%concat_list(Prompt1,Prompt2),
+ (%%repeat,
+ writeln(Prompt1),read_string(user_input, "\n", "\r", _End1, String),split_string(String, ",", " ", Value1),Value1=[Value2],number_string(Number,Value2)).
+
+
+/**
+get_string(Prompt1,String1) :-
+ concat_list(Prompt1,Prompt2),
+ (repeat,write(Prompt2),read_string(String1),not(String1="")).
+**/
+
+equals_empty_list([]).
+
+downcase_and_split(String1, String2) :-
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ downcase_atom(String1,String3),split_string(String3, SepandPad, SepandPad, String2).
+
+get_string(Prompt2,Flag1,Flag2,ML_db0,ML_db1,String2) :-
+%%writeln1(get_string(Prompt2,Flag1,Flag2,ML_db1,String2)),
+ %%concat_list(Prompt1,Prompt2),
+ %%trace,
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ %%(repeat,
+ (Flag2=one-not-ml-ref->(concat_list(["Note: Enter in-text reference using AGPS, e.g.\n","The first work supports the second work (Surname 2000, pp. 18-9).\n","Surname (2000, pp. 18-9) states that ...\n","Remember to use words like \"also\", \"moreover\" and \"in addition\" before the sentence."],String_a1),writeln(String_a1));true),
+ writeln(Prompt2),read_string(user_input, "\n", "\r", _End2, String2aa),%%not(String2aa=""),
+ %%String2aa=[String2aaa],
+ downcase_atom(String2aa,String3),split_string(String3, SepandPad, SepandPad, String4),
+ Neg_term_list=["no","not","don","t","shouldn","wouldn","disagree","differ","dislikes","disagrees","differs","dislikes","disagreed","differed","disliked","negative","negation","non","negate","negates","negated","but","however","isn","lack"],
+ (Flag1=%%non_negative
+ positive->(
+
+ (findall(Item11,(
+
+ member(Item1,String4),
+ findall(Item1,(
+member(Item2,Neg_term_list),(Item1=Item2->(write("Error: Contains the negative term \""),write(Item1),writeln("\".")))),Item11)),Item12)),
+
+maplist(equals_empty_list,Item12)
+
+);
+ ((Flag1=negative->((member(Item1,String4),member(Item1,Neg_term_list))->true;(writeln("Error: Contains no negative term, one of:"),writeln(Neg_term_list),fail));true)->true;Flag1=either)),
+ (Flag2=one-not-ml->String2=String2aa;
+ (Flag2=one-not-ml-ref->
+ (refs(R1),writeln("What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.\n"),writeln("Existing references (copy one or many delimited with \"\\n\"):"), findall(_,(member(R11,R1),writeln(R11)),_),read_string(user_input, "\n", "\r", _End3, String2r),not(String2r=""),%%downcase_atom(String2r,_String3r),
+ String2=String2aa,split_string(String2r,"\n\r","\n\r",String2r3),
+ %%trace,
+ retractall(refs(_)),maplist(append,[[R1,String2r3]],[String2r21]),
+ sort1(String2r21,String2r2),
+ assertz(refs(String2r2))%%split_string(String3r, SepandPad, SepandPad, String4)
+ );
+(Flag2=one->(%%split_string(String4,SepandPad,SepandPad,String21),
+ writeln("Attempt 1"),
+
+ (length(String4,Length_string1),
+(check_strings_container1(Length_string1,String4,[0,0,ML_db1],[[0,0,[xxx,xxx,xxx,xxx,xxx]],[0,0,ML_db1],[999,999,[]]],_,_List2)->
+ writeln("Success");(writeln("Failed"),fail))
+ %%(%%data_instance_k_classification1([[0,0,[xxx,xxx,xxx,xxx,xxx]],[0,0,ML_db1]%%,[999,999,[]]
+ %%],[0,0,String4]%%21
+ %%,1,String4a%%21
+ %%),
+ %%String4=String4a)
+ %%)->
+ %%(%%String4a=[_,_,String4a1],
+ %%writeln([found,String4a,String4]),
+%%writeln("Success"));
+ %%(writeln("Failed"),fail)
+ %%
+ ));
+ (Flag2=%%[
+ two,%%,P1,S1,P2,S2],
+ %%trace,
+ append([ML_db0],[ML_db1],ML_db2),
+ check_strings(String4,ML_db2%%,P1,S1,P2,S2
+ ))))).
+
+reference(String2r) :-
+ (refs(R1),%%writeln("What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.\n"),writeln("Existing references (copy one or many delimited with \"\\n\"):"),
+ findall(_,(member(R11,R1),writeln(R11)),_),%%read_string(user_input, "\n", "\r", _End4, String2r),
+ not(String2r=""),%%downcase_atom(String2r,_String3r),
+ %%String2=String2aa,
+ split_string(String2r,"\n\r","\n\r",String2r3),
+ %%trace,
+ retractall(refs(_)),maplist(append,[[R1,String2r3]],[String2r21]),
+ sort1(String2r21,String2r2),
+ assertz(refs(String2r2))%%split_string(String3r, SepandPad, SepandPad, String4)
+ ).
+
+
+%% Sorts by first surname then title in AGPS
+
+sort1(List1,List2) :-
+ findall([C,B],(member(B,List1),downcase_atom(B,D),atom_string(D,C)),E),sort(E,F),findall(G,member([_,G],F),List2).
+
+
+prepare_file_for_ml(String000,String021) :-
+ string_codes(String001,String000),
+ downcase_atom(String001,String00),
+ split_string(String00, "\n\r", "\n\r", String01),
+ delete(String01,"",String02),
+ findall(String03,(member(String02a,String02),split_string(String02a,".",".",String04),
+ ((String04=[String05|String06],
+ number_string(Number05,String05),
+ number_sentences(Number05,1,String06,[],String03))->true;
+ (findall(String08,
+ (SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ member(String04a,String04),split_string(String04a,SepandPad,SepandPad,String09),
+ append_list([[""],"",String09],String08)),String03)))),String0211),
+ append_list2(String0211,String021).
+
+number_sentences(_,_,[],String,String) :- !. number_sentences(Number_a,Number_b1,String06,String07,String08) :-
+ String06=[String00|String12],
+
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ split_string(String00,SepandPad,SepandPad,String09),
+ append_list([[Number_a],Number_b1,String09],String10),
+ append(String07,[String10],String11),
+ Number_b2 is Number_b1 + 1,
+ number_sentences(Number_a,Number_b2,String12,String11,String08).
+
+
+data_instance_k_classification1(Data,I,K,C):-
+ maplist(o_oclass_disClass1(I),Data,DisAndClass),
+ keysort(DisAndClass,DSorted),
+
+ %%writeln(DSorted),
+
+ length(TopK,K),
+ append(TopK,_,DSorted),
+ %This is not a very good way of selecting k as you may have many values with the same distance, and the sorting just cuts these off
+ %Dsorted = [1-pos,3-pos,3-pos,3-neg,3-neg]
+ %Topk =[1-pos,3-pos,3-pos]
+ topk_vote(TopK,C).
+
+o_oclass_disClass1(O,[A,B,O2],D-[A,B,O2]):-
+ o_o_dis(O,O2,D).
+
+%% could be in either order
+%% a([w,z,a,b,e,c,z,y],[1,1,[c]],[1,2,[a]]).
+
+%% true
+%% a([a,c,b],[1,1,[a,d]],[1,2,[b]]).
+%% a([a,c,b],[1,1,[a,c]],[1,2,[b]]).
+%% a([a,b],[1,1,[a]],[1,2,[b]]).
+
+%% false
+%% a([c,d],[1,1,[a]],[1,2,[b]]).
+
+%% q in "q a b" sends food like e in "c d e"
+
+/**
+
+[debug] ?- a([q,e,r,a,t,y,u,q,e,r,a,t,y,u,c,b,x,v,n,m],[1,1,[c,a,t,y,u]],[1,2,[c,a,t,y,u]]). [[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[c,a,t,y,u]],[r,a,t,y,u]]
+true.
+
+X:
+[debug] ?- a([q,e,r,a,t,y,u,c,b,x,v,n],[1,1,[c,a,t,y,u]],[1,2,[b,x,u]]).
+[[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[b,x,u]],[c,b,x]]
+true.
+
+[debug] ?- a([q,e,r,a,t,y,u,c,c,c,b,x,v,n],[1,1,[c,a,t,y,u]],[1,2,[b,x,v]]). [[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[b,x,v]],[c,c,c]]
+true.
+
+**/
+
+check_strings(String1,ML_db) :-
+ %%member([P1,S1,String2],ML_db),
+ %%member([P2,S2,String3],ML_db),
+ ML_db=[String2a,String3a],
+%%writeln(["String1,String2a,String3a",String1,String2a,String3a]),
+ String2=[0,0,String2a],
+ String3=[0,0,String3a],
+%%a(String1,String2,String3):-
+ length(String1,Length_string1),
+((writeln("Attempt 1"),
+check_strings_container1(Length_string1,String1,String2,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String2,[999,999,[]]],_,List2),
+ length(List2,Length_list2),
+ %%Length_list3 is Length_list2+1,
+ %%writeln(here),
+ check_strings_container1(Length_list2,List2,String3,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String3,[999,999,[]]],_,_List3),
+ writeln("Success")
+ %%,trace
+ )->true;
+ (writeln("Failed"),
+ writeln("Attempt 2"),
+ ((check_strings_container1(Length_string1,String1,String3,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String3,[999,999,[]]],_,List2),
+ length(List2,Length_list2),
+ %%Length_list3 is Length_list2+1,
+ %%writeln(here),
+
+ check_strings_container1(Length_list2,List2,String2,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String2,[999,999,[]]],_,_List3))->
+ writeln("Success");(writeln("Failed"),fail)))
+).
+
+check_strings_container1(Length_string1,String1,String2,Db,List2,List2b) :-
+check_strings1(Length_string1,String1,String2,Db,List2,List2b),not(var(List2b)).
+%%check_strings_container2(Length_string1,Length_string3,List1,String2,Db,List2,List2b) :-
+%%check_strings2(Length_string1,Length_string3,List1,String2,Db,List2,List2b),not(var(List2b)).
+
+
+ %% finds the length of each string - from position 1 to (length of string1) of string1
+ %% starts with the shortest possible string, then increases the length
+ %% repeat this for second string
+ %%string1
+
+ %%*** check with s2,s3 in db
+check_strings1(0,_String1,_String2,_Db,List2,List2) :- !.
+check_strings1(Length_string1,String1,String2,Db,List2,List2b) :-
+ %% finds the first str
+ %%length(List,Index),
+ length(List1,Length_string1),
+ append(_,List1,String1),
+ Length_string2 is Length_string1-1,
+ Length_string3 is Length_string1+1,
+ check_strings2(0,Length_string3,List1,String2,Db,List2,List2c),
+ (var(List2c)->
+ check_strings1(Length_string2,String1,String2,Db,List2c,List2b);List2c=List2b),!.
+
+check_strings2(Length_string,Length_string,_String1,_String2,_Db,List2,List2) :- !.
+check_strings2(Length_string1,Length_string3,List1,String2,Db,List2,List2b) :-
+
+
+ %%split_string(String4,SepandPad,SepandPad,String21),
+
+ %% go through s1, removing the first word each time, until v
+ %%Length_string11 is Length_string1-1,
+ length(List11,Length_string1),
+ append(List11,List2,List1),
+ Length_string2 is Length_string1+1,
+
+%%writeln([list11,List11]),
+
+ ((%%trace,
+ %%(List11=[z,a,b]->trace;true),
+ %%writeln([[_,_,List11],String2]),
+ %%notrace,
+ not(List11=[]),
+
+%%writeln(data_instance_k_classification1(Db
+%% ,List11,1,A)),
+ data_instance_k_classification1(Db
+ %%String2
+ ,List11,1,A),
+ %%writeln([string2,String2,list11,List11,a,A]),
+A=String2,%%[_,_,List11],
+ %%trace,
+
+ %%((List11=[z,a,b],A=[_,_,[z,t,b]],not(String2=[_,_,[c,z]]))->trace;notrace),
+ %%trace,
+%%writeln([string2=list11,String2=List11]),
+%%(List11=[y]->true%%trace
+%%;true),
+%%member(List11,Db),
+ %%**String2=[_,_,List11]
+ List2b=List2,%%,notrace
+ String2=[_,_,String21]
+ ,writeln([found,String21,List11])
+ )
+ ->(true
+ %%,writeln(List11)
+ );
+ check_strings2(Length_string2,Length_string3,List1,String2,Db,_List2c,List2b)),!.
+
+numbers(N2,N1,Numbers,Numbers) :-
+ N2 is N1-1,!.
+numbers(N2,N1,Numbers1,Numbers2) :-
+ N3 is N1+1,
+ append(Numbers1,[N1],Numbers3),
+ numbers(N2,N3,Numbers3,Numbers2).
+
+concat_list2A(A1,B):-
+ A1=[A|List],
+ concat_list2A(A,List,B),!.
+
+concat_list2A(A,[],A):-!.
+concat_list2A(A,List,B) :-
+ List=[Item|Items],
+ string_concat(A,Item,C),
+ concat_list2A(C,Items,B).
+
+findbest(R,R) :-!.
+findbest2(R,Item):-
+ sort(R,RA),
+ reverse(RA,RB),
+ RB=[[_,Item]|_Rest].
diff --git a/Essay-Helper/short_essay_helper3.1_agps-mr.pl b/Essay-Helper/short_essay_helper3.1_agps-mr.pl
new file mode 100644
index 0000000000000000000000000000000000000000..5c90194bbd539af4d487a3b90d16e6cd80a6e428
--- /dev/null
+++ b/Essay-Helper/short_essay_helper3.1_agps-mr.pl
@@ -0,0 +1,1285 @@
+%% backdated from this - which has no repeats and forward progress through essays, but has a bug in numbering pages in references, so backdated to version with repeats and random progress, made forward progress x kept this version and solved bug with pg info in db
+
+%% Prolog Short Essay Helper
+
+%% Keep 1,2,3 in aphors
+%% Certain number of reasons per paragraph
+%% Explains essay structure at start
+%% Exposition (negative terms not allowed, asks for 5 groups from text to take optionally enough notes about, which can revise) and critique
+%% Paraphrasing
+%% Converts x, explains x, asks about
+%% Allows citation of aphor
+%% Prints citations used so far
+%% Prints chapter, essay and allows changes (using text editor) at end.
+%% Outputs db file and br dicts for marking later
+
+%% *** Rewrite essay files with e.g. 1a. before aphors not 1. so not confused with aphors
+
+%% short_essay_helper("file.txt",5,E),writeln1(E).
+
+%%:- include('distances.pl').
+:- use_module(library(date)).
+:- include('../listprologinterpreter/la_strings').
+:- include('texttobr2qb.pl').
+:- include('sheet_feeder.pl').
+
+:- dynamic critique3/1.
+:- dynamic agree_disagree/1.
+:- dynamic refs/1.
+:- dynamic chosen_quotes/1.
+:- dynamic string00_z/1.
+
+choose(N2,B,B1,B2,C,Item) :-
+%%trace,
+(
+ choose2(N2,B,B1,B2,C,Item)->true;(Item="* All quotes exhausted. (*)"),N2=0,B="()",B1="()",B2=0,C=""),
+ %%notrace,
+ !.
+choose2(N2,B,B1,B2,List0,List0) :-
+%%trace,
+ string00_z(String00),
+ choose_sentence_range(String00,N1,B,B1,B2,List0),
+ %%chosen_quotes(Chosen_quotes1),
+ %%trace,
+ %%length(List0,L),
+ %%numbers(L,1,[],N),
+ %%random_
+ %%member(N1,N),
+ %%
+ %%random_
+ %%mind_read([N1,Item10],List0),
+
+ %%random_
+ %%mind_read(Item1,Item10),
+ N2 is N1+B2-1,
+ %%get_item_n(List0,N1,Item10),
+
+
+ %%**string_codes(Item10,List),
+ %%notrace,
+ %%**split_string(List,".\n",".\n",List2),
+
+ %%length(List2,L),
+ %%numbers(L,1,[],N),
+ %%random_
+ %%member(N1,N),
+ %%N2 is N1+B2-1,
+ %%random_
+ %%**member(Item1,List2),
+
+ %%get_item_n(List2,N1,Item1),
+ /**
+ string_concat(E,D,Item1),
+ string_length(E,1),
+ downcase_atom(E,E1),
+ atom_string(E1,E2),
+ string_concat(E2,D,Item2),
+ string_length(E2,1),
+ string_concat(Item2,""%%"."
+ ,Item),
+ **/
+ delete(String00,[B,B1,B2,N1,List0],String00_a),
+ %%**delete(String00,[B,B1,B2|_],String00_a),
+ %%**delete(List0,[N1,Item10],List6),
+ %%findall([Item3,". "],(member(Item3,List2)),List3),
+ %%maplist(append,[List3],[List4]),
+ %%concat_list(List4,_List5),
+ %%append(List6,[]%%List5
+ %%,List7),
+ %%**(List6=[]->String00_b=String00_a;
+ %%**(%%trace,
+ %%**maplist(append,[[[B,B1,B2],List6]],[String00_c]),
+ %%**append(String00_a,[String00_c],String00_b)%%,notrace
+ %%**)),
+ retractall(string00_z(_)),
+ assertz(string00_z(String00_a))
+ %%trace,
+ %%writeln1(String00_b),notrace
+
+
+ %%,not(member(Item,Chosen_quotes1)),
+ %%append(Chosen_quotes1,[Item],Chosen_quotes2),
+ %%retractall(chosen_quotes(_)),
+ %%assertz(chosen_quotes(Chosen_quotes2))
+ .
+
+choose1(List0,Item) :-
+ mind_read(Item,List0).
+
+delete_invisibles_etc(F,G) :-
+ findall(J,(member(H,F),atom_string(H,J),not(J="."),not(J=".."),not(string_concat(".",_,J))),G).
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+short_essay_helper(%%Filex,
+ String01,Key_words,
+ Reasons_per_paragraph) :-
+ retractall(string00_z(_)),
+ %%assertz(string00_z([])),
+
+ retractall(critique3(_)),
+ assertz(critique3([])),
+
+ retractall(refs(_)),
+ assertz(refs([])),
+
+ retractall(chosen_quotes(_)),
+ assertz(chosen_quotes([])),
+
+ directory_files("sources/",F),
+ delete_invisibles_etc(F,G),
+%%trace,
+SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",
+ findall(String02h3,(member(Filex1,G),
+ string_concat("sources/",Filex1,Filex),
+ phrase_from_file_s(string(String00a), Filex),
+ string_codes(String02b,String00a),
+ atom_to_term(String02b,String02a,[]),
+
+ (String02a=[Az,Bz,Cz|String02c]->true;
+ (concat_list(["Error: ",Filex," not in format [\"Surname, A 2000, Title: Subtitle, Publisher, City.\",\"Surname, A 2000\",First_Page_Num,\"\",\"\",...\"]"],Notification1),writeln(Notification1),abort)),
+ %%String02c=String02d,
+ %%trace,
+ findall([Az,Bz,Cz,N1,String02cb],(
+
+ length(String02c,L),
+ numbers(L,1,[],N),
+ %%random_
+ member(N1,N),
+ get_item_n(String02c,N1,String02ca),
+
+ %%member(String02ca,String02c),
+ split_string(String02ca, ".\n\r", ".\n\r", String02cb)
+
+ %%member(String02cb1,String02cb)
+
+ ),String02cc),
+ %%maplist(append,[String02cc],[String02d]),
+
+ %%delete(String02cc,[_,[]],String02d),
+ String02cc=String02d,
+
+ findall([Az,Bz,Cz,N2,String02d2],(member([Az,Bz,Cz,N2,String02d1],String02d),
+ member(String02d2,String02d1),
+ downcase_atom(String02d2,String02e),
+ atom_string(String02e,String02f1),
+ split_string(String02f1, SepandPad, SepandPad, String02e1),
+ findall(String02g,(member(Key_words1,Key_words),
+ %%trace,
+ downcase_atom(Key_words1,Key_words11),
+ atom_string(Key_words11,Key_words12),
+findall(Key_words12,(member(Key_words12,String02e1)),String02g)
+ ),String02i),
+ not(maplist(equals_empty_list,String02i))
+
+ ),String02h31),
+
+ sort(String02h31,String02h3)
+
+ %%prepare_file_for_ml(String00,String02a)
+ ),String00z1),
+ %%,
+
+ %%** findall(String02h2,(member([Ay,By,Cy,String02h1],String00z1),
+ %%**(String02h1=[]->String02h2=[];
+ maplist(append,[String00z1],[String00]),%%**)
+ %%**),String00z),
+
+%%delete(String00z,[],String00),
+
+
+term_to_atom(Key_words,Key_words_a),
+atom_string(Key_words_a,Key_words_b),
+ (String00=[]->(concat_list(["Error: No files in source folder or no instances of keywords ",Key_words_b," in files in source folder."],Notification2),writeln(Notification2),abort);true),
+
+ %%maplist(append,[[String00z1]],String00),
+%%maplist(append,[String00z],String00),
+ %%trace,
+assertz(string00_z(String00)),
+ %%writeln1(String00),
+ %%notrace,
+
+%%writeln1(String02),
+
+
+ generate_file_name(File1,File2),
+
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+ explain_structure(String01,Reasons_per_paragraph,File1),
+ exposition(String00,String01,Reasons_per_paragraph,Numbers,String02,Exposition),
+
+ %%concat_list(["Do you agree or disagree with ",String01," (a/d) ? "],String2ad),%%get_string(String2ad,either,one-not-ml,"","",String3ad),
+ choose1(["a"%%,"d"
+ ],String3ad),
+
+ (String3ad="a"->
+ (retractall(agree_disagree(_)),
+ assertz(agree_disagree(agree)));
+ (retractall(agree_disagree(_)),
+ assertz(agree_disagree(disagree)))),
+
+
+critique(String00,String01,Reasons_per_paragraph,Numbers,String02,Critique),
+
+agree_disagree(Pole),
+
+ %%concat_list(["What is the future area of research from your essay about ",String01,"? "],Future_research_prompt),
+ %%trace,
+ %%get_string(Future_research_prompt,either,one-not-ml,"","",Future_research),
+%% choose_sentence_range(String00,),
+ choose(N_page_ref,String00a1,String00a2,_String00a3,_String00a4,String00a5),
+ concat_list(["In ",String01,", automation should apply to \"",String00a5,"\" (",String00a2,", p. ",N_page_ref,")."],Future_research),
+ reference(String00a1),
+
+ refs(R2),
+
+term_to_atom([Exposition,Critique,String3ad,Future_research,R2],File_contents),open_s(File1,write,Stream),write(Stream,File_contents),close(Stream),
+
+%% Output essay
+%%findall(_,(member(Exposition1,Exposition),Exposition1=
+
+
+%%writeln1([Exposition,Critique,Future_research,R2]),
+
+write_essay(String01,Pole,Exposition,Critique,Future_research,R2,Essay,HTML),
+writeln1(Essay),
+
+ (open_s(File2,write,Stream1),
+%% string_codes(BrDict3),
+ write(Stream1,HTML),
+ close(Stream1)),!
+ .
+
+%% replace("a\nb","\n"," \n",F).
+%% F="a \nb \n".
+
+replace(A,Find,Replace,F) :-
+ split_string(A,Find,Find,B),findall([C,Replace],(member(C,B)),D),maplist(append,[D],[E]),concat_list(E,F).
+
+concat_list1(D,F) :-
+ maplist(append,[D],[E]),concat_list(E,F).
+
+write_essay(String01,Pole,Exposition,Critique,Future_research,R2,Essay,HTML) :-
+ write_heading(String01,Heading),
+ write_introduction(String01,Pole,Critique,Introduction),
+ write_exposition(Exposition,Exposition2a),
+ concat_list(["I will expose ",String01," in this half. ",Exposition2a],Exposition2),
+ %%string_concat(Exposition2,"\n",Exposition2a),
+ write_critique(Critique,Critique2a),
+ string_concat(Critique2a,"\n",Critique2b),
+ atom_string(Pole,Pole1),
+ concat_list(["I will ",Pole1," with ",String01," in this half. ",Critique2b],Critique2),
+ write_conclusion(String01,Pole,Critique,Future_research,Conclusion),
+ write_references(R2,References,Refs_no_heading),
+ concat_list([Heading,Introduction,Exposition2,Critique2,Conclusion,References],
+ Essay),
+ concat_list([Introduction,Exposition2,Critique2,Conclusion],
+ Essay2),
+ replace(Essay2,"\n"," ",HTML1),
+ replace(Refs_no_heading,"\n"," ",Refs_no_heading2),
+ concat_list(["",String01,"
",
+ String01,"
",HTML1,"
Bibliography
",Refs_no_heading2,""],HTML).
+
+write_heading(String01,Heading) :-
+ concat_list([String01,"\n","\n"],Heading).
+
+write_introduction(String01,Pole1,Critique,Introduction) :-
+ %% The heading should be in the form "Author's topic"
+ atom_string(Pole1,Pole2),
+ findall([Paragraph_topic_sentence," "],(member(A,Critique),A=[_,[Paragraph_topic_sentence|_]|_]),Paragraph_topic_sentences1),
+ concat_list1(Paragraph_topic_sentences1,Paragraph_topic_sentences2),
+ concat_list(["I will critically analyse ",String01,". ",
+ "I will ",Pole2," with ",String01,". ",
+ Paragraph_topic_sentences2,"\n\n"],Introduction).
+
+write_conclusion(String01,Pole1,Critique,Future_research,Conclusion) :-
+ atom_string(Pole1,Pole2),
+ findall([Paragraph_topic_sentence," "],(member(A,Critique),A=[_,[Paragraph_topic_sentence|_]|_]),Paragraph_topic_sentences1),
+ concat_list1(Paragraph_topic_sentences1,Paragraph_topic_sentences2),
+ concat_list([
+ Paragraph_topic_sentences2,
+ "I have ",Pole2,"d with ",String01,". ",
+ Future_research,"\n\n"
+ ],Conclusion).
+
+write_references(R2,References,Refs_no_head) :-
+ findall([Reference,"\n"],member(Reference,R2),References1),
+ concat_list1(References1,References2),
+ concat_list([References2],Refs_no_head),
+ concat_list(["Bibliography","\n\n",References2],References).
+
+%%a1
+%% write_exposition([[[1,"g1"]],[[1,1,_15410,_15416,"a1","a1 is in g1."],[1,2,_15352,_15358,"a2","g1 contains a2."]]],A),writeln1(A).
+%% A = "a1 a1 is in g1. a2 g1 contains a2. ".
+
+%% write_exposition([[[1,"g1"],[1,"g1"]],[[1,1,_15410,_15416,"a1","a1 is in g1."],[1,2,_15352,_15358,"a2","g1 contains a2."],[1,1,_15410,_15416,"a1","a1 is in g1."],[2,2,_15352,_15358,"a2","g1 contains a2."]]],A).
+%% A = "a1 a1 is in g1. a2 g1 contains a2. a1 a1 is in g1. a2 g1 contains a2. ".
+
+write_exposition(Exposition,Essay4b) :-
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+
+Exposition=[_,Exposition2],
+
+
+findall([Essay4c%%,"\n"
+],(member(Numbera11,Numbers),
+
+
+%% not "" with findall
+findall(Essay4,(
+%%member(Exposition1,Exposition),
+%%Exposition1=[Numbera11,_Number3a,_String3,_String3a,String5a,String3y,_String3ay,String5a1,_CNumber2aa,_CNumber3aa,CString5a1a,_CNumber2a1,_CNumber3a1,_LastCStrings,String5aaa],
+
+
+%%output_exposition(Numbera11,Exposition2,"",Essay1),
+
+ %%findall( Essay4,(
+ member(Exposition1,Exposition2),Exposition1=[Numbera11,_Number3a,_String3,_String3a,String5a,Group_link],
+ concat_list([String5a," ",Group_link," "],Essay4)
+ %%delete(Exposition,Exposition1,Exposition2)
+ %%output_exposition(Numbera11,Exposition2,Essay4,Essay6)
+),Essay4a),
+concat_list(Essay4a,Essay4c1),%%trace,
+(Essay4c1=""->Essay4c="";concat_list([Essay4c1,"\n"],Essay4c))
+
+),Essay4d),
+
+maplist(concat_list,Essay4d,Essay4f),
+concat_list(Essay4f,Essay4b)
+%%concat_list([Essay4e,"\n"],Essay4b)
+%%concat_list([Essay1," ",Essay3],Essay2),
+ %%concat_list([Essay2,"\n"],Essay23))
+%%,Essay3a),
+ %%concat_list(Essay3a,Essay4a)
+.
+%% *** HTML ( not \n)
+
+%%%%%
+%%a
+
+%% write_critique([[1,["heading is e12",[1,1,_25346,_25352,"e1",_25370,_25376,"e12"],[1,2,_25412,_25418,"e2",_25436,_25442,"e22",1,1,"e12",0,0,"e22","e12 is e22"]]]],A),writeln1(A).
+%% A = "heading is e12 e1 e12 e2 e22 e12 is e22 \n".
+
+write_critique(Critique,Essay4):-
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+
+findall(Essay23,(member(Numbera11,Numbers),
+
+%% not "" with findall
+%%findall(Essay22,(
+member(Critique1,Critique),
+%%Critique1=[Numbera11,_Number3a,_String3,_String3a,String5a,String3y,_String3ay,String5a1,_CNumber2aa,_CNumber3aa,CString5a1a,_CNumber2a1,_CNumber3a1,_LastCStrings,String5aaa],
+
+Critique1=[Numbera11,[Para_topic_sent,[_Number2a,_Number3a,_String3,_String3a,String5a,_String3y,_String3ay,String5a1]|Critique2]],
+
+concat_list([Para_topic_sent," ",String5a," ",String5a1," "],Essay0),output_critique(Numbera11,Critique2,String5a1,Essay0,Essay1),
+
+ concat_list([Essay1,Para_topic_sent,"\n"],%%Essay22)
+
+%%),
+Essay23)),Essay3),
+ concat_list(Essay3,Essay4)
+.
+%% *** HTML ( not \n)
+
+output_critique(_Numbera11,[],_String5a1a,Essay,Essay) :- !.
+output_critique(Numbera11,Critique,CString5a1a,Essay1,Essay2) :-
+findall( Essay6,(member(Critique1,Critique),Critique1=[Numbera11,_Number3a,_String3,_String3a,String5a,_String3y1,_String3ay,String5a1,
+_CNumber2aa,_CNumber3aa,CString5a1a,
+ _CNumber2a1,_CNumber3a1,_LastCStrings,
+ String5aaa],
+ concat_list([String5a," ",String5a1," ",String5aaa," "],Essay4),
+ delete(Critique,Critique1,Critique2),
+ output_critique(Numbera11,Critique2,String5aaa,Essay4,Essay6)
+),Essay33),
+%%trace,
+(Essay33=[]->concat_list([Essay1%%," "
+],Essay2);%%(Essay33=[Essay3]->concat_list([Essay1," ",Essay3],Essay2);%%(Essay33=[Essay3|[E33]]-> concat_list([Essay1," ",Essay3,E33],Essay2);
+(Essay33=[Essay3|E33], concat_list(E33,E34),concat_list([Essay1,%%" ",
+Essay3,E34],Essay2)))
+%%)
+%%)
+.
+
+
+/**critique(String00,String01,Reasons_per_paragraph,Numbers,Critique).
+ **/
+
+generate_file_name(File1,File2) :-
+ get_time(TS),stamp_date_time(TS,date(Year,Month,Day,Hour1,Minute1,Seconda,_A,_TZ,_False),local),
+ concat_list(["file",Year,Month,Day,Hour1,Minute1,Seconda,".txt"],File1),
+ concat_list(["file",Year,Month,Day,Hour1,Minute1,Seconda,".html"],File2).
+
+
+explain_structure(String01,Reasons_per_paragraph,_File1) :-
+ concat_list(["The Short Essay Helper will automatically structure and write your essay about ",String01," with ",Reasons_per_paragraph," reasons per paragraph.","\n",
+ "The Helper will help write an exposition (which summarises but doesn't critique the idea), a critique (which agrees with or disagrees with the topic), the introduction and the conclusion (which state whether you agreed or disagreed with the topic, etc.). Citations will be automatically made.","\n","Note: Generated essays are not to be handed in, and you need to paraphrase and cite work you have referenced. Your grade depends on whether you agree or disagree and how many breasonings you breason out. Check the referencing style is appropriate for your class.","\n"],String1),
+ writeln(String1).
+
+choose_sentence_range(String00,N2,B,B1,B2,C) :-
+ length(String00,L),
+ numbers(L,1,[],N),
+ mind_read(N1,N),
+ get_item_n(String00,N1,A),
+ A=[B,B1,B2,N2,C].
+ %%N2 is N1+B2-1.
+ %%random_member(A,String00),
+
+exposition(String00,_String01,Reasons_per_paragraph,Numbers,ML_db,Exposition1) :-
+ length(List1,5), %% 5->1 paragraphs per exposition
+ append(List1,_,Numbers),
+ length(List2,Reasons_per_paragraph),
+ append(List2,_,Numbers),
+
+ %%string_codes(String001,String00),
+ %%writeln(String001),
+ findall([Number1,Exposition2],(
+ %%trace,
+member(Number1,List1),%%concat_list(["What is group ",Number1," of 5 in the exposition that groups ideas about ",String01,"? "],String1),%%get_string(String1,either,one-not-ml,"","",%ML_db,Exposition2)
+%% ** Doesn't print this
+%%choose_sentence_range(String00,N_page_ref,String00a1,String00a2,_String00a3,String00a4),
+ choose(N_page_ref,String00a1,String00a2,_String00a3,_String00a4,String00a5),
+ concat_list(["",String00a5," (",String00a2,", p. ",N_page_ref,") "],Exposition2),
+ reference(String00a1)),Exposition3),
+
+
+ findall([Number2,Number3,String3,String3a,String5a,String5],(
+ member(Number2,List1),member(Number3,List2),get_item_n(Exposition3,Number2,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you how the quote you are about to enter relates to the paragraph topic."],String2b),writeln(String2b),
+ %%trace,
+exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5)
+ ),Exposition4),
+ Exposition1=[Exposition3,Exposition4].
+
+exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5):-
+ (%%concat_list(["What is the paragraph number of the quote about the paragraph topic ",Item1,"? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote about the paragraph topic ",Item1,"? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote about the paragraph topic ",Item1,"? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+ %%choose_sentence_range(String00,N_page_ref,String00a1,String00a2,_String00a3,String00a4),
+ choose(N_page_ref,String00a1,String00a2,_String00a3,_String00a4,String00a5),
+ concat_list([Item1," is because ",String00a5," (",String00a2,", p. ",N_page_ref,")."],String5a),
+ reference(String00a1),
+
+ %%concat_list(["How does the quote you entered (",String5a,") relate to the paragraph topic ",Item1,"? "],String4),
+ %%trace,
+ %%SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",%%downcase_atom(Item1,String41a),split_string(String41a, SepandPad, SepandPad, Item1a),
+
+ %%get_string(String4,either,one-not-ml,Item1a,String3aa,String5)
+
+ %%choose_sentence_range(String00,N_page_ref1,String00a11,String00a21,_String00a31,String00a41),
+ choose(N_page_ref1,String00a11,String00a21,_String00a31,_String00a41,String00a51),
+ concat_list([Item1," is because \"",String00a51,"\" (",String00a21,", p. ",N_page_ref1,")."],String5),
+ reference(String00a11)
+)
+ ->true;exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5).
+
+%% Agree or disagree
+
+critique(String00,String01,Reasons_per_paragraph,Numbers,ML_db,Critique1) :-
+ length(List1,5), %% 5->1 paragraphs per critique
+ append(List1,_,Numbers),
+ length(List2,Reasons_per_paragraph),
+ append(List2,_,Numbers),
+
+ %%string_codes(String001,String00),
+ %%writeln(String001),
+
+ retractall(critique3(_)),
+ assertz(critique3([])),
+
+
+ findall([Number2a,Critique2],(
+%% Reason 1
+
+member(Number2a,List1),
+%%List1=[Number2a|List1a],
+List2=[Number3a|List2a],
+%%trace,
+
+
+critique_reason1(String00,String01,Number2a,Number3a,Reasons_per_paragraph,ML_db,Critique3,Topic_paragraph_link),
+
+critique_reasons_2_to_n(String00,Number2a,List2a,Critique3,Reasons_per_paragraph,ML_db,Critique4),
+
+ append_list2([[Topic_paragraph_link],Critique3,Critique4],Critique2)),Critique1).
+
+ critique_reason1(String00,String01,Number2a,Number3a,Reasons_per_paragraph,ML_db,Critique3,Topic_paragraph_link) :-
+
+ %%member(Number2,List1),member(Number3,List2),
+ %%get_item_n(Critique3,Number2a,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you for your comment on the quote you are about to enter."],String2b),writeln(String2b),
+ %% Later: connections
+
+ %%trace,
+critique2(String00,String01,ML_db,String3,String3a,String5a,_String3y2,String3ay,String5a1,Topic_paragraph_link),
+ %%),Critique4).
+ Critique3=[[Number2a,Number3a,String3,String3a,String5a,_String3y3,String3ay,String5a1]].
+
+critique2(String00,String01,ML_db,String3,String3a,String5a,String3y,String3ay,String5a1,Topic_paragraph_link):-
+ (%%concat_list(["What is the paragraph number of the quote to comment on? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote to comment on? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote to comment on? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+
+ %%choose_sentence_range(String00,N_page_ref1,String00a11,String00a21,_String00a31,String00a41),
+ choose(N_page_ref1,String00a11,String00a21,_String00a31,_String00a41,String00a51),
+ concat_list(["\"",String00a51,"\" (",String00a21,", p. ",N_page_ref1,")."],String5a),
+ reference(String00a11),
+
+ %%concat_list(["Is your comment from a quote (y/n)? "],String2yn),get_string(String2yn,either,one-not-ml,"","",String3yn),
+
+ %%agree_disagree(Pole),
+
+ (%%String3yn="y"
+ true->
+ (%%concat_list(["What is the paragraph number of the comment? "],String2y),get_number(String2y,String3y),
+ %%concat_list(["What is the sentence number of the comment? "],String2ay),get_number(String2ay,String3ay),
+ %%trace,
+ %%member1a([String3y,String3ay,String3aay],ML_db),
+
+ %% use either original x or paraphrase
+
+ %%concat_list(["What is the comment that is from the quote? "],String4ac),
+ %%trace,
+ %%get_string(String4ac,either,one-not-ml-ref,"",String3aay,String5a1)
+
+ %%choose_sentence_range(String00,N_page_ref2,String00a12,String00a22,_String00a32,String00a42),
+ choose(N_page_ref2,String00a12,String00a22,_String00a32,_String00a42,String00a52),
+ concat_list(["\"",String00a52,"\" (",String00a22,", p. ",N_page_ref2,")."],String5a1),
+ reference(String00a12)
+
+ )
+
+ ;(String3y=0,String3ay=0,
+ %%concat_list(["What is the comment? "],String4ac),%%get_string(String4ac,either,one-not-ml,"","",%%String5a,
+%% String5a1)
+
+ %%choose_sentence_range(String00,N_page_ref3,String00a13,String00a23,_String00a33,String00a43),
+ choose(_N_page_ref3,String00a13,_String00a23,_String00a33,_String00a43,String00a53),
+ concat_list(["\"",String00a53,"\"."],String5a1),
+ reference(String00a13)
+ %%" (",String00a23,", p. ",N_page_ref3,")."
+
+)),
+
+ %%concat_list(["How does the comment ",String5a1," relate to the essay topic ",String01,"? "],Topic_paragraph_link_prompt),
+ %%trace,
+
+ %%downcase_and_split(String5a1,String5a1ds),
+ %%downcase_and_split(String01,String01ds),
+ %%get_string(Topic_paragraph_link_prompt,either,one-not-ml,String5a1ds,String01ds,Topic_paragraph_link)
+
+ string_concat(String5a1_az,".",String5a1), %%choose_sentence_range(String00,N_page_ref4,String00a14,String00a24,_String00a34,String00a44),
+ %%choose(N_page_ref4,String00a14,String00a24,_String00a34,String00a44,String00a54),
+ split_string(String01,"(","(",[String01_a|_]),
+
+ concat_list([String01_a," is because ",String5a1_az,"."%% because of ",String00a54," (",String00a24,", p. ",N_page_ref4,")."
+ ],Topic_paragraph_link)
+ %%reference(String00a14)
+
+ /**
+ %% conn - choose connected comments
+ concat_list(["How does the quote you entered (",String5a,") relate to the paragraph topic ",Item1,"? "],String4),
+ %%trace,
+ SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",downcase_atom(Item1,String41a),split_string(String41a, SepandPad, SepandPad, Item1a),
+
+ get_string(String4,either,two,Item1a,String3aa,String5)
+ **/
+ )
+ ->true;critique2(String00,String01,ML_db,String3,String3a,String5a,String3y,String3ay,String5a1,Topic_paragraph_link).
+
+
+
+critique_reasons_2_to_n(String00,Number2a,List2a,Critique3,Reasons_per_paragraph,ML_db,Critique4) :-
+ retractall(critique3(_)),
+ assertz(critique3(Critique3)),
+%%trace,
+/** critique3(Critique31),
+ append(Critique31,Critique3,Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32)),
+**/
+%%notrace,
+findall([Number2a,Number3a,String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa],(
+ %%member(Number2,List1a),
+ member(Number3a,List2a),
+ %%get_item_n(Critique3,Number2a,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you for your comment on the quote you are about to enter."],String2b),writeln(String2b),
+ %% Later: connections
+
+
+ %%trace,
+critique3(String00,ML_db,%%Critique3,
+String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa)
+
+
+/**
+ trace,
+ critique3(Critique31),
+ append(Critique31,[[String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32))
+**/
+
+),
+ Critique4).
+
+ %%Critique3=[].
+
+critique3(String00,ML_db,%%Critique3,
+String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa):-
+ (%%concat_list(["What is the paragraph number of the quote to comment on? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote to comment on? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote to comment on? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+ %%trace,
+ %%choose_sentence_range(String00,N_page_ref4,String00a14,String00a24,_String00a34,String00a44),
+ choose(N_page_ref4,String00a14,String00a24,_String00a34,_String00a44,String00a54),
+ concat_list(["\"",String00a54,"\" (",String00a24,", p. ",N_page_ref4,")."],String5a),
+ reference(String00a14),
+
+
+ %%concat_list(["Is your comment from a quote (y/n)? "],String2yn),%%get_string(String2yn,either,one-not-ml,"","",String3yn),
+
+ %%agree_disagree(Pole),
+
+ (true->%%String3yn="y"->
+ (%%concat_list(["What is the paragraph number of the comment? "],String2y),get_number(String2y,String3y),
+ %%concat_list(["What is the sentence number of the comment? "],String2ay),get_number(String2ay,String3ay),
+ %%trace,
+ %%member1a([String3y,String3ay,String3aay],ML_db),
+
+ %% use either original x or paraphrase x
+ %%trace,
+ %%concat_list(["What is the comment that is from the quote? "],String4ac),
+ %%trace,
+ %%get_string(String4ac,either,one-not-ml-ref,"",String3aay,String5a1)
+
+ %%choose_sentence_range(String00,N_page_ref5,String00a15,String00a25,_String00a35,String00a45),
+ choose(N_page_ref5,String00a15,String00a25,_String00a35,_String00a45,String00a55),
+ concat_list(["\"",String00a55,"\" (",String00a25,", p. ",N_page_ref5,")."],String5a1),
+ reference(String00a15)
+
+ %%,trace
+ )
+
+ ;(String3y=0,String3ay=0,
+ concat_list(["What is the comment? "],String4ac),
+
+ %% This is never chosen
+ get_string(String4ac,either,one-not-ml,"","",%%String5a,
+ String5a1))),
+ %%*** assertz recurse not findall new critique3 x
+
+
+ %%trace,
+ critique3(Critique31),
+ append(Critique31,[[0,0,String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32)),
+
+ critique3(Critique33),
+
+
+((
+
+
+ %%critique3(Critique3),
+ length(Critique33,LCritique3),
+ %%length(List1,LCritique3),
+ numbers(LCritique3,1,[],List1),
+ %%append(List1,_,Numbers),
+ %%Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+ %%trace,
+
+findall([N," - ",CString5a1,"\n"],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString3,_CString3a,_CString5a,_CString3y,_CString3ay,CString5a1])),CStrings1),
+
+findall([N,CNumber2a,CNumber3a,CString5a1],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString31,_CString3a1,_CString5a1,_CString3y1,_CString3ay1,CString5a1])),CStrings2),
+
+%%trace,
+
+%%CStrings=[CStrings1,CStrings2],
+reverse(CStrings2,CStringsR),CStringsR=[[_,CNumber2a1,CNumber3a1,LastCStrings]|CStringsR1],
+reverse(CStringsR1,CStringsRR),
+
+reverse(CStrings1,CStringsR10),CStringsR10=[_|CStringsR11],
+reverse(CStringsR11,CStringsRR1),
+
+append_list2(CStringsRR1,CStrings11),
+concat_list(CStrings11,_CStrings12),
+%%concat_list(["Please select a comment to connect the comment ",LastCStrings," to:","\n",CStrings12],ConnectionNumberPrompt),
+%%get_number(ConnectionNumberPrompt,ConnectionNumber),
+%numbers(
+
+%% *** Choose phrase which is similar to a previous phrase
+
+%% findall([N," - ",CString5a1,"\n"],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString3,_CString3a,_CString5a,_CString3y,_CString3ay,CString5a1]),
+
+ /**SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",findall([CString5a1Z2,CString5a1Z5],(downcase_atom(CString5a1,CString5a1Z1),atom_string(CString5a1Z1,CString5a1Z2),split_string(CString5a1,SepandPad,SepandPad,CString5a1Z3),
+ Connectors=
+ ["the","a","i","on","with","of","an","for","to",
+ "was","were","and","in","my","from","out","by"],
+ %% find distances between terms, closest to sent
+ subtract(CString5a1Z3,Connectors,CString5a1Z5),
+ ),CString5a1Z4),
+**/
+choose1(List1,ConnectionNumber),
+ member([ConnectionNumber,CNumber2aa,CNumber3aa,CString5a1a],CStringsRR),
+
+ %%SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",%%downcase_atom(CString5a1a,CString5a1a1),split_string(CString5a1a1, SepandPad, SepandPad, CString5a1a2),
+
+ %%CNumber2a1,CNumber3a1,
+ %%downcase_atom(LastCStrings,LastCStrings_a),split_string(LastCStrings_a, SepandPad, SepandPad, LastCStrings_a1),
+
+
+ %% conn - choose connected comments, this to a previous comment
+ %%trace,
+
+ %%concat_list(["How does ",LastCStrings," connect to ",CString5a1a,"? "],ConnectionPrompt),
+
+ %%get_string(ConnectionPrompt,either,one-not-ml,CString5a1a2,LastCStrings_a1,String5aaa)
+
+ string_concat(LastCStrings_az,".",LastCStrings),
+ string_concat(CString5a1a_az1,".",CString5a1a), %%choose_sentence_range(String00,N_page_ref6,String00a16,String00a26,_String00a36,String00a46),
+
+ split_string(LastCStrings_az,"(","(",[LastCStrings_az_a|_]),
+
+replace(CString5a1a_az1,"\"","",CString5a1a_az),
+replace(LastCStrings_az_a,"\"","",LastCStrings_az_a1),
+choose(_N_page_ref6,String00a16,_String00a26,_String00a36,_String00a46,_String00a56),
+ concat_list([LastCStrings_az_a1," because ",CString5a1a_az,"."%%" because ",String00a56," (",String00a26,", p. ",N_page_ref6,")."
+ ],String5aaa),
+ reference(String00a16)
+
+
+ )->true;(
+
+ %% If the section since updating dynamic critique comments fails, prevent doubling of critique comments
+
+ critique3(Critique311),
+ reverse(Critique311,Critique312),
+ Critique312=[_|Critique313],
+ reverse(Critique313,Critique314),
+ retractall(critique3(_)),
+ assertz(critique3(Critique314)),fail
+
+ ))
+
+/** Critique4=[String3,String3a,String5a,String3y,String3ay,String5a1,
+ CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa],
+ **/
+ /**
+ critique3(Critique31),
+ append(Critique31,[[String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32))
+**/
+
+ )
+ %% Retries the predicate if it fails
+ ->true;critique3(String00,ML_db,%%Critique3,
+ String3,String3a,String5a,String3y,String3ay,String5a1,
+ CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa
+ ).
+
+
+
+
+member1a([String3,String3a,String3aa],ML_db) :-
+ member([String3,String3a,String3aa],ML_db),!.
+
+
+get_item_n(Exposition,Number1,Item) :-
+ Number2 is Number1-1,
+ length(List,Number2),
+ append(List,[Item|_],Exposition).
+
+get_number(Prompt1,Number) :-
+ %%concat_list(Prompt1,Prompt2),
+ (%%repeat,
+ writeln(Prompt1),read_string(user_input, "\n", "\r", _End1, String),split_string(String, ",", " ", Value1),Value1=[Value2],number_string(Number,Value2)).
+
+
+/**
+get_string(Prompt1,String1) :-
+ concat_list(Prompt1,Prompt2),
+ (repeat,write(Prompt2),read_string(String1),not(String1="")).
+**/
+
+equals_empty_list([]).
+
+downcase_and_split(String1, String2) :-
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ downcase_atom(String1,String3),split_string(String3, SepandPad, SepandPad, String2).
+
+get_string(Prompt2,Flag1,Flag2,ML_db0,ML_db1,String2) :-
+%%writeln1(get_string(Prompt2,Flag1,Flag2,ML_db1,String2)),
+ %%concat_list(Prompt1,Prompt2),
+ %%trace,
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ %%(repeat,
+ (Flag2=one-not-ml-ref->(concat_list(["Note: Enter in-text reference using AGPS, e.g.\n","The first work supports the second work (Surname 2000, pp. 18-9).\n","Surname (2000, pp. 18-9) states that ...\n","Remember to use words like \"also\", \"moreover\" and \"in addition\" before the sentence."],String_a1),writeln(String_a1));true),
+ writeln(Prompt2),read_string(user_input, "\n", "\r", _End2, String2aa),%%not(String2aa=""),
+ %%String2aa=[String2aaa],
+ downcase_atom(String2aa,String3),split_string(String3, SepandPad, SepandPad, String4),
+ Neg_term_list=["no","not","don","t","shouldn","wouldn","disagree","differ","dislikes","disagrees","differs","dislikes","disagreed","differed","disliked","negative","negation","non","negate","negates","negated","but","however","isn","lack"],
+ (Flag1=%%non_negative
+ positive->(
+
+ (findall(Item11,(
+
+ member(Item1,String4),
+ findall(Item1,(
+member(Item2,Neg_term_list),(Item1=Item2->(write("Error: Contains the negative term \""),write(Item1),writeln("\".")))),Item11)),Item12)),
+
+maplist(equals_empty_list,Item12)
+
+);
+ ((Flag1=negative->((member(Item1,String4),member(Item1,Neg_term_list))->true;(writeln("Error: Contains no negative term, one of:"),writeln(Neg_term_list),fail));true)->true;Flag1=either)),
+ (Flag2=one-not-ml->String2=String2aa;
+ (Flag2=one-not-ml-ref->
+ (refs(R1),writeln("What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.\n"),writeln("Existing references (copy one or many delimited with \"\\n\"):"), findall(_,(member(R11,R1),writeln(R11)),_),read_string(user_input, "\n", "\r", _End3, String2r),not(String2r=""),%%downcase_atom(String2r,_String3r),
+ String2=String2aa,split_string(String2r,"\n\r","\n\r",String2r3),
+ %%trace,
+ retractall(refs(_)),maplist(append,[[R1,String2r3]],[String2r21]),
+ sort1(String2r21,String2r2),
+ assertz(refs(String2r2))%%split_string(String3r, SepandPad, SepandPad, String4)
+ );
+(Flag2=one->(%%split_string(String4,SepandPad,SepandPad,String21),
+ writeln("Attempt 1"),
+
+ (length(String4,Length_string1),
+(check_strings_container1(Length_string1,String4,[0,0,ML_db1],[[0,0,[xxx,xxx,xxx,xxx,xxx]],[0,0,ML_db1],[999,999,[]]],_,_List2)->
+ writeln("Success");(writeln("Failed"),fail))
+ %%(%%data_instance_k_classification1([[0,0,[xxx,xxx,xxx,xxx,xxx]],[0,0,ML_db1]%%,[999,999,[]]
+ %%],[0,0,String4]%%21
+ %%,1,String4a%%21
+ %%),
+ %%String4=String4a)
+ %%)->
+ %%(%%String4a=[_,_,String4a1],
+ %%writeln([found,String4a,String4]),
+%%writeln("Success"));
+ %%(writeln("Failed"),fail)
+ %%
+ ));
+ (Flag2=%%[
+ two,%%,P1,S1,P2,S2],
+ %%trace,
+ append([ML_db0],[ML_db1],ML_db2),
+ check_strings(String4,ML_db2%%,P1,S1,P2,S2
+ ))))).
+
+reference(String2r) :-
+ (refs(R1),%%writeln("What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.\n"),writeln("Existing references (copy one or many delimited with \"\\n\"):"),
+ findall(_,(member(R11,R1),writeln(R11)),_),%%read_string(user_input, "\n", "\r", _End4, String2r),
+ not(String2r=""),%%downcase_atom(String2r,_String3r),
+ %%String2=String2aa,
+ split_string(String2r,"\n\r","\n\r",String2r3),
+ %%trace,
+ retractall(refs(_)),maplist(append,[[R1,String2r3]],[String2r21]),
+ sort1(String2r21,String2r2),
+ assertz(refs(String2r2))%%split_string(String3r, SepandPad, SepandPad, String4)
+ ).
+
+
+%% Sorts by first surname then title in AGPS
+
+sort1(List1,List2) :-
+ findall([C,B],(member(B,List1),downcase_atom(B,D),atom_string(D,C)),E),sort(E,F),findall(G,member([_,G],F),List2).
+
+
+prepare_file_for_ml(String000,String021) :-
+ string_codes(String001,String000),
+ downcase_atom(String001,String00),
+ split_string(String00, "\n\r", "\n\r", String01),
+ delete(String01,"",String02),
+ findall(String03,(member(String02a,String02),split_string(String02a,".",".",String04),
+ ((String04=[String05|String06],
+ number_string(Number05,String05),
+ number_sentences(Number05,1,String06,[],String03))->true;
+ (findall(String08,
+ (SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ member(String04a,String04),split_string(String04a,SepandPad,SepandPad,String09),
+ append_list([[""],"",String09],String08)),String03)))),String0211),
+ append_list2(String0211,String021).
+
+number_sentences(_,_,[],String,String) :- !. number_sentences(Number_a,Number_b1,String06,String07,String08) :-
+ String06=[String00|String12],
+
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ split_string(String00,SepandPad,SepandPad,String09),
+ append_list([[Number_a],Number_b1,String09],String10),
+ append(String07,[String10],String11),
+ Number_b2 is Number_b1 + 1,
+ number_sentences(Number_a,Number_b2,String12,String11,String08).
+
+
+data_instance_k_classification1(Data,I,K,C):-
+ maplist(o_oclass_disClass1(I),Data,DisAndClass),
+ keysort(DisAndClass,DSorted),
+
+ %%writeln(DSorted),
+
+ length(TopK,K),
+ append(TopK,_,DSorted),
+ %This is not a very good way of selecting k as you may have many values with the same distance, and the sorting just cuts these off
+ %Dsorted = [1-pos,3-pos,3-pos,3-neg,3-neg]
+ %Topk =[1-pos,3-pos,3-pos]
+ topk_vote(TopK,C).
+
+o_oclass_disClass1(O,[A,B,O2],D-[A,B,O2]):-
+ o_o_dis(O,O2,D).
+
+%% could be in either order
+%% a([w,z,a,b,e,c,z,y],[1,1,[c]],[1,2,[a]]).
+
+%% true
+%% a([a,c,b],[1,1,[a,d]],[1,2,[b]]).
+%% a([a,c,b],[1,1,[a,c]],[1,2,[b]]).
+%% a([a,b],[1,1,[a]],[1,2,[b]]).
+
+%% false
+%% a([c,d],[1,1,[a]],[1,2,[b]]).
+
+%% q in "q a b" sends food like e in "c d e"
+
+/**
+
+[debug] ?- a([q,e,r,a,t,y,u,q,e,r,a,t,y,u,c,b,x,v,n,m],[1,1,[c,a,t,y,u]],[1,2,[c,a,t,y,u]]). [[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[c,a,t,y,u]],[r,a,t,y,u]]
+true.
+
+X:
+[debug] ?- a([q,e,r,a,t,y,u,c,b,x,v,n],[1,1,[c,a,t,y,u]],[1,2,[b,x,u]]).
+[[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[b,x,u]],[c,b,x]]
+true.
+
+[debug] ?- a([q,e,r,a,t,y,u,c,c,c,b,x,v,n],[1,1,[c,a,t,y,u]],[1,2,[b,x,v]]). [[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[b,x,v]],[c,c,c]]
+true.
+
+**/
+
+check_strings(String1,ML_db) :-
+ %%member([P1,S1,String2],ML_db),
+ %%member([P2,S2,String3],ML_db),
+ ML_db=[String2a,String3a],
+%%writeln(["String1,String2a,String3a",String1,String2a,String3a]),
+ String2=[0,0,String2a],
+ String3=[0,0,String3a],
+%%a(String1,String2,String3):-
+ length(String1,Length_string1),
+((writeln("Attempt 1"),
+check_strings_container1(Length_string1,String1,String2,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String2,[999,999,[]]],_,List2),
+ length(List2,Length_list2),
+ %%Length_list3 is Length_list2+1,
+ %%writeln(here),
+ check_strings_container1(Length_list2,List2,String3,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String3,[999,999,[]]],_,_List3),
+ writeln("Success")
+ %%,trace
+ )->true;
+ (writeln("Failed"),
+ writeln("Attempt 2"),
+ ((check_strings_container1(Length_string1,String1,String3,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String3,[999,999,[]]],_,List2),
+ length(List2,Length_list2),
+ %%Length_list3 is Length_list2+1,
+ %%writeln(here),
+
+ check_strings_container1(Length_list2,List2,String2,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String2,[999,999,[]]],_,_List3))->
+ writeln("Success");(writeln("Failed"),fail)))
+).
+
+check_strings_container1(Length_string1,String1,String2,Db,List2,List2b) :-
+check_strings1(Length_string1,String1,String2,Db,List2,List2b),not(var(List2b)).
+%%check_strings_container2(Length_string1,Length_string3,List1,String2,Db,List2,List2b) :-
+%%check_strings2(Length_string1,Length_string3,List1,String2,Db,List2,List2b),not(var(List2b)).
+
+
+ %% finds the length of each string - from position 1 to (length of string1) of string1
+ %% starts with the shortest possible string, then increases the length
+ %% repeat this for second string
+ %%string1
+
+ %%*** check with s2,s3 in db
+check_strings1(0,_String1,_String2,_Db,List2,List2) :- !.
+check_strings1(Length_string1,String1,String2,Db,List2,List2b) :-
+ %% finds the first str
+ %%length(List,Index),
+ length(List1,Length_string1),
+ append(_,List1,String1),
+ Length_string2 is Length_string1-1,
+ Length_string3 is Length_string1+1,
+ check_strings2(0,Length_string3,List1,String2,Db,List2,List2c),
+ (var(List2c)->
+ check_strings1(Length_string2,String1,String2,Db,List2c,List2b);List2c=List2b),!.
+
+check_strings2(Length_string,Length_string,_String1,_String2,_Db,List2,List2) :- !.
+check_strings2(Length_string1,Length_string3,List1,String2,Db,List2,List2b) :-
+
+
+ %%split_string(String4,SepandPad,SepandPad,String21),
+
+ %% go through s1, removing the first word each time, until v
+ %%Length_string11 is Length_string1-1,
+ length(List11,Length_string1),
+ append(List11,List2,List1),
+ Length_string2 is Length_string1+1,
+
+%%writeln([list11,List11]),
+
+ ((%%trace,
+ %%(List11=[z,a,b]->trace;true),
+ %%writeln([[_,_,List11],String2]),
+ %%notrace,
+ not(List11=[]),
+
+%%writeln(data_instance_k_classification1(Db
+%% ,List11,1,A)),
+ data_instance_k_classification1(Db
+ %%String2
+ ,List11,1,A),
+ %%writeln([string2,String2,list11,List11,a,A]),
+A=String2,%%[_,_,List11],
+ %%trace,
+
+ %%((List11=[z,a,b],A=[_,_,[z,t,b]],not(String2=[_,_,[c,z]]))->trace;notrace),
+ %%trace,
+%%writeln([string2=list11,String2=List11]),
+%%(List11=[y]->true%%trace
+%%;true),
+%%member(List11,Db),
+ %%**String2=[_,_,List11]
+ List2b=List2,%%,notrace
+ String2=[_,_,String21]
+ ,writeln([found,String21,List11])
+ )
+ ->(true
+ %%,writeln(List11)
+ );
+ check_strings2(Length_string2,Length_string3,List1,String2,Db,_List2c,List2b)),!.
+
+numbers(N2,N1,Numbers,Numbers) :-
+ N2 is N1-1,!.
+numbers(N2,N1,Numbers1,Numbers2) :-
+ N3 is N1+1,
+ append(Numbers1,[N1],Numbers3),
+ numbers(N2,N3,Numbers3,Numbers2).
+
+
+mind_read(Item,List) :-
+ trialy2(List,R1),
+ findbest(R1,Item),!.
+ %%random_member(Item,List),!.
+
+trialy2(List,R) :-
+%%writeln([list,List]),
+%%notrace,
+ length(List,Length),
+ /**
+ ((Length=<9->
+ findr4(R4),
+ number_string(R4,R4A),
+ formr5([R4A],9,Length,R5),
+ findr(R5,List,R));
+ (Length=<99->
+ findr4(R41),
+ findr4(R42),
+ formr5([R41,R42],99,Length,R5),
+ findr(R5,List,R));
+ (Length=<999->
+ findr4(R41),
+ findr4(R42),
+ findr4(R43),
+ formr5([R41,R42,R43],999,Length,R5),
+ findr(R5,List,R));
+ fail),
+ %%writeln([r,R]),trace.
+ true.
+ **/
+
+log(Length,A),log(10,C),B is floor(A/C)+1,
+numbers(B,1,[],D),
+findall(R,(member(_E,D),findr4(R1),number_string(R1,R)),RL),
+B2 is floor(10^((floor(A/C)+1))-1),
+formr5(RL,B2,Length,R5),
+findr(R5,List,R)
+
+.
+
+findr4(R4) :-
+ List1=[0,1,2,3,4,5,6,7,8,9],
+ Trials is 30,
+
+%catch(
+ (trialy22(List1,Trials,[],R1),
+ findbest2(R1,R4)
+ %writeln1([item,Item])
+ )
+ %_,
+ %findr4(R4)
+ %)
+ .
+
+ %%number_string(R3,R2),
+formr5(RList,Upper,Length,R5) :-
+ %%findall(D,(member(C,RList),floor(C,D)),RList2),
+ concat_list2A(RList,R5A),
+ number_string(R5B,R5A),
+ %%R5B=R5A,
+ R51 is floor((R5B/Upper)*Length),
+ (R5B=Upper->R5 is R51-1;R5=R51).
+findr(R4,List,R) :-
+ %%floor(R4,R4A),
+ length(A,R4),
+ append(A,[R|_],List).
+
+ %%random_member(A,List),
+ %%R=[[_,A]].
+
+ /**
+ length(List,L),
+ Trials is L*3,
+ trialy22(List,Trials,[],R).**/
+
+trialy22([],_,R,R) :- !.
+trialy22(List,Trials,RA,RB) :-
+ List=[Item|Items],
+ trialy21(Item,Trials,R1),
+ append(RA,[R1],RC),
+ trialy22(Items,Trials,RC,RB),!.
+
+trialy21(Label,Trials,RA) :-
+ trialy3(Trials,[],R),
+ aggregate_all(count, member(true,R), Count),
+ RA=[Count,Label].
+
+trialy3(0,R,R) :-!.
+trialy3(Trials1,RA,RB) :-
+ trialy1(R1),
+ append(RA,[R1],RC),
+ Trials2 is Trials1-1,
+ trialy3(Trials2,RC,RB),!.
+
+%% try other nouns
+trialy1(R1) :-
+ %%control11(A1),
+ trial0(A22), %% Control
+ sum(A22,0,S22),
+ mean(S22,A1),
+ trial0(A21), %% Test 1
+ sum(A21,0,S02),
+ mean(S02,A2),
+ (A1>A2->R1=true;R1=fail).
+
+trial0(S3) :- N is 10,
+catch(
+ (trial1(N,[],S),trial01(S,S3)),
+ _,
+ trial0(S3)).
+trial01(S1,S3) :-
+ sort(S1,S),
+ %%midpoint(S,MP),
+ halves(S,H1,H2),
+ midpoint(H1,Q1),
+ midpoint(H2,Q3),
+ IQR is Q3-Q1,
+ sum(S,0,S02),
+ mean(S02,Mean),
+ furthestfrommean(S,Mean,V),
+ D1 is 1.5*IQR,
+ D2 is V-Mean,
+ (D2>D1->(delete(S,V,S2),trial01(S2,S3));S=S3).
+
+trial1(0,A,A) :- !.
+trial1(N,A,B) :- mindreadtest(S), append(A,[S],A2),
+ N1 is N-1,trial1(N1,A2,B).
+
+midpoint(S,MP) :-
+ length(S,L),
+ A is mod(L,2),
+ (A is 0->
+ (M1 is L/2, M2 is M1+1,N1 is M1-1,N2 is M2-1,length(N11,N1),length(N21,N2),append(N11,[N12|_Rest1],S),append(N21,[N22|_Rest2],S),MP is (N12+N22)/2)
+ ;
+ (L2 is L+1, M1 is L2/2, N1 is M1-1,length(N11,N1),append(N11,[MP|_Rest],S))).
+
+halves(S,H1,H2) :-
+ length(S,L),
+ A is mod(L,2),
+ (A is 0->
+ (M1 is L/2,length(H1,M1),append(H1,H2,S))
+ ;
+ (L2 is L-1,M1 is L2/2,length(H1,M1),append(H1,[_|H2],S))).
+
+sum([],S,S):-!.
+sum(S0,S1,S2) :-
+ S0=[S3|S4],
+ S5 is S1+S3,
+ sum(S4,S5,S2).
+
+mean(Sum,Mean) :-
+ Mean is Sum/2.
+
+furthestfrommean(S,Mean,V) :-
+ absdiffmean(S,Mean,[],D),
+ sort(D,D1),
+ reverse(D1,[[_,V]|_Rest]).
+
+absdiffmean([],_M,D,D) :- !.
+absdiffmean(S,M,D1,D2) :-
+ S=[S1|S2],
+ S3 is abs(S1-M),
+ append(D1,[[S3,S1]],D3),
+ absdiffmean(S2,M,D3,D2).
+
+mindreadtest(Sec) :-
+ %% 250 br for characters to be br out with 10 br each from person to me - do when initial 250 br test done and doing 10 br test
+ %%comment(fiftyastest),
+ %%random(X),X1 is 10*X, X2 is floor(X1), (X2=<2 -> (
+ %%texttobr,writeln(['true test']), %%); %% use breasonings breasoned out by computer for not by me, for job medicine for "me", at last time point
+ %%true), %% leave last time point blank
+ %%**texttobr2(640);true),%% make an A to detect reaction to gracious giving or blame of in following
+ get_time(TimeStamp1),
+ %%phrase_from_file(string(_String), 'file.txt'),
+ texttobr2(2), %% 100 As for answer (must be br before this on same day)
+ %% is gracious giving or blame
+ get_time(TimeStamp2),
+ %%comment(turnoffas),
+ Sec is TimeStamp2 - TimeStamp1.
+
+concat_list2A(A1,B):-
+ A1=[A|List],
+ concat_list2A(A,List,B),!.
+
+concat_list2A(A,[],A):-!.
+concat_list2A(A,List,B) :-
+ List=[Item|Items],
+ string_concat(A,Item,C),
+ concat_list2A(C,Items,B).
+
+findbest(R,R) :-!.
+findbest2(R,Item):-
+ sort(R,RA),
+ reverse(RA,RB),
+ RB=[[_,Item]|_Rest].
diff --git a/Essay-Helper/short_essay_helper3.1_agps.pl b/Essay-Helper/short_essay_helper3.1_agps.pl
new file mode 100644
index 0000000000000000000000000000000000000000..4415589aa225868a65666cc25a31525858c8e7e9
--- /dev/null
+++ b/Essay-Helper/short_essay_helper3.1_agps.pl
@@ -0,0 +1,1109 @@
+%% backdated from this - which has no repeats and forward progress through essays, but has a bug in numbering pages in references, so backdated to version with repeats and random progress, made forward progress x kept this version and solved bug with pg info in db
+
+%% Prolog Short Essay Helper
+
+%% Keep 1,2,3 in aphors
+%% Certain number of reasons per paragraph
+%% Explains essay structure at start
+%% Exposition (negative terms not allowed, asks for 5 groups from text to take optionally enough notes about, which can revise) and critique
+%% Paraphrasing
+%% Converts x, explains x, asks about
+%% Allows citation of aphor
+%% Prints citations used so far
+%% Prints chapter, essay and allows changes (using text editor) at end.
+%% Outputs db file and br dicts for marking later
+
+%% *** Rewrite essay files with e.g. 1a. before aphors not 1. so not confused with aphors
+
+%% short_essay_helper("file.txt",5,E),writeln1(E).
+
+%%:- include('distances.pl').
+:- use_module(library(date)).
+:- include('../listprologinterpreter/la_strings').
+:- include('sheet_feeder.pl').
+
+:- dynamic critique3/1.
+:- dynamic agree_disagree/1.
+:- dynamic refs/1.
+:- dynamic chosen_quotes/1.
+:- dynamic string00_z/1.
+:- dynamic num_paras_exp/1.
+:- dynamic num_paras_crit/1.
+
+choose(N2,B,B1,B2,C,Item) :-
+%%trace,
+(
+ choose2(N2,B,B1,B2,C,Item)->true;(Item="* All quotes exhausted. (*)"),N2=0,B="()",B1="()",B2=0,C=""),
+ %%notrace,
+ !.
+choose2(N2,B,B1,B2,List0,List0) :-
+%%trace,
+ string00_z(String00),
+ choose_sentence_range(String00,N1,B,B1,B2,List0),
+ %%chosen_quotes(Chosen_quotes1),
+ %%trace,
+ %%length(List0,L),
+ %%numbers(L,1,[],N),
+ %%random_
+ %%member(N1,N),
+ %%
+ %%random_
+ %%member([N1,Item10],List0),
+
+ %%random_
+ %%**member(Item1,Item10),
+ N2 is N1+B2-1,
+ %%get_item_n(List0,N1,Item10),
+
+
+ %%**string_codes(Item10,List),
+ %%notrace,
+ %%**split_string(List,".\n",".\n",List2),
+
+ %%length(List2,L),
+ %%numbers(L,1,[],N),
+ %%random_
+ %%member(N1,N),
+ %%N2 is N1+B2-1,
+ %%random_
+ %%**member(Item1,List2),
+
+ %%get_item_n(List2,N1,Item1),
+
+ /**string_concat(E,D,Item1),
+ string_length(E,1),
+ downcase_atom(E,E1),
+ atom_string(E1,E2),
+ string_concat(E2,D,Item2),
+ string_length(E2,1),
+ string_concat(Item2,""%%"."
+ ,Item),
+ **/
+ delete(String00,[B,B1,B2,N1,List0],String00_a),
+ %%trace,
+ %%writeln1([[b,b1,b2,n2,list0],[B,B1,B2,N1,List0]]),
+ %%writeln1([string00,String00]),
+ %%writeln1([string00_a,String00_a]),
+ %%**delete(String00,[B,B1,B2|_],String00_a),
+ %%**delete(List0,[N1,Item10],List6),
+ %%findall([Item3,". "],(member(Item3,List2)),List3),
+ %%maplist(append,[List3],[List4]),
+ %%concat_list(List4,_List5),
+ %%append(List6,[]%%List5
+ %%,List7),
+ %%**(List6=[]->String00_b=String00_a;
+ %%**(%%trace,
+ %%**maplist(append,[[[B,B1,B2],List6]],[String00_c]),
+ %%**append(String00_a,[String00_c],String00_b)%%,notrace
+ %%**)),
+ retractall(string00_z(_)),
+ assertz(string00_z(String00_a))
+ %%trace,
+ %%writeln1(String00_b),notrace
+
+
+ %%,not(member(Item,Chosen_quotes1)),
+ %%append(Chosen_quotes1,[Item],Chosen_quotes2),
+ %%retractall(chosen_quotes(_)),
+ %%assertz(chosen_quotes(Chosen_quotes2))
+ .
+
+choose1(List0,Item) :-
+ random_member(Item,List0).
+
+delete_invisibles_etc(F,G) :-
+ findall(J,(member(H,F),atom_string(H,J),not(J="."),not(J=".."),not(string_concat(".",_,J))),G).
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+
+short_essay_helper(%%Filex,
+ String01,Key_words,
+ Reasons_per_paragraph) :-
+
+ retractall(num_paras_exp(_)),
+ assertz(num_paras_exp(5)),
+
+ retractall(num_paras_crit(_)),
+ assertz(num_paras_crit(5)),
+
+ retractall(string00_z(_)),
+ %%assertz(string00_z([])),
+
+ retractall(critique3(_)),
+ assertz(critique3([])),
+
+ retractall(refs(_)),
+ assertz(refs([])),
+
+ retractall(chosen_quotes(_)),
+ assertz(chosen_quotes([])),
+
+ directory_files("sources/",F),
+ delete_invisibles_etc(F,G),
+%%trace,
+SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",
+ findall(String02h3,(member(Filex1,G),
+ string_concat("sources/",Filex1,Filex),
+ phrase_from_file_s(string(String00a), Filex),
+ string_codes(String02b,String00a),
+ atom_to_term(String02b,String02a,[]),
+
+ (String02a=[Az,Bz,Cz|String02c]->true;
+ (concat_list(["Error: ",Filex," not in format [\"Surname, A 2000, Title: Subtitle, Publisher, City.\",\"Surname, A 2000\",First_Page_Num,\"\",\"\",...\"]"],Notification1),writeln(Notification1),abort)),
+ %%String02c=String02d,
+ %%trace,
+ findall([Az,Bz,Cz,N1,String02cb],(
+
+ length(String02c,L),
+ numbers(L,1,[],N),
+ %%random_
+ member(N1,N),
+ get_item_n(String02c,N1,String02ca),
+
+ %%member(String02ca,String02c),
+ split_string(String02ca, ".\n\r", ".\n\r", String02cb)
+
+ %%member(String02cb1,String02cb)
+
+ ),String02cc),
+ %%maplist(append,[String02cc],[String02d]),
+
+ %%delete(String02cc,[_,[]],String02d),
+ String02cc=String02d,
+
+ findall([Az,Bz,Cz,N2,String02d2],(member([Az,Bz,Cz,N2,String02d1],String02d),
+ member(String02d2,String02d1),
+ downcase_atom(String02d2,String02e),
+ atom_string(String02e,String02f1),
+ split_string(String02f1, SepandPad, SepandPad, String02e1),
+ findall(String02g,(member(Key_words1,Key_words),
+ %%trace,
+ downcase_atom(Key_words1,Key_words11),
+ atom_string(Key_words11,Key_words12),
+findall(Key_words12,(member(Key_words12,String02e1)),String02g)
+ ),String02i),
+ not(maplist(equals_empty_list,String02i))
+
+ ),String02h31),
+
+ sort(String02h31,String02h3)
+
+ %%prepare_file_for_ml(String00,String02a)
+ ),String00z1),
+
+ %%,
+
+ %%trace,
+ %%writeln1([string00z1,String00z1]),
+%%findall(String02h2,(member([Ay,By,Cy,N1,String02h1],String00z1),
+ %% (String02h1=[]->String02h2=[];
+ maplist(append,[String00z1],[String00]),%%)
+ %%),String00z),
+
+%%delete(String00z,[],String00),
+
+
+term_to_atom(Key_words,Key_words_a),
+atom_string(Key_words_a,Key_words_b),
+ (String00=[]->(concat_list(["Error: No files in source folder or no instances of keywords ",Key_words_b," in files in source folder."],Notification2),writeln(Notification2),abort);true),
+
+ %%maplist(append,[[String00z1]],String00),
+%%maplist(append,[String00z],String00),
+ %%trace,
+assertz(string00_z(String00)),
+ %%writeln1([string00,String00]),
+ %%notrace,
+
+%%writeln1(String02),
+
+
+ generate_file_name(File1,File2),
+
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+ explain_structure(String01,Reasons_per_paragraph,File1),
+ exposition(String00,String01,Reasons_per_paragraph,Numbers,String02,Exposition),
+
+ %%concat_list(["Do you agree or disagree with ",String01," (a/d) ? "],String2ad),%%get_string(String2ad,either,one-not-ml,"","",String3ad),
+ choose1(["a"%%,"d"
+ ],String3ad),
+
+ (String3ad="a"->
+ (retractall(agree_disagree(_)),
+ assertz(agree_disagree(agree)));
+ (retractall(agree_disagree(_)),
+ assertz(agree_disagree(disagree)))),
+
+
+critique(String00,String01,Reasons_per_paragraph,Numbers,String02,Critique),
+
+agree_disagree(Pole),
+
+ %%concat_list(["What is the future area of research from your essay about ",String01,"? "],Future_research_prompt),
+ %%trace,
+ %%get_string(Future_research_prompt,either,one-not-ml,"","",Future_research),
+%% choose_sentence_range(String00,),
+ choose(N_page_ref,String00a1,String00a2,_String00a3,_String00a4,String00a5),
+ concat_list(["In ",String01,", automation should apply to \"",String00a5,"\" (",String00a2,", p. ",N_page_ref,")."],Future_research),
+ reference(String00a1),
+
+term_to_atom([Exposition,Critique,Future_research],File_contents),open_s(File1,write,Stream),write(Stream,File_contents),close(Stream),
+
+%% Output essay
+%%findall(_,(member(Exposition1,Exposition),Exposition1=
+
+refs(R2),
+
+%%writeln1([Exposition,Critique,Future_research,R2]),
+
+write_essay(String01,Pole,Exposition,Critique,Future_research,R2,Essay,HTML),
+writeln1(Essay),
+
+ (open_s(File2,write,Stream1),
+%% string_codes(BrDict3),
+ write(Stream1,HTML),
+ close(Stream1)),!
+ .
+
+%% replace("a\nb","\n"," \n",F).
+%% F="a \nb \n".
+
+replace(A,Find,Replace,F) :-
+ split_string(A,Find,Find,B),findall([C,Replace],(member(C,B)),D),maplist(append,[D],[E]),concat_list(E,F).
+
+concat_list1(D,F) :-
+ maplist(append,[D],[E]),concat_list(E,F).
+
+write_essay(String01,Pole,Exposition,Critique,Future_research,R2,Essay,HTML) :-
+ write_heading(String01,Heading),
+ write_introduction(String01,Pole,Critique,Introduction),
+ write_exposition(Exposition,Exposition2a),
+ concat_list(["I will expose ",String01," in this half. ",Exposition2a],Exposition2),
+ %%string_concat(Exposition2,"\n",Exposition2a),
+ write_critique(Critique,Critique2a),
+ string_concat(Critique2a,"\n",Critique2b),
+ atom_string(Pole,Pole1),
+ concat_list(["I will ",Pole1," with ",String01," in this half. ",Critique2b],Critique2),
+ write_conclusion(String01,Pole,Critique,Future_research,Conclusion),
+ write_references(R2,References,Refs_no_heading),
+ concat_list([Heading,Introduction,Exposition2,Critique2,Conclusion,References],
+ Essay),
+ concat_list([Introduction,Exposition2,Critique2,Conclusion],
+ Essay2),
+ replace(Essay2,"\n"," ",HTML1),
+ replace(Refs_no_heading,"\n"," ",Refs_no_heading2),
+ concat_list(["",String01,"
",
+ String01,"
",HTML1,"
Bibliography
",Refs_no_heading2,""],HTML).
+
+write_heading(String01,Heading) :-
+ concat_list([String01,"\n","\n"],Heading).
+
+write_introduction(String01,Pole1,Critique,Introduction) :-
+ %% The heading should be in the form "Author's topic"
+ atom_string(Pole1,Pole2),
+ findall([Paragraph_topic_sentence," "],(member(A,Critique),A=[_,[Paragraph_topic_sentence|_]|_]),Paragraph_topic_sentences1),
+ concat_list1(Paragraph_topic_sentences1,Paragraph_topic_sentences2),
+ concat_list(["I will critically analyse ",String01,". ",
+ "I will ",Pole2," with ",String01,". ",
+ Paragraph_topic_sentences2,"\n\n"],Introduction).
+
+write_conclusion(String01,Pole1,Critique,Future_research,Conclusion) :-
+ atom_string(Pole1,Pole2),
+ findall([Paragraph_topic_sentence," "],(member(A,Critique),A=[_,[Paragraph_topic_sentence|_]|_]),Paragraph_topic_sentences1),
+ concat_list1(Paragraph_topic_sentences1,Paragraph_topic_sentences2),
+ concat_list([
+ Paragraph_topic_sentences2,
+ "I have ",Pole2,"d with ",String01,". ",
+ Future_research,"\n\n"
+ ],Conclusion).
+
+write_references(R2,References,Refs_no_head) :-
+ findall([Reference,"\n"],member(Reference,R2),References1),
+ concat_list1(References1,References2),
+ concat_list([References2],Refs_no_head),
+ concat_list(["Bibliography","\n\n",References2],References).
+
+%%a1
+%% write_exposition([[[1,"g1"]],[[1,1,_15410,_15416,"a1","a1 is in g1."],[1,2,_15352,_15358,"a2","g1 contains a2."]]],A),writeln1(A).
+%% A = "a1 a1 is in g1. a2 g1 contains a2. ".
+
+%% write_exposition([[[1,"g1"],[1,"g1"]],[[1,1,_15410,_15416,"a1","a1 is in g1."],[1,2,_15352,_15358,"a2","g1 contains a2."],[1,1,_15410,_15416,"a1","a1 is in g1."],[2,2,_15352,_15358,"a2","g1 contains a2."]]],A).
+%% A = "a1 a1 is in g1. a2 g1 contains a2. a1 a1 is in g1. a2 g1 contains a2. ".
+
+write_exposition(Exposition,Essay4b) :-
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+
+Exposition=[_,Exposition2],
+
+
+findall([Essay4c%%,"\n"
+],(member(Numbera11,Numbers),
+
+
+%% not "" with findall
+findall(Essay4,(
+%%member(Exposition1,Exposition),
+%%Exposition1=[Numbera11,_Number3a,_String3,_String3a,String5a,String3y,_String3ay,String5a1,_CNumber2aa,_CNumber3aa,CString5a1a,_CNumber2a1,_CNumber3a1,_LastCStrings,String5aaa],
+
+
+%%output_exposition(Numbera11,Exposition2,"",Essay1),
+
+ %%findall( Essay4,(
+ member(Exposition1,Exposition2),Exposition1=[Numbera11,_Number3a,_String3,_String3a,String5a,Group_link],
+ concat_list([String5a," ",Group_link," "],Essay4)
+ %%delete(Exposition,Exposition1,Exposition2)
+ %%output_exposition(Numbera11,Exposition2,Essay4,Essay6)
+),Essay4a),
+concat_list(Essay4a,Essay4c1),%%trace,
+(Essay4c1=""->Essay4c="";concat_list([Essay4c1,"\n"],Essay4c))
+
+),Essay4d),
+
+maplist(concat_list,Essay4d,Essay4f),
+concat_list(Essay4f,Essay4b)
+%%concat_list([Essay4e,"\n"],Essay4b)
+%%concat_list([Essay1," ",Essay3],Essay2),
+ %%concat_list([Essay2,"\n"],Essay23))
+%%,Essay3a),
+ %%concat_list(Essay3a,Essay4a)
+.
+%% *** HTML ( not \n)
+
+%%%%%
+%%a
+
+%% write_critique([[1,["heading is e12",[1,1,_25346,_25352,"e1",_25370,_25376,"e12"],[1,2,_25412,_25418,"e2",_25436,_25442,"e22",1,1,"e12",0,0,"e22","e12 is e22"]]]],A),writeln1(A).
+%% A = "heading is e12 e1 e12 e2 e22 e12 is e22 \n".
+
+write_critique(Critique,Essay4):-
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+
+findall(Essay23,(member(Numbera11,Numbers),
+
+%% not "" with findall
+%%findall(Essay22,(
+member(Critique1,Critique),
+%%Critique1=[Numbera11,_Number3a,_String3,_String3a,String5a,String3y,_String3ay,String5a1,_CNumber2aa,_CNumber3aa,CString5a1a,_CNumber2a1,_CNumber3a1,_LastCStrings,String5aaa],
+
+Critique1=[Numbera11,[Para_topic_sent,[_Number2a,_Number3a,_String3,_String3a,String5a,_String3y,_String3ay,String5a1]|Critique2]],
+
+concat_list([Para_topic_sent," ",String5a," ",String5a1," "],Essay0),output_critique(Numbera11,Critique2,String5a1,Essay0,Essay1),
+
+ concat_list([Essay1,Para_topic_sent,"\n"],%%Essay22)
+
+%%),
+Essay23)),Essay3),
+ concat_list(Essay3,Essay4)
+.
+%% *** HTML ( not \n)
+
+output_critique(_Numbera11,[],_String5a1a,Essay,Essay) :- !.
+output_critique(Numbera11,Critique,CString5a1a,Essay1,Essay2) :-
+findall( Essay6,(member(Critique1,Critique),Critique1=[Numbera11,_Number3a,_String3,_String3a,String5a,_String3y1,_String3ay,String5a1,
+_CNumber2aa,_CNumber3aa,CString5a1a,
+ _CNumber2a1,_CNumber3a1,_LastCStrings,
+ String5aaa],
+ concat_list([String5a," ",String5a1," ",String5aaa," "],Essay4),
+ delete(Critique,Critique1,Critique2),
+ output_critique(Numbera11,Critique2,String5aaa,Essay4,Essay6)
+),Essay33),
+%%trace,
+(Essay33=[]->concat_list([Essay1%%," "
+],Essay2);%%(Essay33=[Essay3]->concat_list([Essay1," ",Essay3],Essay2);%%(Essay33=[Essay3|[E33]]-> concat_list([Essay1," ",Essay3,E33],Essay2);
+(Essay33=[Essay3|E33], concat_list(E33,E34),concat_list([Essay1,%%" ",
+Essay3,E34],Essay2)))
+%%)
+%%)
+.
+
+
+/**critique(String00,String01,Reasons_per_paragraph,Numbers,Critique).
+ **/
+
+generate_file_name(File1,File2) :-
+ get_time(TS),stamp_date_time(TS,date(Year,Month,Day,Hour1,Minute1,Seconda,_A,_TZ,_False),local),
+ concat_list(["file",Year,Month,Day,Hour1,Minute1,Seconda,".txt"],File1),
+ concat_list(["file",Year,Month,Day,Hour1,Minute1,Seconda,".html"],File2).
+
+
+explain_structure(String01,Reasons_per_paragraph,_File1) :-
+ concat_list(["The Short Essay Helper will automatically structure and write your essay about ",String01," with ",Reasons_per_paragraph," reasons per paragraph.","\n",
+ "The Helper will help write an exposition (which summarises but doesn't critique the idea), a critique (which agrees with or disagrees with the topic), the introduction and the conclusion (which state whether you agreed or disagreed with the topic, etc.). Citations will be automatically made.","\n","Note: Generated essays are not to be handed in, and you need to paraphrase and cite work you have referenced. Your grade depends on whether you agree or disagree and how many breasonings you breason out. Check the referencing style is appropriate for your class.","\n"],String1),
+ writeln(String1).
+
+choose_sentence_range(String00,N2,B,B1,B2,C) :-
+ length(String00,L),
+ numbers(L,1,[],N),
+ %%random_
+ member(N1,N),
+ get_item_n(String00,N1,A),
+ A=[B,B1,B2,N2,C].
+ %%N2 is N1+B2-1.
+ %%random_member(A,String00),
+
+exposition(String00,_String01,Reasons_per_paragraph,Numbers,ML_db,Exposition1) :-
+ num_paras_exp(Num_paras_exp),
+
+ length(List1,Num_paras_exp), %% 5->1 paragraphs per exposition
+ append(List1,_,Numbers),
+ length(List2,Reasons_per_paragraph),
+ append(List2,_,Numbers),
+
+ %%string_codes(String001,String00),
+ %%writeln(String001),
+ findall([Number1,Exposition2],(
+ %%trace,
+member(Number1,List1),%%concat_list(["What is group ",Number1," of 5 in the exposition that groups ideas about ",String01,"? "],String1),%%get_string(String1,either,one-not-ml,"","",%ML_db,Exposition2)
+%% ** Doesn't print this
+%%choose_sentence_range(String00,N_page_ref,String00a1,String00a2,_String00a3,String00a4),
+ choose(N_page_ref,String00a1,String00a2,_String00a3,_String00a4,String00a5),
+ concat_list(["",String00a5," (",String00a2,", p. ",N_page_ref,") "],Exposition2),
+ reference(String00a1)),Exposition3),
+
+
+ findall([Number2,Number3,String3,String3a,String5a,String5],(
+ member(Number2,List1),member(Number3,List2),get_item_n(Exposition3,Number2,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you how the quote you are about to enter relates to the paragraph topic."],String2b),writeln(String2b),
+ %%trace,
+exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5)
+ ),Exposition4),
+ Exposition1=[Exposition3,Exposition4].
+
+exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5):-
+ (%%concat_list(["What is the paragraph number of the quote about the paragraph topic ",Item1,"? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote about the paragraph topic ",Item1,"? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote about the paragraph topic ",Item1,"? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+ %%choose_sentence_range(String00,N_page_ref,String00a1,String00a2,_String00a3,String00a4),
+ choose(N_page_ref,String00a1,String00a2,_String00a3,_String00a4,String00a5),
+ concat_list([Item1," is because ",String00a5," (",String00a2,", p. ",N_page_ref,")."],String5a),
+ reference(String00a1),
+
+ %%concat_list(["How does the quote you entered (",String5a,") relate to the paragraph topic ",Item1,"? "],String4),
+ %%trace,
+ %%SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",%%downcase_atom(Item1,String41a),split_string(String41a, SepandPad, SepandPad, Item1a),
+
+ %%get_string(String4,either,one-not-ml,Item1a,String3aa,String5)
+
+ %%choose_sentence_range(String00,N_page_ref1,String00a11,String00a21,_String00a31,String00a41),
+ choose(N_page_ref1,String00a11,String00a21,_String00a31,_String00a41,String00a51),
+ concat_list([Item1," is because \"",String00a51,"\" (",String00a21,", p. ",N_page_ref1,")."],String5),
+ reference(String00a11)
+)
+ ->true;exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5).
+
+%% Agree or disagree
+
+critique(String00,String01,Reasons_per_paragraph,Numbers,ML_db,Critique1) :-
+ num_paras_crit(Num_paras_crit),
+
+ length(List1,Num_paras_crit), %% 5->1 paragraphs per critique
+ append(List1,_,Numbers),
+ length(List2,Reasons_per_paragraph),
+ append(List2,_,Numbers),
+
+ %%string_codes(String001,String00),
+ %%writeln(String001),
+
+ retractall(critique3(_)),
+ assertz(critique3([])),
+
+
+ findall([Number2a,Critique2],(
+%% Reason 1
+
+member(Number2a,List1),
+%%List1=[Number2a|List1a],
+List2=[Number3a|List2a],
+%%trace,
+
+
+critique_reason1(String00,String01,Number2a,Number3a,Reasons_per_paragraph,ML_db,Critique3,Topic_paragraph_link),
+
+critique_reasons_2_to_n(String00,Number2a,List2a,Critique3,Reasons_per_paragraph,ML_db,Critique4),
+
+ append_list2([[Topic_paragraph_link],Critique3,Critique4],Critique2)),Critique1).
+
+ critique_reason1(String00,String01,Number2a,Number3a,Reasons_per_paragraph,ML_db,Critique3,Topic_paragraph_link) :-
+
+ %%member(Number2,List1),member(Number3,List2),
+ %%get_item_n(Critique3,Number2a,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you for your comment on the quote you are about to enter."],String2b),writeln(String2b),
+ %% Later: connections
+
+ %%trace,
+critique2(String00,String01,ML_db,String3,String3a,String5a,_String3y2,String3ay,String5a1,Topic_paragraph_link),
+ %%),Critique4).
+ Critique3=[[Number2a,Number3a,String3,String3a,String5a,_String3y3,String3ay,String5a1]].
+
+critique2(String00,String01,ML_db,String3,String3a,String5a,String3y,String3ay,String5a1,Topic_paragraph_link):-
+ (%%concat_list(["What is the paragraph number of the quote to comment on? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote to comment on? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote to comment on? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+
+ %%choose_sentence_range(String00,N_page_ref1,String00a11,String00a21,_String00a31,String00a41),
+ choose(N_page_ref1,String00a11,String00a21,_String00a31,_String00a41,String00a51),
+ concat_list(["\"",String00a51,"\" (",String00a21,", p. ",N_page_ref1,")."],String5a),
+ reference(String00a11),
+
+ %%concat_list(["Is your comment from a quote (y/n)? "],String2yn),get_string(String2yn,either,one-not-ml,"","",String3yn),
+
+ %%agree_disagree(Pole),
+
+ (%%String3yn="y"
+ true->
+ (%%concat_list(["What is the paragraph number of the comment? "],String2y),get_number(String2y,String3y),
+ %%concat_list(["What is the sentence number of the comment? "],String2ay),get_number(String2ay,String3ay),
+ %%trace,
+ %%member1a([String3y,String3ay,String3aay],ML_db),
+
+ %% use either original x or paraphrase
+
+ %%concat_list(["What is the comment that is from the quote? "],String4ac),
+ %%trace,
+ %%get_string(String4ac,either,one-not-ml-ref,"",String3aay,String5a1)
+
+ %%choose_sentence_range(String00,N_page_ref2,String00a12,String00a22,_String00a32,String00a42),
+ choose(N_page_ref2,String00a12,String00a22,_String00a32,_String00a42,String00a52),
+ concat_list(["\"",String00a52,"\" (",String00a22,", p. ",N_page_ref2,")."],String5a1),
+ reference(String00a12)
+
+ )
+
+ ;(String3y=0,String3ay=0,
+ %%concat_list(["What is the comment? "],String4ac),%%get_string(String4ac,either,one-not-ml,"","",%%String5a,
+%% String5a1)
+
+ %%choose_sentence_range(String00,N_page_ref3,String00a13,String00a23,_String00a33,String00a43),
+ choose(_N_page_ref3,String00a13,_String00a23,_String00a33,_String00a43,String00a53),
+ concat_list(["\"",String00a53,"\"."],String5a1),
+ reference(String00a13)
+ %%" (",String00a23,", p. ",N_page_ref3,")."
+
+)),
+
+ %%concat_list(["How does the comment ",String5a1," relate to the essay topic ",String01,"? "],Topic_paragraph_link_prompt),
+ %%trace,
+
+ %%downcase_and_split(String5a1,String5a1ds),
+ %%downcase_and_split(String01,String01ds),
+ %%get_string(Topic_paragraph_link_prompt,either,one-not-ml,String5a1ds,String01ds,Topic_paragraph_link)
+
+ string_concat(String5a1_az,".",String5a1), %%choose_sentence_range(String00,N_page_ref4,String00a14,String00a24,_String00a34,String00a44),
+ %%choose(N_page_ref4,String00a14,String00a24,_String00a34,String00a44,String00a54),
+ split_string(String01,"(","(",[String01_a|_]),
+
+ concat_list([String01_a," is because ",String5a1_az,"."%% because of ",String00a54," (",String00a24,", p. ",N_page_ref4,")."
+ ],Topic_paragraph_link)
+ %%reference(String00a14)
+
+ /**
+ %% conn - choose connected comments
+ concat_list(["How does the quote you entered (",String5a,") relate to the paragraph topic ",Item1,"? "],String4),
+ %%trace,
+ SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",downcase_atom(Item1,String41a),split_string(String41a, SepandPad, SepandPad, Item1a),
+
+ get_string(String4,either,two,Item1a,String3aa,String5)
+ **/
+ )
+ ->true;critique2(String00,String01,ML_db,String3,String3a,String5a,String3y,String3ay,String5a1,Topic_paragraph_link).
+
+
+
+critique_reasons_2_to_n(String00,Number2a,List2a,Critique3,Reasons_per_paragraph,ML_db,Critique4) :-
+ retractall(critique3(_)),
+ assertz(critique3(Critique3)),
+%%trace,
+/** critique3(Critique31),
+ append(Critique31,Critique3,Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32)),
+**/
+%%notrace,
+findall([Number2a,Number3a,String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa],(
+ %%member(Number2,List1a),
+ member(Number3a,List2a),
+ %%get_item_n(Critique3,Number2a,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you for your comment on the quote you are about to enter."],String2b),writeln(String2b),
+ %% Later: connections
+
+
+ %%trace,
+critique3(String00,ML_db,%%Critique3,
+String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa)
+
+
+/**
+ trace,
+ critique3(Critique31),
+ append(Critique31,[[String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32))
+**/
+
+),
+ Critique4).
+
+ %%Critique3=[].
+
+critique3(String00,ML_db,%%Critique3,
+String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa):-
+ (%%concat_list(["What is the paragraph number of the quote to comment on? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote to comment on? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote to comment on? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+ %%trace,
+ %%choose_sentence_range(String00,N_page_ref4,String00a14,String00a24,_String00a34,String00a44),
+ choose(N_page_ref4,String00a14,String00a24,_String00a34,_String00a44,String00a54),
+ concat_list(["\"",String00a54,"\" (",String00a24,", p. ",N_page_ref4,")."],String5a),
+ reference(String00a14),
+
+
+ %%concat_list(["Is your comment from a quote (y/n)? "],String2yn),%%get_string(String2yn,either,one-not-ml,"","",String3yn),
+
+ %%agree_disagree(Pole),
+
+ (true->%%String3yn="y"->
+ (%%concat_list(["What is the paragraph number of the comment? "],String2y),get_number(String2y,String3y),
+ %%concat_list(["What is the sentence number of the comment? "],String2ay),get_number(String2ay,String3ay),
+ %%trace,
+ %%member1a([String3y,String3ay,String3aay],ML_db),
+
+ %% use either original x or paraphrase x
+ %%trace,
+ %%concat_list(["What is the comment that is from the quote? "],String4ac),
+ %%trace,
+ %%get_string(String4ac,either,one-not-ml-ref,"",String3aay,String5a1)
+
+ %%choose_sentence_range(String00,N_page_ref5,String00a15,String00a25,_String00a35,String00a45),
+ choose(N_page_ref5,String00a15,String00a25,_String00a35,_String00a45,String00a55),
+ concat_list(["\"",String00a55,"\" (",String00a25,", p. ",N_page_ref5,")."],String5a1),
+ reference(String00a15)
+
+ %%,trace
+ )
+
+ ;(String3y=0,String3ay=0,
+ concat_list(["What is the comment? "],String4ac),
+
+ %% This is never chosen
+ get_string(String4ac,either,one-not-ml,"","",%%String5a,
+ String5a1))),
+ %%*** assertz recurse not findall new critique3 x
+
+
+ %%trace,
+ critique3(Critique31),
+ append(Critique31,[[0,0,String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32)),
+
+ critique3(Critique33),
+
+
+((
+
+
+ %%critique3(Critique3),
+ length(Critique33,LCritique3),
+ %%length(List1,LCritique3),
+ numbers(LCritique3,1,[],List1),
+ %%append(List1,_,Numbers),
+ %%Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+ %%trace,
+
+findall([N," - ",CString5a1,"\n"],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString3,_CString3a,_CString5a,_CString3y,_CString3ay,CString5a1])),CStrings1),
+
+findall([N,CNumber2a,CNumber3a,CString5a1],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString31,_CString3a1,_CString5a1,_CString3y1,_CString3ay1,CString5a1])),CStrings2),
+
+%%trace,
+
+%%CStrings=[CStrings1,CStrings2],
+reverse(CStrings2,CStringsR),CStringsR=[[_,CNumber2a1,CNumber3a1,LastCStrings]|CStringsR1],
+reverse(CStringsR1,CStringsRR),
+
+reverse(CStrings1,CStringsR10),CStringsR10=[_|CStringsR11],
+reverse(CStringsR11,CStringsRR1),
+
+append_list2(CStringsRR1,CStrings11),
+concat_list(CStrings11,_CStrings12),
+%%concat_list(["Please select a comment to connect the comment ",LastCStrings," to:","\n",CStrings12],ConnectionNumberPrompt),
+%%get_number(ConnectionNumberPrompt,ConnectionNumber),
+%numbers(
+
+%% *** Choose phrase which is similar to a previous phrase
+
+%% findall([N," - ",CString5a1,"\n"],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString3,_CString3a,_CString5a,_CString3y,_CString3ay,CString5a1]),
+
+ /**SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",findall([CString5a1Z2,CString5a1Z5],(downcase_atom(CString5a1,CString5a1Z1),atom_string(CString5a1Z1,CString5a1Z2),split_string(CString5a1,SepandPad,SepandPad,CString5a1Z3),
+ Connectors=
+ ["the","a","i","on","with","of","an","for","to",
+ "was","were","and","in","my","from","out","by"],
+ %% find distances between terms, closest to sent
+ subtract(CString5a1Z3,Connectors,CString5a1Z5),
+ ),CString5a1Z4),
+**/
+choose1(List1,ConnectionNumber),
+ member([ConnectionNumber,CNumber2aa,CNumber3aa,CString5a1a],CStringsRR),
+
+ %%SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",%%downcase_atom(CString5a1a,CString5a1a1),split_string(CString5a1a1, SepandPad, SepandPad, CString5a1a2),
+
+ %%CNumber2a1,CNumber3a1,
+ %%downcase_atom(LastCStrings,LastCStrings_a),split_string(LastCStrings_a, SepandPad, SepandPad, LastCStrings_a1),
+
+
+ %% conn - choose connected comments, this to a previous comment
+ %%trace,
+
+ %%concat_list(["How does ",LastCStrings," connect to ",CString5a1a,"? "],ConnectionPrompt),
+
+ %%get_string(ConnectionPrompt,either,one-not-ml,CString5a1a2,LastCStrings_a1,String5aaa)
+
+ string_concat(LastCStrings_az,".",LastCStrings),
+ string_concat(CString5a1a_az1,".",CString5a1a), %%choose_sentence_range(String00,N_page_ref6,String00a16,String00a26,_String00a36,String00a46),
+
+ split_string(LastCStrings_az,"(","(",[LastCStrings_az_a|_]),
+
+replace(CString5a1a_az1,"\"","",CString5a1a_az),
+replace(LastCStrings_az_a,"\"","",LastCStrings_az_a1),
+choose(_N_page_ref6,String00a16,_String00a26,_String00a36,_String00a46,_String00a56),
+ concat_list([LastCStrings_az_a1," because ",CString5a1a_az,"."%%" because ",String00a56," (",String00a26,", p. ",N_page_ref6,")."
+ ],String5aaa),
+ reference(String00a16)
+
+
+ )->true;(
+
+ %% If the section since updating dynamic critique comments fails, prevent doubling of critique comments
+
+ critique3(Critique311),
+ reverse(Critique311,Critique312),
+ Critique312=[_|Critique313],
+ reverse(Critique313,Critique314),
+ retractall(critique3(_)),
+ assertz(critique3(Critique314)),fail
+
+ ))
+
+/** Critique4=[String3,String3a,String5a,String3y,String3ay,String5a1,
+ CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa],
+ **/
+ /**
+ critique3(Critique31),
+ append(Critique31,[[String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32))
+**/
+
+ )
+ %% Retries the predicate if it fails
+ ->true;critique3(String00,ML_db,%%Critique3,
+ String3,String3a,String5a,String3y,String3ay,String5a1,
+ CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa
+ ).
+
+
+
+
+member1a([String3,String3a,String3aa],ML_db) :-
+ member([String3,String3a,String3aa],ML_db),!.
+
+
+get_item_n(Exposition,Number1,Item) :-
+ Number2 is Number1-1,
+ length(List,Number2),
+ append(List,[Item|_],Exposition).
+
+get_number(Prompt1,Number) :-
+ %%concat_list(Prompt1,Prompt2),
+ (%%repeat,
+ writeln(Prompt1),read_string(user_input, "\n", "\r", _End1, String),split_string(String, ",", " ", Value1),Value1=[Value2],number_string(Number,Value2)).
+
+
+/**
+get_string(Prompt1,String1) :-
+ concat_list(Prompt1,Prompt2),
+ (repeat,write(Prompt2),read_string(String1),not(String1="")).
+**/
+
+equals_empty_list([]).
+
+downcase_and_split(String1, String2) :-
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ downcase_atom(String1,String3),split_string(String3, SepandPad, SepandPad, String2).
+
+get_string(Prompt2,Flag1,Flag2,ML_db0,ML_db1,String2) :-
+%%writeln1(get_string(Prompt2,Flag1,Flag2,ML_db1,String2)),
+ %%concat_list(Prompt1,Prompt2),
+ %%trace,
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ %%(repeat,
+ (Flag2=one-not-ml-ref->(concat_list(["Note: Enter in-text reference using AGPS, e.g.\n","The first work supports the second work (Surname 2000, pp. 18-9).\n","Surname (2000, pp. 18-9) states that ...\n","Remember to use words like \"also\", \"moreover\" and \"in addition\" before the sentence."],String_a1),writeln(String_a1));true),
+ writeln(Prompt2),read_string(user_input, "\n", "\r", _End2, String2aa),%%not(String2aa=""),
+ %%String2aa=[String2aaa],
+ downcase_atom(String2aa,String3),split_string(String3, SepandPad, SepandPad, String4),
+ Neg_term_list=["no","not","don","t","shouldn","wouldn","disagree","differ","dislikes","disagrees","differs","dislikes","disagreed","differed","disliked","negative","negation","non","negate","negates","negated","but","however","isn","lack"],
+ (Flag1=%%non_negative
+ positive->(
+
+ (findall(Item11,(
+
+ member(Item1,String4),
+ findall(Item1,(
+member(Item2,Neg_term_list),(Item1=Item2->(write("Error: Contains the negative term \""),write(Item1),writeln("\".")))),Item11)),Item12)),
+
+maplist(equals_empty_list,Item12)
+
+);
+ ((Flag1=negative->((member(Item1,String4),member(Item1,Neg_term_list))->true;(writeln("Error: Contains no negative term, one of:"),writeln(Neg_term_list),fail));true)->true;Flag1=either)),
+ (Flag2=one-not-ml->String2=String2aa;
+ (Flag2=one-not-ml-ref->
+ (refs(R1),writeln("What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.\n"),writeln("Existing references (copy one or many delimited with \"\\n\"):"), findall(_,(member(R11,R1),writeln(R11)),_),read_string(user_input, "\n", "\r", _End3, String2r),not(String2r=""),%%downcase_atom(String2r,_String3r),
+ String2=String2aa,split_string(String2r,"\n\r","\n\r",String2r3),
+ %%trace,
+ retractall(refs(_)),maplist(append,[[R1,String2r3]],[String2r21]),
+ sort1(String2r21,String2r2),
+ assertz(refs(String2r2))%%split_string(String3r, SepandPad, SepandPad, String4)
+ );
+(Flag2=one->(%%split_string(String4,SepandPad,SepandPad,String21),
+ writeln("Attempt 1"),
+
+ (length(String4,Length_string1),
+(check_strings_container1(Length_string1,String4,[0,0,ML_db1],[[0,0,[xxx,xxx,xxx,xxx,xxx]],[0,0,ML_db1],[999,999,[]]],_,_List2)->
+ writeln("Success");(writeln("Failed"),fail))
+ %%(%%data_instance_k_classification1([[0,0,[xxx,xxx,xxx,xxx,xxx]],[0,0,ML_db1]%%,[999,999,[]]
+ %%],[0,0,String4]%%21
+ %%,1,String4a%%21
+ %%),
+ %%String4=String4a)
+ %%)->
+ %%(%%String4a=[_,_,String4a1],
+ %%writeln([found,String4a,String4]),
+%%writeln("Success"));
+ %%(writeln("Failed"),fail)
+ %%
+ ));
+ (Flag2=%%[
+ two,%%,P1,S1,P2,S2],
+ %%trace,
+ append([ML_db0],[ML_db1],ML_db2),
+ check_strings(String4,ML_db2%%,P1,S1,P2,S2
+ ))))).
+
+reference(String2r) :-
+ (refs(R1),%%writeln("What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.\n"),writeln("Existing references (copy one or many delimited with \"\\n\"):"),
+ findall(_,(member(R11,R1),writeln(R11)),_),%%read_string(user_input, "\n", "\r", _End4, String2r),
+ not(String2r=""),%%downcase_atom(String2r,_String3r),
+ %%String2=String2aa,
+ split_string(String2r,"\n\r","\n\r",String2r3),
+ %%trace,
+ retractall(refs(_)),maplist(append,[[R1,String2r3]],[String2r21]),
+ sort1(String2r21,String2r2),
+ assertz(refs(String2r2))%%split_string(String3r, SepandPad, SepandPad, String4)
+ ).
+
+
+%% Sorts by first surname then title in AGPS
+
+sort1(List1,List2) :-
+ findall([C,B],(member(B,List1),downcase_atom(B,D),atom_string(D,C)),E),sort(E,F),findall(G,member([_,G],F),List2).
+
+
+prepare_file_for_ml(String000,String021) :-
+ string_codes(String001,String000),
+ downcase_atom(String001,String00),
+ split_string(String00, "\n\r", "\n\r", String01),
+ delete(String01,"",String02),
+ findall(String03,(member(String02a,String02),split_string(String02a,".",".",String04),
+ ((String04=[String05|String06],
+ number_string(Number05,String05),
+ number_sentences(Number05,1,String06,[],String03))->true;
+ (findall(String08,
+ (SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ member(String04a,String04),split_string(String04a,SepandPad,SepandPad,String09),
+ append_list([[""],"",String09],String08)),String03)))),String0211),
+ append_list2(String0211,String021).
+
+number_sentences(_,_,[],String,String) :- !. number_sentences(Number_a,Number_b1,String06,String07,String08) :-
+ String06=[String00|String12],
+
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ split_string(String00,SepandPad,SepandPad,String09),
+ append_list([[Number_a],Number_b1,String09],String10),
+ append(String07,[String10],String11),
+ Number_b2 is Number_b1 + 1,
+ number_sentences(Number_a,Number_b2,String12,String11,String08).
+
+
+data_instance_k_classification1(Data,I,K,C):-
+ maplist(o_oclass_disClass1(I),Data,DisAndClass),
+ keysort(DisAndClass,DSorted),
+
+ %%writeln(DSorted),
+
+ length(TopK,K),
+ append(TopK,_,DSorted),
+ %This is not a very good way of selecting k as you may have many values with the same distance, and the sorting just cuts these off
+ %Dsorted = [1-pos,3-pos,3-pos,3-neg,3-neg]
+ %Topk =[1-pos,3-pos,3-pos]
+ topk_vote(TopK,C).
+
+o_oclass_disClass1(O,[A,B,O2],D-[A,B,O2]):-
+ o_o_dis(O,O2,D).
+
+%% could be in either order
+%% a([w,z,a,b,e,c,z,y],[1,1,[c]],[1,2,[a]]).
+
+%% true
+%% a([a,c,b],[1,1,[a,d]],[1,2,[b]]).
+%% a([a,c,b],[1,1,[a,c]],[1,2,[b]]).
+%% a([a,b],[1,1,[a]],[1,2,[b]]).
+
+%% false
+%% a([c,d],[1,1,[a]],[1,2,[b]]).
+
+%% q in "q a b" sends food like e in "c d e"
+
+/**
+
+[debug] ?- a([q,e,r,a,t,y,u,q,e,r,a,t,y,u,c,b,x,v,n,m],[1,1,[c,a,t,y,u]],[1,2,[c,a,t,y,u]]). [[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[c,a,t,y,u]],[r,a,t,y,u]]
+true.
+
+X:
+[debug] ?- a([q,e,r,a,t,y,u,c,b,x,v,n],[1,1,[c,a,t,y,u]],[1,2,[b,x,u]]).
+[[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[b,x,u]],[c,b,x]]
+true.
+
+[debug] ?- a([q,e,r,a,t,y,u,c,c,c,b,x,v,n],[1,1,[c,a,t,y,u]],[1,2,[b,x,v]]). [[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[b,x,v]],[c,c,c]]
+true.
+
+**/
+
+check_strings(String1,ML_db) :-
+ %%member([P1,S1,String2],ML_db),
+ %%member([P2,S2,String3],ML_db),
+ ML_db=[String2a,String3a],
+%%writeln(["String1,String2a,String3a",String1,String2a,String3a]),
+ String2=[0,0,String2a],
+ String3=[0,0,String3a],
+%%a(String1,String2,String3):-
+ length(String1,Length_string1),
+((writeln("Attempt 1"),
+check_strings_container1(Length_string1,String1,String2,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String2,[999,999,[]]],_,List2),
+ length(List2,Length_list2),
+ %%Length_list3 is Length_list2+1,
+ %%writeln(here),
+ check_strings_container1(Length_list2,List2,String3,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String3,[999,999,[]]],_,_List3),
+ writeln("Success")
+ %%,trace
+ )->true;
+ (writeln("Failed"),
+ writeln("Attempt 2"),
+ ((check_strings_container1(Length_string1,String1,String3,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String3,[999,999,[]]],_,List2),
+ length(List2,Length_list2),
+ %%Length_list3 is Length_list2+1,
+ %%writeln(here),
+
+ check_strings_container1(Length_list2,List2,String2,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String2,[999,999,[]]],_,_List3))->
+ writeln("Success");(writeln("Failed"),fail)))
+).
+
+check_strings_container1(Length_string1,String1,String2,Db,List2,List2b) :-
+check_strings1(Length_string1,String1,String2,Db,List2,List2b),not(var(List2b)).
+%%check_strings_container2(Length_string1,Length_string3,List1,String2,Db,List2,List2b) :-
+%%check_strings2(Length_string1,Length_string3,List1,String2,Db,List2,List2b),not(var(List2b)).
+
+
+ %% finds the length of each string - from position 1 to (length of string1) of string1
+ %% starts with the shortest possible string, then increases the length
+ %% repeat this for second string
+ %%string1
+
+ %%*** check with s2,s3 in db
+check_strings1(0,_String1,_String2,_Db,List2,List2) :- !.
+check_strings1(Length_string1,String1,String2,Db,List2,List2b) :-
+ %% finds the first str
+ %%length(List,Index),
+ length(List1,Length_string1),
+ append(_,List1,String1),
+ Length_string2 is Length_string1-1,
+ Length_string3 is Length_string1+1,
+ check_strings2(0,Length_string3,List1,String2,Db,List2,List2c),
+ (var(List2c)->
+ check_strings1(Length_string2,String1,String2,Db,List2c,List2b);List2c=List2b),!.
+
+check_strings2(Length_string,Length_string,_String1,_String2,_Db,List2,List2) :- !.
+check_strings2(Length_string1,Length_string3,List1,String2,Db,List2,List2b) :-
+
+
+ %%split_string(String4,SepandPad,SepandPad,String21),
+
+ %% go through s1, removing the first word each time, until v
+ %%Length_string11 is Length_string1-1,
+ length(List11,Length_string1),
+ append(List11,List2,List1),
+ Length_string2 is Length_string1+1,
+
+%%writeln([list11,List11]),
+
+ ((%%trace,
+ %%(List11=[z,a,b]->trace;true),
+ %%writeln([[_,_,List11],String2]),
+ %%notrace,
+ not(List11=[]),
+
+%%writeln(data_instance_k_classification1(Db
+%% ,List11,1,A)),
+ data_instance_k_classification1(Db
+ %%String2
+ ,List11,1,A),
+ %%writeln([string2,String2,list11,List11,a,A]),
+A=String2,%%[_,_,List11],
+ %%trace,
+
+ %%((List11=[z,a,b],A=[_,_,[z,t,b]],not(String2=[_,_,[c,z]]))->trace;notrace),
+ %%trace,
+%%writeln([string2=list11,String2=List11]),
+%%(List11=[y]->true%%trace
+%%;true),
+%%member(List11,Db),
+ %%**String2=[_,_,List11]
+ List2b=List2,%%,notrace
+ String2=[_,_,String21]
+ ,writeln([found,String21,List11])
+ )
+ ->(true
+ %%,writeln(List11)
+ );
+ check_strings2(Length_string2,Length_string3,List1,String2,Db,_List2c,List2b)),!.
+
+numbers(N2,N1,Numbers,Numbers) :-
+ N2 is N1-1,!.
+numbers(N2,N1,Numbers1,Numbers2) :-
+ N3 is N1+1,
+ append(Numbers1,[N1],Numbers3),
+ numbers(N2,N3,Numbers3,Numbers2).
+
diff --git a/Essay-Helper/short_essay_helper3.1_chicago.pl b/Essay-Helper/short_essay_helper3.1_chicago.pl
new file mode 100644
index 0000000000000000000000000000000000000000..b840fad8482db11bfe8b6c719a6f413ae072fa40
--- /dev/null
+++ b/Essay-Helper/short_essay_helper3.1_chicago.pl
@@ -0,0 +1,1310 @@
+%% new_nums(A),writeln1(A).
+
+%% backdated from this - which has no repeats and forward progress through essays, but has a bug in numbering pages in references, so backdated to version with repeats and random progress, made forward progress x kept this version and solved bug with pg info in db
+
+%% Prolog Short Essay Helper
+
+%% Keep 1,2,3 in aphors
+%% Certain number of reasons per paragraph
+%% Explains essay structure at start
+%% Exposition (negative terms not allowed, asks for 5 groups from text to take optionally enough notes about, which can revise) and critique
+%% Paraphrasing
+%% Converts x, explains x, asks about
+%% Allows citation of aphor
+%% Prints citations used so far
+%% Prints chapter, essay and allows changes (using text editor) at end.
+%% Outputs db file and br dicts for marking later
+
+%% *** Rewrite essay files with e.g. 1a. before aphors not 1. so not confused with aphors
+
+%% short_essay_helper("file.txt",5,E),writeln1(E).
+
+%%:- include('distances.pl').
+:- use_module(library(date)).
+:- include('../listprologinterpreter/la_strings').
+:- include('sheet_feeder.pl').
+
+:- dynamic critique3/1.
+:- dynamic agree_disagree/1.
+:- dynamic refs/1.
+:- dynamic chosen_quotes/1.
+:- dynamic string00_z/1.
+:- dynamic end_note_number/1.
+:- dynamic num_paras_exp/1.
+:- dynamic num_paras_crit/1.
+
+%%:- dynamic end_notes/1.
+
+add_1_to_end_note_number :-
+ end_note_number(N1),
+ N2 is N1+1,
+ retractall(end_note_number(_)),
+ assertz(end_note_number(N2)).
+
+choose(N2,B,B1,B2,C,Item) :-
+%%trace,
+(
+ choose2(N2,B,B1,B2,C,Item)->true;(Item="* All quotes exhausted. (*)"),N2=1,B="()",B1="()",B2=1,C=""%%,trace
+ ),
+ %%notrace,
+ !.
+choose2(N2,B,B1,B2,List0,List0) :-
+%%trace,
+ string00_z(String00),
+ choose_sentence_range(String00,N1,B,B1,B2,List0),
+ %%chosen_quotes(Chosen_quotes1),
+ %%trace,
+ %%length(List0,L),
+ %%numbers(L,1,[],N),
+ %%random_
+ %%member(N1,N),
+ %%
+ %%random_
+ %%member([N1,Item10],List0),
+
+ %%random_
+ %%**member(Item1,Item10),
+ N2 is N1+B2-1,
+ %%get_item_n(List0,N1,Item10),
+
+
+ %%**string_codes(Item10,List),
+ %%notrace,
+ %%**split_string(List,".\n",".\n",List2),
+
+ %%length(List2,L),
+ %%numbers(L,1,[],N),
+ %%random_
+ %%member(N1,N),
+ %%N2 is N1+B2-1,
+ %%random_
+ %%**member(Item1,List2),
+
+ %%get_item_n(List2,N1,Item1),
+
+ /**string_concat(E,D,Item1),
+ string_length(E,1),
+ downcase_atom(E,E1),
+ atom_string(E1,E2),
+ string_concat(E2,D,Item2),
+ string_length(E2,1),
+ string_concat(Item2,""%%"."
+ ,Item),
+ **/
+ delete(String00,[B,B1,B2,N1,List0],String00_a),
+ %%**delete(String00,[B,B1,B2|_],String00_a),
+ %%**delete(List0,[N1,Item10],List6),
+ %%findall([Item3,". "],(member(Item3,List2)),List3),
+ %%maplist(append,[List3],[List4]),
+ %%concat_list(List4,_List5),
+ %%append(List6,[]%%List5
+ %%,List7),
+ %%**(List6=[]->String00_b=String00_a;
+ %%**(%%trace,
+ %%**maplist(append,[[[B,B1,B2],List6]],[String00_c]),
+ %%**append(String00_a,[String00_c],String00_b)%%,notrace
+ %%**)),
+ retractall(string00_z(_)),
+ assertz(string00_z(String00_a))
+ %%trace,
+ %%writeln1(String00_b),notrace
+
+
+ %%,not(member(Item,Chosen_quotes1)),
+ %%append(Chosen_quotes1,[Item],Chosen_quotes2),
+ %%retractall(chosen_quotes(_)),
+ %%assertz(chosen_quotes(Chosen_quotes2))
+ .
+
+choose1(List0,Item) :-
+ random_member(Item,List0).
+
+delete_invisibles_etc(F,G) :-
+ findall(J,(member(H,F),atom_string(H,J),not(J="."),not(J=".."),not(string_concat(".",_,J))),G).
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+short_essay_helper(%%Filex,
+ String01,Key_words,
+ Reasons_per_paragraph) :-
+
+ retractall(num_paras_exp(_)),
+ assertz(num_paras_exp(5)),
+
+ retractall(num_paras_crit(_)),
+ assertz(num_paras_crit(5)),
+
+ retractall(string00_z(_)),
+ %%assertz(string00_z([])),
+
+ retractall(end_note_number(_)),
+ assertz(end_note_number(1)),
+
+ %%retractall(end_notes(_)),
+ %%assertz(end_notes([])),
+
+
+ retractall(critique3(_)),
+ assertz(critique3([])),
+
+ retractall(refs(_)),
+ assertz(refs([])),
+
+ retractall(chosen_quotes(_)),
+ assertz(chosen_quotes([])),
+
+ directory_files("sources/",F),
+ delete_invisibles_etc(F,G),
+%%trace,
+SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",
+ findall(String02h3,(member(Filex1,G),
+ string_concat("sources/",Filex1,Filex),
+ phrase_from_file_s(string(String00a), Filex),
+ string_codes(String02b,String00a),
+ atom_to_term(String02b,String02a,[]),
+
+ (String02a=[Az,Bz,Cz|String02c]->true;
+ (concat_list(["Error: ",Filex," not in format [\"Surname, A 2000, Title: Subtitle, Publisher, City.\",\"Surname, A 2000\",First_Page_Num,\"\",\"\",...\"]"],Notification1),writeln(Notification1),abort)),
+ %%String02c=String02d,
+ %%trace,
+ findall([Az,Bz,Cz,N1,String02cb],(
+
+ length(String02c,L),
+ numbers(L,1,[],N),
+ %%random_
+ member(N1,N),
+ get_item_n(String02c,N1,String02ca),
+
+ %%member(String02ca,String02c),
+ split_string(String02ca, ".\n\r", ".\n\r", String02cb)
+
+ %%member(String02cb1,String02cb)
+
+ ),String02cc),
+ %%maplist(append,[String02cc],[String02d]),
+
+ %%delete(String02cc,[_,[]],String02d),
+ String02cc=String02d,
+
+ findall([Az,Bz,Cz,N2,String02d2],(member([Az,Bz,Cz,N2,String02d1],String02d),
+ member(String02d2,String02d1),
+ downcase_atom(String02d2,String02e),
+ atom_string(String02e,String02f1),
+ split_string(String02f1, SepandPad, SepandPad, String02e1),
+ findall(String02g,(member(Key_words1,Key_words),
+ %%trace,
+ downcase_atom(Key_words1,Key_words11),
+ atom_string(Key_words11,Key_words12),
+findall(Key_words12,(member(Key_words12,String02e1)),String02g)
+ ),String02i),
+ not(maplist(equals_empty_list,String02i))
+
+ ),String02h31),
+
+ sort(String02h31,String02h3)
+
+ %%prepare_file_for_ml(String00,String02a)
+ ),String00z1),
+
+ %%,
+
+ %%trace,
+ %%writeln1([string00z1,String00z1]),
+%%findall(String02h2,(member([Ay,By,Cy,N1,String02h1],String00z1),
+ %% (String02h1=[]->String02h2=[];
+ maplist(append,[String00z1],[String00]),%%)
+ %%),String00z),
+
+%%delete(String00z,[],String00),
+
+
+term_to_atom(Key_words,Key_words_a),
+atom_string(Key_words_a,Key_words_b),
+ (String00=[]->(concat_list(["Error: No files in source folder or no instances of keywords ",Key_words_b," in files in source folder."],Notification2),writeln(Notification2),abort);true),
+
+ %%maplist(append,[[String00z1]],String00),
+%%maplist(append,[String00z],String00),
+ %%trace,
+assertz(string00_z(String00)),
+ %%writeln1([string00,String00]),
+ %%notrace,
+
+%%writeln1(String02),
+
+
+ generate_file_name(File1,File2),
+
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+ explain_structure(String01,Reasons_per_paragraph,File1),
+ exposition(String00,String01,Reasons_per_paragraph,Numbers,String02,Exposition),
+
+ %%concat_list(["Do you agree or disagree with ",String01," (a/d) ? "],String2ad),%%get_string(String2ad,either,one-not-ml,"","",String3ad),
+ choose1(["a"%%,"d"
+ ],String3ad),
+
+ (String3ad="a"->
+ (retractall(agree_disagree(_)),
+ assertz(agree_disagree(agree)));
+ (retractall(agree_disagree(_)),
+ assertz(agree_disagree(disagree)))),
+
+%%trace,
+critique(String00,String01,Reasons_per_paragraph,Numbers,String02,Critique),
+
+agree_disagree(Pole),
+
+ %%concat_list(["What is the future area of research from your essay about ",String01,"? "],Future_research_prompt),
+ %%trace,
+ %%get_string(Future_research_prompt,either,one-not-ml,"","",Future_research),
+%% choose_sentence_range(String00,),
+ choose(_N_page_ref,_String00a1,_String00a2,_String00a3,_String00a4,String00a5),
+ %%end_note_number(End_note_number),
+ concat_list(["In ",String01,", automation should apply to \"",String00a5,"\""%%.",End_note_number,""%% (",String00a2,", p. ",N_page_ref,")."
+ ],Future_research),
+ %%reference(String00a1,String00a2,N_page_ref,End_note_number),
+ %%add_1_to_end_note_number,
+
+ refs(R2),
+
+term_to_atom([Exposition,Critique,String3ad,Future_research,R2],File_contents),open_s(File1,write,Stream),write(Stream,File_contents),close(Stream),
+
+%% Output essay
+%%findall(_,(member(Exposition1,Exposition),Exposition1=
+
+%%writeln([r2,R2]),
+
+%%writeln1([Exposition,Critique,Future_research,R2]),
+
+write_essay(String01,Pole,Exposition,Critique,Future_research,R2,Essay,HTML),
+writeln1(Essay),
+
+ (open_s(File2,write,Stream1),
+%% string_codes(BrDict3),
+ write(Stream1,HTML),
+ close(Stream1)),!
+ .
+
+%% replace("a\nb","\n"," \n",F).
+%% F="a \nb \n".
+
+replace(A,Find,Replace,F) :-
+ split_string(A,Find,Find,B),findall([C,Replace],(member(C,B)),D),maplist(append,[D],[E]),concat_list(E,F).
+
+concat_list1(D,F) :-
+ maplist(append,[D],[E]),concat_list(E,F).
+
+write_essay(String01,Pole,Exposition,Critique,Future_research,R2,"",HTML) :-
+ write_heading(String01,_Heading),
+ write_introduction(String01,Pole,Critique,Introduction),
+ writeln1([introduction,Introduction]),
+ %%string_concat(Introduction," ",Introduction0),
+ write_exposition(Exposition,Exposition2a),
+ concat_list(["I will expose ",String01," in this half. ",Exposition2a],Exposition2),
+ %%string_concat(Exposition2,"\n",Exposition2a),
+ write_critique(Critique,Critique2a),
+ string_concat(Critique2a,"\n",Critique2b),
+ atom_string(Pole,Pole1),
+ concat_list(["I will ",Pole1," with ",String01," in this half. ",Critique2b],Critique2),
+ write_conclusion(String01,Pole,Critique,Future_research,Conclusion),
+ write_end_notes(R2,_End_notes,End_notes_no_heading),
+ write_references(R2,_References,Refs_no_heading),
+ %%concat_list([Heading,Introduction,Exposition2,Critique2,Conclusion,End_notes,References],
+ %%Essay),
+ strip_footnotes(Introduction,Introduction_1),
+ strip_footnotes(Conclusion,Conclusion_1),
+ concat_list([Introduction_1,Exposition2,Critique2,Conclusion_1],
+ Essay2),
+ %%trace,
+ reorder_numbers(Essay2,Essay21,End_notes_no_heading,End_notes_no_heading1),
+ replace(Essay21,"\n"," ",HTML1),
+ replace(Refs_no_heading,"\n"," ",Refs_no_heading2),
+ replace(End_notes_no_heading1,"\n"," ",End_notes_no_heading2),
+ concat_list(["",String01,"
",
+ String01,"
",HTML1,"
Endnotes
",End_notes_no_heading2,"
Bibliography
",Refs_no_heading2,""],HTML).
+
+strip_footnotes(A,B101):-
+ split_string(A,".",".",D),
+%%writeln1(D),
+ findall([B7,"."],(member(B,D),
+ split_string(B,"<","<",[B7|_])),B8),
+ maplist(append,[B8],[B81]),
+ concat_list(B81,B101).
+ %%,string_concat(B10,"\n",B101).
+
+
+
+reorder_numbers(Essay2,Essay21,End_notes_no_heading,End_notes_no_heading1) :-
+%%trace,
+ retractall(new_nums(_)),
+ assertz(new_nums([[0,0]])),
+ reorder_essay(Essay2,Essay21),
+ %%trace,
+ reorder_endnotes(End_notes_no_heading,End_notes_no_heading1).
+
+reorder_essay(Essay2,Essay21) :-
+ split_string(Essay2,"\n\r","\n\r",Essay23),
+ findall([B9,"\n"],(
+ %%trace,
+ member(C,Essay23),
+ split_string(C,".",".",D1),
+%%writeln1([d,D]),
+delete(D1," ",D),
+ findall([B7,"."],(member(A,D),
+ split_string(A,"<>","<>",Essay22),
+ %%trace,
+ ((
+ ((Essay22=[B1,B2,N1,B3,B4,B5,N2,B51|B6]->(assign_num(N1,N3),assign_num(N2,N4),
+ concat_list([B1,"<",B2,">",N3,"<",B3,">",B4,"<",B5,">",N4,"<",B51,">"|B6],B7)
+ )
+ ;(Essay22=[B1,B2,N1,B22|B3]->(assign_num(N1,N3),
+ concat_list([B1,"<",B2,">",N3,"<",B22,">"|B3],B7));([B7|_]=Essay22->true;(writeln(["Extra <> in essay.",Essay22]),abort))
+ ))->(true%%,notrace
+ );(%%notrace,
+ fail))))
+ ),B81),
+ %%notrace,
+ maplist(append,[B81],[B8]),
+ concat_list(B8,B9)),B101),
+ maplist(append,[B101],[B10]),
+ concat_list(B10,Essay21).
+
+reorder_endnotes(End_notes_no_heading,End_notes_no_heading1) :-
+ %% Replace instances in end notes
+ %%split_string(Essay2,"\n\r","\n\r",Essay23),
+ %%findall([B9,"\n"],(
+ %%member(C,Essay23),
+ split_string(End_notes_no_heading,"\n\r","\n\r",D),
+
+ %%retractall(new_nums(_)),
+ %%assertz(new_nums([0,0])),
+ findall([B7,".","\n"
+ ],(member(A,D),
+ split_string(A,".",".",Essay22),
+ (Essay22=[N1|B6]->(get_num(N1,N3),
+ concat_list([N3,"."|B6],B7));([B7|_]=Essay22->true;(writeln("Extra <> in essay."),abort)))),B81),
+ maplist(append,[B81],[B8]),
+ concat_list(B8,End_notes_no_heading1).
+ %%an
+
+get_num(N,N1) :-
+ (string(N)->
+ number_string(N0,N);N0=N),
+
+ new_nums(New_nums),
+ member([N0,N1],New_nums).
+
+assign_num(N,N3) :-
+ (string(N)->
+ number_string(N0,N);N0=N),
+ new_nums(New_nums),
+ find_last(New_nums,[_,N2]),
+ (string(N2)->
+ number_string(N21,N2);N2=N21),
+ N3 is N21+1,
+ append(New_nums,[[N0,N3]],New_nums2),
+ retractall(new_nums(_)),
+ assertz(new_nums(New_nums2)).
+
+
+write_heading(String01,Heading) :-
+ concat_list([String01,"\n","\n"],Heading).
+
+write_introduction(String01,Pole1,Critique,Introduction) :-
+ %% The heading should be in the form "Author's topic"
+ atom_string(Pole1,Pole2),
+ findall([Paragraph_topic_sentence," "],(member(A,Critique),A=[_,[Paragraph_topic_sentence|_]|_]),Paragraph_topic_sentences1),
+ concat_list1(Paragraph_topic_sentences1,Paragraph_topic_sentences2),
+ concat_list(["I will critically analyse ",String01,". ",
+ "I will ",Pole2," with ",String01,". ",
+ Paragraph_topic_sentences2,"\n\n"],Introduction).
+
+write_conclusion(String01,Pole1,Critique,Future_research,Conclusion) :-
+ atom_string(Pole1,Pole2),
+ findall([Paragraph_topic_sentence," "],(member(A,Critique),A=[_,[Paragraph_topic_sentence|_]|_]),Paragraph_topic_sentences1),
+ concat_list1(Paragraph_topic_sentences1,Paragraph_topic_sentences2),
+ concat_list([
+ Paragraph_topic_sentences2,
+ "I have ",Pole2,"d with ",String01,". ",
+ Future_research%%,"\n"%%\n"
+ ],Conclusion).
+
+write_end_notes(R2,References,Refs_no_head) :-
+ find_end_notes1(R2,Refs_no_head),%%,(member([String2r3,Ref1,Page_num,End_note_number],R2),
+ %%findall([Reference,"\n"],member(Reference,R2),References1),
+%%trace, writeln1(R3),
+ %%concat_list1(R3,References2),
+ %%concat_list([References2],Refs_no_head),
+ concat_list(["Endnotes","\n\n",Refs_no_head],References).
+
+find_last([],[]) :- !.
+find_last(A,B) :-
+ reverse(A,C),C=[B|_].
+
+find_end_notes1(R1,R2) :-
+%%trace,
+ find_end_notes(R1,[],R3),
+ %%writeln1([r3,R3]),
+ findall(A,member([_,A],R3),B),
+ %%writeln1([b,B])
+ concat_list1(B,R2)%%,
+ %%writeln1([r2,R2])
+.
+
+find_end_notes([],R,R) :- !.
+find_end_notes(R1,R2,R3) :-
+ R1=[[String2r3,Ref1,Page_num,End_note_number]|Rest],
+ (R2=[]->String2r31="";find_last(R2,[[String2r31,_Ref11,Page_num1,_End_note_number1],_])),
+ ((String2r3=String2r31)->
+ (Page_num=Page_num1->
+ append(R2,[[[String2r3,Ref1,Page_num,End_note_number],
+ [End_note_number,". Ibid.","\n"]]],R5);
+ append(R2,[[[String2r3,Ref1,Page_num,End_note_number],
+ [End_note_number,". Ibid., p. ",Page_num1,".","\n"]]],R5));
+ (member([[String2r3,_Ref12,_Page_num2,_End_note_number2],_],R2)->
+ append(R2,[[[String2r3,Ref1,Page_num,End_note_number],
+ [End_note_number,". ",Ref1,", p. ",Page_num,".","\n"]]],R5);
+ %%(String2r31=""->R2=R5;
+ append(R2,[[[String2r3,Ref1,Page_num,End_note_number],
+ [End_note_number,". ",String2r3,", p. ",Page_num,".","\n"]]],R5))),%%),
+ find_end_notes(Rest,R5,R3).
+
+write_references(R2,References,Refs_no_head) :-
+ findall([Reference,"\n"],member([Reference,_Ref11,_Page_num1,_End_note_number1],R2),References3),
+ sort(References3,References1),
+ concat_list1(References1,References2),
+ concat_list([References2],Refs_no_head),
+ concat_list(["Bibliography","\n\n",References2],References).
+
+%%a1
+%% write_exposition([[[1,"g1"]],[[1,1,_15410,_15416,"a1","a1 is in g1."],[1,2,_15352,_15358,"a2","g1 contains a2."]]],A),writeln1(A).
+%% A = "a1 a1 is in g1. a2 g1 contains a2. ".
+
+%% write_exposition([[[1,"g1"],[1,"g1"]],[[1,1,_15410,_15416,"a1","a1 is in g1."],[1,2,_15352,_15358,"a2","g1 contains a2."],[1,1,_15410,_15416,"a1","a1 is in g1."],[2,2,_15352,_15358,"a2","g1 contains a2."]]],A).
+%% A = "a1 a1 is in g1. a2 g1 contains a2. a1 a1 is in g1. a2 g1 contains a2. ".
+
+write_exposition(Exposition,Essay4b) :-
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+
+Exposition=[_,Exposition2],
+
+
+findall([Essay4c%%,"\n"
+],(member(Numbera11,Numbers),
+
+
+%% not "" with findall
+findall(Essay4,(
+%%member(Exposition1,Exposition),
+%%Exposition1=[Numbera11,_Number3a,_String3,_String3a,String5a,String3y,_String3ay,String5a1,_CNumber2aa,_CNumber3aa,CString5a1a,_CNumber2a1,_CNumber3a1,_LastCStrings,String5aaa],
+
+
+%%output_exposition(Numbera11,Exposition2,"",Essay1),
+
+ %%findall( Essay4,(
+ member(Exposition1,Exposition2),Exposition1=[Numbera11,_Number3a,_String3,_String3a,String5a,Group_link],
+ concat_list([String5a," ",Group_link," "],Essay4)
+ %%delete(Exposition,Exposition1,Exposition2)
+ %%output_exposition(Numbera11,Exposition2,Essay4,Essay6)
+),Essay4a),
+concat_list(Essay4a,Essay4c1),%%trace,
+(Essay4c1=""->Essay4c="";(string_concat(Essay4c10," ",Essay4c1),concat_list([Essay4c10,"\n"],Essay4c)))
+
+),Essay4d),
+
+maplist(concat_list,Essay4d,Essay4f),
+concat_list(Essay4f,Essay4b)
+%%concat_list([Essay4e,"\n"],Essay4b)
+%%concat_list([Essay1," ",Essay3],Essay2),
+ %%concat_list([Essay2,"\n"],Essay23))
+%%,Essay3a),
+ %%concat_list(Essay3a,Essay4a)
+.
+%% *** HTML ( not \n)
+
+%%%%%
+%%a
+
+%% write_critique([[1,["heading is e12",[1,1,_25346,_25352,"e1",_25370,_25376,"e12"],[1,2,_25412,_25418,"e2",_25436,_25442,"e22",1,1,"e12",0,0,"e22","e12 is e22"]]]],A),writeln1(A).
+%% A = "heading is e12 e1 e12 e2 e22 e12 is e22 \n".
+
+write_critique(Critique,Essay4):-
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+
+findall(Essay23,(member(Numbera11,Numbers),
+
+%% not "" with findall
+%%findall(Essay22,(
+member(Critique1,Critique),
+%%Critique1=[Numbera11,_Number3a,_String3,_String3a,String5a,String3y,_String3ay,String5a1,_CNumber2aa,_CNumber3aa,CString5a1a,_CNumber2a1,_CNumber3a1,_LastCStrings,String5aaa],
+
+Critique1=[Numbera11,[Para_topic_sent,[_Number2a,_Number3a,_String3,_String3a,String5a,_String3y,_String3ay,String5a1]|Critique2]],
+
+concat_list([Para_topic_sent," ",String5a," ",String5a1," "],Essay0),output_critique(Numbera11,Critique2,String5a1,Essay0,Essay1),
+
+ concat_list([Essay1,Para_topic_sent,"\n"],%%Essay22)
+
+%%),
+Essay23)),Essay3),
+ concat_list(Essay3,Essay4)
+.
+%% *** HTML ( not \n)
+
+output_critique(_Numbera11,[],_String5a1a,Essay,Essay) :- !.
+output_critique(Numbera11,Critique,CString5a1a,Essay1,Essay2) :-
+findall( Essay6,(member(Critique1,Critique),Critique1=[Numbera11,_Number3a,_String3,_String3a,String5a,_String3y1,_String3ay,String5a1,
+_CNumber2aa,_CNumber3aa,CString5a1a,
+ _CNumber2a1,_CNumber3a1,_LastCStrings,
+ String5aaa],
+ concat_list([String5a," ",String5a1," ",String5aaa," "],Essay4),
+ delete(Critique,Critique1,Critique2),
+ output_critique(Numbera11,Critique2,String5aaa,Essay4,Essay6)
+),Essay33),
+%%trace,
+(Essay33=[]->concat_list([Essay1%%," "
+],Essay2);%%(Essay33=[Essay3]->concat_list([Essay1," ",Essay3],Essay2);%%(Essay33=[Essay3|[E33]]-> concat_list([Essay1," ",Essay3,E33],Essay2);
+(Essay33=[Essay3|E33], concat_list(E33,E34),concat_list([Essay1,%%" ",
+Essay3,E34],Essay2)))
+%%)
+%%)
+.
+
+
+/**critique(String00,String01,Reasons_per_paragraph,Numbers,Critique).
+ **/
+
+generate_file_name(File1,File2) :-
+ get_time(TS),stamp_date_time(TS,date(Year,Month,Day,Hour1,Minute1,Seconda,_A,_TZ,_False),local),
+ concat_list(["file",Year,Month,Day,Hour1,Minute1,Seconda,".txt"],File1),
+ concat_list(["file",Year,Month,Day,Hour1,Minute1,Seconda,".html"],File2).
+
+
+explain_structure(String01,Reasons_per_paragraph,_File1) :-
+ concat_list(["The Short Essay Helper will automatically structure and write your essay about ",String01," with ",Reasons_per_paragraph," reasons per paragraph.","\n",
+ "The Helper will help write an exposition (which summarises but doesn't critique the idea), a critique (which agrees with or disagrees with the topic), the introduction and the conclusion (which state whether you agreed or disagreed with the topic, etc.). Citations will be automatically made.","\n","Note: Generated essays are not to be handed in, and you need to paraphrase and cite work you have referenced. Your grade depends on whether you agree or disagree and how many breasonings you breason out. Check the referencing style is appropriate for your class.","\n"],String1),
+ writeln(String1).
+
+choose_sentence_range(String00,N2,B,B1,B2,C) :-
+ length(String00,L),
+ numbers(L,1,[],N),
+ %%random_
+ member(N1,N),
+ get_item_n(String00,N1,A),
+ A=[B,B1,B2,N2,C].
+ %%N2 is N1+B2-1.
+ %%random_member(A,String00),
+
+exposition(String00,_String01,Reasons_per_paragraph,Numbers,ML_db,Exposition1) :-
+ num_paras_exp(Num_paras_exp),
+
+ length(List1,Num_paras_exp), %% 5->1 paragraphs per exposition
+ append(List1,_,Numbers),
+ length(List2,Reasons_per_paragraph),
+ append(List2,_,Numbers),
+
+ %%string_codes(String001,String00),
+ %%writeln(String001),
+ findall([Number1,Exposition2],(
+ %%trace,
+member(Number1,List1),%%concat_list(["What is group ",Number1," of 5 in the exposition that groups ideas about ",String01,"? "],String1),%%get_string(String1,either,one-not-ml,"","",%ML_db,Exposition2)
+%% ** Doesn't print this
+%%choose_sentence_range(String00,N_page_ref,String00a1,String00a2,_String00a3,String00a4),
+ %%trace,
+ choose(_N_page_ref,_String00a1,_String00a2,_String00a3,_String00a4,String00a5),
+ %%end_note_number(End_note_number),
+ %%add_1_to_end_note_number,
+ concat_list(["",String00a5%%,"",End_note_number,""%%," (",String00a2,", p. ",N_page_ref,") "
+ ],Exposition2)
+ %%reference(String00a1,String00a2,N_page_ref,End_note_number)
+ ),Exposition3),
+
+
+ findall([Number2,Number3,String3,String3a,String5a,String5],(
+ member(Number2,List1),member(Number3,List2),get_item_n(Exposition3,Number2,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you how the quote you are about to enter relates to the paragraph topic."],String2b),writeln(String2b),
+ %%trace,
+exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5)
+ ),Exposition4),
+ Exposition1=[Exposition3,Exposition4].
+
+exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5):-
+ (%%concat_list(["What is the paragraph number of the quote about the paragraph topic ",Item1,"? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote about the paragraph topic ",Item1,"? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote about the paragraph topic ",Item1,"? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+ %%choose_sentence_range(String00,N_page_ref,String00a1,String00a2,_String00a3,String00a4),
+ %%trace,writeln(here1),
+ split_string(Item1,"<","<",[Item01|_]),
+ %%trace,
+ choose(N_page_ref,String00a1,String00a2,_String00a3,_String00a4,String00a5),
+ end_note_number(End_note_number),
+ add_1_to_end_note_number,
+ concat_list(["I agree with ",Item01," because ",String00a5,"",End_note_number,"."%%" (",String00a2,", p. ",N_page_ref,")."
+ ],String5a),
+ reference(String00a1,String00a2,N_page_ref,End_note_number),
+
+ %%concat_list(["How does the quote you entered (",String5a,") relate to the paragraph topic ",Item1,"? "],String4),
+ %%trace,
+ %%SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",%%downcase_atom(Item1,String41a),split_string(String41a, SepandPad, SepandPad, Item1a),
+
+ %%get_string(String4,either,one-not-ml,Item1a,String3aa,String5)
+
+ %%choose_sentence_range(String00,N_page_ref1,String00a11,String00a21,_String00a31,String00a41),
+
+ split_string(Item1,"<","<",[Item01|_]),
+
+choose(N_page_ref1,String00a11,String00a21,_String00a31,_String00a41,String00a51),
+ end_note_number(End_note_number1),
+ add_1_to_end_note_number,
+ concat_list(["I agree with ",Item01," because \"",String00a51,"\"", %%(",String00a21,
+ "",End_note_number1,"."%%", p. ",N_page_ref1,")."
+ ],String5),
+ reference(String00a11,String00a21,N_page_ref1,End_note_number1)
+)
+ ->true;exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5).
+
+%% Agree or disagree
+
+critique(String00,String01,Reasons_per_paragraph,Numbers,ML_db,Critique1) :-
+ num_paras_crit(Num_paras_crit),
+
+ length(List1,Num_paras_crit), %% 5->1 paragraphs per critique
+ append(List1,_,Numbers),
+ length(List2,Reasons_per_paragraph),
+ append(List2,_,Numbers),
+
+ %%string_codes(String001,String00),
+ %%writeln(String001),
+
+ retractall(critique3(_)),
+ assertz(critique3([])),
+
+
+ findall([Number2a,Critique2],(
+%% Reason 1
+
+member(Number2a,List1),
+%%List1=[Number2a|List1a],
+List2=[Number3a|List2a],
+%%trace,
+
+
+critique_reason1(String00,String01,Number2a,Number3a,Reasons_per_paragraph,ML_db,Critique3,Topic_paragraph_link),
+
+critique_reasons_2_to_n(String00,Number2a,List2a,Critique3,Reasons_per_paragraph,ML_db,Critique4),
+
+ append_list2([[Topic_paragraph_link],Critique3,Critique4],Critique2)),Critique1).
+
+ critique_reason1(String00,String01,Number2a,Number3a,Reasons_per_paragraph,ML_db,Critique3,Topic_paragraph_link) :-
+
+ %%member(Number2,List1),member(Number3,List2),
+ %%get_item_n(Critique3,Number2a,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you for your comment on the quote you are about to enter."],String2b),writeln(String2b),
+ %% Later: connections
+
+ %%trace,
+critique2(String00,String01,ML_db,String3,String3a,String5a,_String3y2,String3ay,String5a1,Topic_paragraph_link),
+ %%),Critique4).
+ Critique3=[[Number2a,Number3a,String3,String3a,String5a,_String3y3,String3ay,String5a1]].
+
+critique2(String00,String01,ML_db,String3,String3a,String5a,String3y,String3ay,String5a1,Topic_paragraph_link):-
+ (%%concat_list(["What is the paragraph number of the quote to comment on? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote to comment on? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote to comment on? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+
+ %%choose_sentence_range(String00,N_page_ref1,String00a11,String00a21,_String00a31,String00a41),
+ choose(N_page_ref1,String00a11,String00a21,_String00a31,_String00a41,String00a51),
+ end_note_number(End_note_number1),
+ add_1_to_end_note_number,
+ concat_list(["\"",String00a51,"\"",End_note_number1,"."%% (",String00a21,", p. ",N_page_ref1,")."
+ ],String5a),
+ reference(String00a11,String00a21,N_page_ref1,End_note_number1),
+
+ %%concat_list(["Is your comment from a quote (y/n)? "],String2yn),get_string(String2yn,either,one-not-ml,"","",String3yn),
+
+ %%agree_disagree(Pole),
+
+ (%%String3yn="y"
+ true->
+ (%%concat_list(["What is the paragraph number of the comment? "],String2y),get_number(String2y,String3y),
+ %%concat_list(["What is the sentence number of the comment? "],String2ay),get_number(String2ay,String3ay),
+ %%trace,
+ %%member1a([String3y,String3ay,String3aay],ML_db),
+
+ %% use either original x or paraphrase
+
+ %%concat_list(["What is the comment that is from the quote? "],String4ac),
+ %%trace,
+ %%get_string(String4ac,either,one-not-ml-ref,"",String3aay,String5a1)
+
+ %%choose_sentence_range(String00,N_page_ref2,String00a12,String00a22,_String00a32,String00a42),
+ choose(N_page_ref2,String00a12,String00a22,_String00a32,_String00a42,String00a52),
+ end_note_number(End_note_number2),
+ add_1_to_end_note_number,
+
+ concat_list(["\"",String00a52,"\"",End_note_number2,"."%% (",String00a22,", p. ",N_page_ref2,")."
+ ],String5a1),
+ reference(String00a12,String00a22,N_page_ref2,End_note_number2)
+
+ )
+
+ ;(String3y=0,String3ay=0,
+ %%concat_list(["What is the comment? "],String4ac),%%get_string(String4ac,either,one-not-ml,"","",%%String5a,
+%% String5a1)
+
+ %%choose_sentence_range(String00,N_page_ref3,String00a13,String00a23,_String00a33,String00a43),
+ choose(_N_page_ref3,_String00a13,_String00a23,_String00a33,_String00a43,String00a53),
+ concat_list(["\"",String00a53,"\"."],String5a1)
+ %%reference(String00a13)
+ %%" (",String00a23,", p. ",N_page_ref3,")."
+
+)),
+
+ %%concat_list(["How does the comment ",String5a1," relate to the essay topic ",String01,"? "],Topic_paragraph_link_prompt),
+ %%trace,
+
+ %%downcase_and_split(String5a1,String5a1ds),
+ %%downcase_and_split(String01,String01ds),
+ %%get_string(Topic_paragraph_link_prompt,either,one-not-ml,String5a1ds,String01ds,Topic_paragraph_link)
+
+ (string_concat(String5a1_az,".",String5a1)->true;String5a1_az=String5a1), %%choose_sentence_range(String00,N_page_ref4,String00a14,String00a24,_String00a34,String00a44),
+ %%choose(N_page_ref4,String00a14,String00a24,_String00a34,String00a44,String00a54),
+ %%trace,
+ split_string(String01,"(","(",[String01_a|_]),
+ split_string(String01_a,"<","<",[String01_a0|_]),
+ strip_footnotes(String5a1_az,String5a1_az_2),
+
+ concat_list([String01_a0," is because ",String5a1_az_2,"."%% because of ",String00a54," (",String00a24,", p. ",N_page_ref4,")."
+ ],Topic_paragraph_link)
+ %%reference(String00a14)
+
+ /**
+ %% conn - choose connected comments
+ concat_list(["How does the quote you entered (",String5a,") relate to the paragraph topic ",Item1,"? "],String4),
+ %%trace,
+ SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",downcase_atom(Item1,String41a),split_string(String41a, SepandPad, SepandPad, Item1a),
+
+ get_string(String4,either,two,Item1a,String3aa,String5)
+ **/
+ )
+ ->true;critique2(String00,String01,ML_db,String3,String3a,String5a,String3y,String3ay,String5a1,Topic_paragraph_link).
+
+
+
+critique_reasons_2_to_n(String00,Number2a,List2a,Critique3,Reasons_per_paragraph,ML_db,Critique4) :-
+ retractall(critique3(_)),
+ assertz(critique3(Critique3)),
+%%trace,
+/** critique3(Critique31),
+ append(Critique31,Critique3,Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32)),
+**/
+%%notrace,
+findall([Number2a,Number3a,String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa],(
+ %%member(Number2,List1a),
+ member(Number3a,List2a),
+ %%get_item_n(Critique3,Number2a,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you for your comment on the quote you are about to enter."],String2b),writeln(String2b),
+ %% Later: connections
+
+
+ %%trace,
+critique3(String00,ML_db,%%Critique3,
+String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa)
+
+
+/**
+ trace,
+ critique3(Critique31),
+ append(Critique31,[[String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32))
+**/
+
+),
+ Critique4).
+
+ %%Critique3=[].
+
+critique3(String00,ML_db,%%Critique3,
+String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa):-
+ (%%concat_list(["What is the paragraph number of the quote to comment on? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote to comment on? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote to comment on? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+ %%trace,
+ %%choose_sentence_range(String00,N_page_ref4,String00a14,String00a24,_String00a34,String00a44),
+ choose(N_page_ref4,String00a14,String00a24,_String00a34,_String00a44,String00a54),
+ end_note_number(End_note_number4),
+ add_1_to_end_note_number,
+ concat_list(["\"",String00a54,"\"",End_note_number4,"."%% (",String00a24,", p. ",N_page_ref4,")."
+ ],String5a),
+ reference(String00a14,String00a24,N_page_ref4,End_note_number4),
+
+
+ %%concat_list(["Is your comment from a quote (y/n)? "],String2yn),%%get_string(String2yn,either,one-not-ml,"","",String3yn),
+
+ %%agree_disagree(Pole),
+
+ (true->%%String3yn="y"->
+ (%%concat_list(["What is the paragraph number of the comment? "],String2y),get_number(String2y,String3y),
+ %%concat_list(["What is the sentence number of the comment? "],String2ay),get_number(String2ay,String3ay),
+ %%trace,
+ %%member1a([String3y,String3ay,String3aay],ML_db),
+
+ %% use either original x or paraphrase x
+ %%trace,
+ %%concat_list(["What is the comment that is from the quote? "],String4ac),
+ %%trace,
+ %%get_string(String4ac,either,one-not-ml-ref,"",String3aay,String5a1)
+
+ %%choose_sentence_range(String00,N_page_ref5,String00a15,String00a25,_String00a35,String00a45),
+ choose(N_page_ref5,String00a15,String00a25,_String00a35,_String00a45,String00a55),
+ end_note_number(End_note_number5),
+ add_1_to_end_note_number,
+ concat_list(["\"",String00a55,"\"",End_note_number5,"."%% (",String00a25,", p. ",N_page_ref5,")."
+ ],String5a1),
+ reference(String00a15,String00a25,N_page_ref5,End_note_number5)
+
+ %%,trace
+ )
+
+ ;(String3y=0,String3ay=0,
+ concat_list(["What is the comment? "],String4ac),
+
+ %% This is never chosen
+ get_string(String4ac,either,one-not-ml,"","",%%String5a,
+ String5a1))),
+ %%*** assertz recurse not findall new critique3 x
+
+
+ %%trace,
+ critique3(Critique31),
+ append(Critique31,[[0,0,String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32)),
+
+ critique3(Critique33),
+
+
+((
+
+
+ %%critique3(Critique3),
+ length(Critique33,LCritique3),
+ %%length(List1,LCritique3),
+ %%notrace,
+ numbers(LCritique3,1,[],List1),
+ %%trace,
+ %%append(List1,_,Numbers),
+ %%Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+ %%trace,
+
+findall([N," - ",CString5a1,"\n"],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString3,_CString3a,_CString5a,_CString3y,_CString3ay,CString5a1])),CStrings1),
+
+findall([N,CNumber2a,CNumber3a,CString5a1],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString31,_CString3a1,_CString5a1,_CString3y1,_CString3ay1,CString5a1])),CStrings2),
+
+%%trace,
+
+%%CStrings=[CStrings1,CStrings2],
+reverse(CStrings2,CStringsR),CStringsR=[[_,CNumber2a1,CNumber3a1,LastCStrings]|CStringsR1],
+reverse(CStringsR1,CStringsRR),
+
+reverse(CStrings1,CStringsR10),CStringsR10=[_|CStringsR11],
+reverse(CStringsR11,CStringsRR1),
+
+append_list2(CStringsRR1,CStrings11),
+concat_list(CStrings11,_CStrings12),
+%%concat_list(["Please select a comment to connect the comment ",LastCStrings," to:","\n",CStrings12],ConnectionNumberPrompt),
+%%get_number(ConnectionNumberPrompt,ConnectionNumber),
+%numbers(
+
+%% *** Choose phrase which is similar to a previous phrase
+
+%% findall([N," - ",CString5a1,"\n"],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString3,_CString3a,_CString5a,_CString3y,_CString3ay,CString5a1]),
+
+ /**SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",findall([CString5a1Z2,CString5a1Z5],(downcase_atom(CString5a1,CString5a1Z1),atom_string(CString5a1Z1,CString5a1Z2),split_string(CString5a1,SepandPad,SepandPad,CString5a1Z3),
+ Connectors=
+ ["the","a","i","on","with","of","an","for","to",
+ "was","were","and","in","my","from","out","by"],
+ %% find distances between terms, closest to sent
+ subtract(CString5a1Z3,Connectors,CString5a1Z5),
+ ),CString5a1Z4),
+**/
+choose1(List1,ConnectionNumber),
+ member([ConnectionNumber,CNumber2aa,CNumber3aa,CString5a1a],CStringsRR),
+
+ %%SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",%%downcase_atom(CString5a1a,CString5a1a1),split_string(CString5a1a1, SepandPad, SepandPad, CString5a1a2),
+
+ %%CNumber2a1,CNumber3a1,
+ %%downcase_atom(LastCStrings,LastCStrings_a),split_string(LastCStrings_a, SepandPad, SepandPad, LastCStrings_a1),
+
+
+ %% conn - choose connected comments, this to a previous comment
+ %%trace,
+
+ %%concat_list(["How does ",LastCStrings," connect to ",CString5a1a,"? "],ConnectionPrompt),
+
+ %%get_string(ConnectionPrompt,either,one-not-ml,CString5a1a2,LastCStrings_a1,String5aaa)
+
+ string_concat(LastCStrings_az,".",LastCStrings),
+ string_concat(CString5a1a_az1,".",CString5a1a), %%choose_sentence_range(String00,N_page_ref6,String00a16,String00a26,_String00a36,String00a46),
+
+ split_string(LastCStrings_az,"(","(",[LastCStrings_az_a|_]),
+
+replace(CString5a1a_az1,"\"","",CString5a1a_az),
+replace(LastCStrings_az_a,"\"","",LastCStrings_az_a1),
+ split_string(CString5a1a_az,"<","<",[CString5a1a_az_1|_]),
+ split_string(LastCStrings_az_a1,"<","<",[LastCStrings_az_a1_1|_]),
+
+choose(_N_page_ref6,_String00a16,_String00a26,_String00a36,_String00a46,_String00a56),
+ concat_list([LastCStrings_az_a1_1," because ",CString5a1a_az_1,"."%%" because ",String00a56," (",String00a26,", p. ",N_page_ref6,")."
+ ],String5aaa)
+ %%reference(String00a16)
+
+
+ )->true;(
+
+ %% If the section since updating dynamic critique comments fails, prevent doubling of critique comments
+
+ critique3(Critique311),
+ reverse(Critique311,Critique312),
+ Critique312=[_|Critique313],
+ reverse(Critique313,Critique314),
+ retractall(critique3(_)),
+ assertz(critique3(Critique314)),fail
+
+ ))
+
+/** Critique4=[String3,String3a,String5a,String3y,String3ay,String5a1,
+ CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa],
+ **/
+ /**
+ critique3(Critique31),
+ append(Critique31,[[String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32))
+**/
+
+ )
+ %% Retries the predicate if it fails
+ ->true;critique3(String00,ML_db,%%Critique3,
+ String3,String3a,String5a,String3y,String3ay,String5a1,
+ CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa
+ ).
+
+
+
+
+member1a([String3,String3a,String3aa],ML_db) :-
+ member([String3,String3a,String3aa],ML_db),!.
+
+
+get_item_n(Exposition,Number1,Item) :-
+ Number2 is Number1-1,
+ length(List,Number2),
+ append(List,[Item|_],Exposition).
+
+get_number(Prompt1,Number) :-
+ %%concat_list(Prompt1,Prompt2),
+ (%%repeat,
+ writeln(Prompt1),read_string(user_input, "\n", "\r", _End1, String),split_string(String, ",", " ", Value1),Value1=[Value2],number_string(Number,Value2)).
+
+
+/**
+get_string(Prompt1,String1) :-
+ concat_list(Prompt1,Prompt2),
+ (repeat,write(Prompt2),read_string(String1),not(String1="")).
+**/
+
+equals_empty_list([]).
+
+downcase_and_split(String1, String2) :-
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ downcase_atom(String1,String3),split_string(String3, SepandPad, SepandPad, String2).
+
+get_string(Prompt2,Flag1,Flag2,ML_db0,ML_db1,String2) :-
+%%writeln1(get_string(Prompt2,Flag1,Flag2,ML_db1,String2)),
+ %%concat_list(Prompt1,Prompt2),
+ %%trace,
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ %%(repeat,
+ (Flag2=one-not-ml-ref->(concat_list(["Note: Enter in-text reference using AGPS, e.g.\n","The first work supports the second work (Surname 2000, pp. 18-9).\n","Surname (2000, pp. 18-9) states that ...\n","Remember to use words like \"also\", \"moreover\" and \"in addition\" before the sentence."],String_a1),writeln(String_a1));true),
+ writeln(Prompt2),read_string(user_input, "\n", "\r", _End2, String2aa),%%not(String2aa=""),
+ %%String2aa=[String2aaa],
+ downcase_atom(String2aa,String3),split_string(String3, SepandPad, SepandPad, String4),
+ Neg_term_list=["no","not","don","t","shouldn","wouldn","disagree","differ","dislikes","disagrees","differs","dislikes","disagreed","differed","disliked","negative","negation","non","negate","negates","negated","but","however","isn","lack"],
+ (Flag1=%%non_negative
+ positive->(
+
+ (findall(Item11,(
+
+ member(Item1,String4),
+ findall(Item1,(
+member(Item2,Neg_term_list),(Item1=Item2->(write("Error: Contains the negative term \""),write(Item1),writeln("\".")))),Item11)),Item12)),
+
+maplist(equals_empty_list,Item12)
+
+);
+ ((Flag1=negative->((member(Item1,String4),member(Item1,Neg_term_list))->true;(writeln("Error: Contains no negative term, one of:"),writeln(Neg_term_list),fail));true)->true;Flag1=either)),
+ (Flag2=one-not-ml->String2=String2aa;
+ (Flag2=one-not-ml-ref->
+ (refs(R1),writeln("What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.\n"),writeln("Existing references (copy one or many delimited with \"\\n\"):"), findall(_,(member(R11,R1),writeln(R11)),_),read_string(user_input, "\n", "\r", _End3, String2r),not(String2r=""),%%downcase_atom(String2r,_String3r),
+ String2=String2aa,split_string(String2r,"\n\r","\n\r",String2r3),
+ %%trace,
+ retractall(refs(_)),maplist(append,[[R1,String2r3]],[String2r21]),
+ sort1(String2r21,String2r2),
+ assertz(refs(String2r2))%%split_string(String3r, SepandPad, SepandPad, String4)
+ );
+(Flag2=one->(%%split_string(String4,SepandPad,SepandPad,String21),
+ writeln("Attempt 1"),
+
+ (length(String4,Length_string1),
+(check_strings_container1(Length_string1,String4,[0,0,ML_db1],[[0,0,[xxx,xxx,xxx,xxx,xxx]],[0,0,ML_db1],[999,999,[]]],_,_List2)->
+ writeln("Success");(writeln("Failed"),fail))
+ %%(%%data_instance_k_classification1([[0,0,[xxx,xxx,xxx,xxx,xxx]],[0,0,ML_db1]%%,[999,999,[]]
+ %%],[0,0,String4]%%21
+ %%,1,String4a%%21
+ %%),
+ %%String4=String4a)
+ %%)->
+ %%(%%String4a=[_,_,String4a1],
+ %%writeln([found,String4a,String4]),
+%%writeln("Success"));
+ %%(writeln("Failed"),fail)
+ %%
+ ));
+ (Flag2=%%[
+ two,%%,P1,S1,P2,S2],
+ %%trace,
+ append([ML_db0],[ML_db1],ML_db2),
+ check_strings(String4,ML_db2%%,P1,S1,P2,S2
+ ))))).
+
+reference(String2r,Ref1,Page_num,End_note_number) :-
+%%writeln([[string2r,ref1,page_num,end_note_number],
+%%[String2r,Ref1,Page_num,End_note_number]]),
+%%trace,
+ (refs(R1),%%writeln("What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.\n"),writeln("Existing references (copy one or many delimited with \"\\n\"):"),
+ %%findall(_,(member(R11,R1),writeln(R11)),_),%%read_string(user_input, "\n", "\r", _End4, String2r),
+ %%(Ref1="()"->trace;true),
+ not(String2r=""),%%downcase_atom(String2r,_String3r),
+ %%String2=String2aa,
+ split_string(String2r,"\n\r","\n\r",String2r3),
+ %%trace,
+ retractall(refs(_)),maplist(append,[[String2r3,[Ref1,Page_num,End_note_number]]],[String2r21]),
+ %%sort1(String2r21,String2r2),
+ [String2r21]=String2r2,
+ append(R1,String2r2,String2r4),
+ assertz(refs(String2r4))%%split_string(String3r, SepandPad, SepandPad, String4)
+ ).%%,notrace.
+
+
+%% Sorts by first surname then title in AGPS
+
+sort1(List1,List2) :-
+ findall([C,B],(member(B,List1),downcase_atom(B,D),atom_string(D,C)),E),sort(E,F),findall(G,member([_,G],F),List2).
+
+
+prepare_file_for_ml(String000,String021) :-
+ string_codes(String001,String000),
+ downcase_atom(String001,String00),
+ split_string(String00, "\n\r", "\n\r", String01),
+ delete(String01,"",String02),
+ findall(String03,(member(String02a,String02),split_string(String02a,".",".",String04),
+ ((String04=[String05|String06],
+ number_string(Number05,String05),
+ number_sentences(Number05,1,String06,[],String03))->true;
+ (findall(String08,
+ (SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ member(String04a,String04),split_string(String04a,SepandPad,SepandPad,String09),
+ append_list([[""],"",String09],String08)),String03)))),String0211),
+ append_list2(String0211,String021).
+
+number_sentences(_,_,[],String,String) :- !. number_sentences(Number_a,Number_b1,String06,String07,String08) :-
+ String06=[String00|String12],
+
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ split_string(String00,SepandPad,SepandPad,String09),
+ append_list([[Number_a],Number_b1,String09],String10),
+ append(String07,[String10],String11),
+ Number_b2 is Number_b1 + 1,
+ number_sentences(Number_a,Number_b2,String12,String11,String08).
+
+
+data_instance_k_classification1(Data,I,K,C):-
+ maplist(o_oclass_disClass1(I),Data,DisAndClass),
+ keysort(DisAndClass,DSorted),
+
+ %%writeln(DSorted),
+
+ length(TopK,K),
+ append(TopK,_,DSorted),
+ %This is not a very good way of selecting k as you may have many values with the same distance, and the sorting just cuts these off
+ %Dsorted = [1-pos,3-pos,3-pos,3-neg,3-neg]
+ %Topk =[1-pos,3-pos,3-pos]
+ topk_vote(TopK,C).
+
+o_oclass_disClass1(O,[A,B,O2],D-[A,B,O2]):-
+ o_o_dis(O,O2,D).
+
+%% could be in either order
+%% a([w,z,a,b,e,c,z,y],[1,1,[c]],[1,2,[a]]).
+
+%% true
+%% a([a,c,b],[1,1,[a,d]],[1,2,[b]]).
+%% a([a,c,b],[1,1,[a,c]],[1,2,[b]]).
+%% a([a,b],[1,1,[a]],[1,2,[b]]).
+
+%% false
+%% a([c,d],[1,1,[a]],[1,2,[b]]).
+
+%% q in "q a b" sends food like e in "c d e"
+
+/**
+
+[debug] ?- a([q,e,r,a,t,y,u,q,e,r,a,t,y,u,c,b,x,v,n,m],[1,1,[c,a,t,y,u]],[1,2,[c,a,t,y,u]]). [[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[c,a,t,y,u]],[r,a,t,y,u]]
+true.
+
+X:
+[debug] ?- a([q,e,r,a,t,y,u,c,b,x,v,n],[1,1,[c,a,t,y,u]],[1,2,[b,x,u]]).
+[[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[b,x,u]],[c,b,x]]
+true.
+
+[debug] ?- a([q,e,r,a,t,y,u,c,c,c,b,x,v,n],[1,1,[c,a,t,y,u]],[1,2,[b,x,v]]). [[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[b,x,v]],[c,c,c]]
+true.
+
+**/
+
+check_strings(String1,ML_db) :-
+ %%member([P1,S1,String2],ML_db),
+ %%member([P2,S2,String3],ML_db),
+ ML_db=[String2a,String3a],
+%%writeln(["String1,String2a,String3a",String1,String2a,String3a]),
+ String2=[0,0,String2a],
+ String3=[0,0,String3a],
+%%a(String1,String2,String3):-
+ length(String1,Length_string1),
+((writeln("Attempt 1"),
+check_strings_container1(Length_string1,String1,String2,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String2,[999,999,[]]],_,List2),
+ length(List2,Length_list2),
+ %%Length_list3 is Length_list2+1,
+ %%writeln(here),
+ check_strings_container1(Length_list2,List2,String3,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String3,[999,999,[]]],_,_List3),
+ writeln("Success")
+ %%,trace
+ )->true;
+ (writeln("Failed"),
+ writeln("Attempt 2"),
+ ((check_strings_container1(Length_string1,String1,String3,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String3,[999,999,[]]],_,List2),
+ length(List2,Length_list2),
+ %%Length_list3 is Length_list2+1,
+ %%writeln(here),
+
+ check_strings_container1(Length_list2,List2,String2,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String2,[999,999,[]]],_,_List3))->
+ writeln("Success");(writeln("Failed"),fail)))
+).
+
+check_strings_container1(Length_string1,String1,String2,Db,List2,List2b) :-
+check_strings1(Length_string1,String1,String2,Db,List2,List2b),not(var(List2b)).
+%%check_strings_container2(Length_string1,Length_string3,List1,String2,Db,List2,List2b) :-
+%%check_strings2(Length_string1,Length_string3,List1,String2,Db,List2,List2b),not(var(List2b)).
+
+
+ %% finds the length of each string - from position 1 to (length of string1) of string1
+ %% starts with the shortest possible string, then increases the length
+ %% repeat this for second string
+ %%string1
+
+ %%*** check with s2,s3 in db
+check_strings1(0,_String1,_String2,_Db,List2,List2) :- !.
+check_strings1(Length_string1,String1,String2,Db,List2,List2b) :-
+ %% finds the first str
+ %%length(List,Index),
+ length(List1,Length_string1),
+ append(_,List1,String1),
+ Length_string2 is Length_string1-1,
+ Length_string3 is Length_string1+1,
+ check_strings2(0,Length_string3,List1,String2,Db,List2,List2c),
+ (var(List2c)->
+ check_strings1(Length_string2,String1,String2,Db,List2c,List2b);List2c=List2b),!.
+
+check_strings2(Length_string,Length_string,_String1,_String2,_Db,List2,List2) :- !.
+check_strings2(Length_string1,Length_string3,List1,String2,Db,List2,List2b) :-
+
+
+ %%split_string(String4,SepandPad,SepandPad,String21),
+
+ %% go through s1, removing the first word each time, until v
+ %%Length_string11 is Length_string1-1,
+ length(List11,Length_string1),
+ append(List11,List2,List1),
+ Length_string2 is Length_string1+1,
+
+%%writeln([list11,List11]),
+
+ ((%%trace,
+ %%(List11=[z,a,b]->trace;true),
+ %%writeln([[_,_,List11],String2]),
+ %%notrace,
+ not(List11=[]),
+
+%%writeln(data_instance_k_classification1(Db
+%% ,List11,1,A)),
+ data_instance_k_classification1(Db
+ %%String2
+ ,List11,1,A),
+ %%writeln([string2,String2,list11,List11,a,A]),
+A=String2,%%[_,_,List11],
+ %%trace,
+
+ %%((List11=[z,a,b],A=[_,_,[z,t,b]],not(String2=[_,_,[c,z]]))->trace;notrace),
+ %%trace,
+%%writeln([string2=list11,String2=List11]),
+%%(List11=[y]->true%%trace
+%%;true),
+%%member(List11,Db),
+ %%**String2=[_,_,List11]
+ List2b=List2,%%,notrace
+ String2=[_,_,String21]
+ ,writeln([found,String21,List11])
+ )
+ ->(true
+ %%,writeln(List11)
+ );
+ check_strings2(Length_string2,Length_string3,List1,String2,Db,_List2c,List2b)),!.
+
+numbers(N2,N1,Numbers1,Numbers2):-
+%%notrace,
+numbers1(N2,N1,Numbers1,Numbers2).
+%%trace.
+numbers1(N2,N1,Numbers,Numbers) :-
+ N2 is N1-1,!.
+numbers1(N2,N1,Numbers1,Numbers2) :-
+ N3 is N1+1,
+ append(Numbers1,[N1],Numbers3),
+ numbers1(N2,N3,Numbers3,Numbers2).
+
diff --git a/Essay-Helper/short_essay_helper3_agps.pl b/Essay-Helper/short_essay_helper3_agps.pl
new file mode 100644
index 0000000000000000000000000000000000000000..2fa2f933b054401ab7d2acc8b5e6c595b7ffb1de
--- /dev/null
+++ b/Essay-Helper/short_essay_helper3_agps.pl
@@ -0,0 +1,947 @@
+%% Prolog Short Essay Helper
+
+%% Keep 1,2,3 in aphors
+%% Certain number of reasons per paragraph
+%% Explains essay structure at start
+%% Exposition (negative terms not allowed, asks for 5 groups from text to take optionally enough notes about, which can revise) and critique
+%% Paraphrasing
+%% Converts x, explains x, asks about
+%% Allows citation of aphor
+%% Prints citations used so far
+%% Prints chapter, essay and allows changes (using text editor) at end.
+%% Outputs db file and br dicts for marking later
+
+%% *** Rewrite essay files with e.g. 1a. before aphors not 1. so not confused with aphors
+
+%% short_essay_helper("file.txt",5,E),writeln1(E).
+
+%%:- include('distances.pl').
+:- use_module(library(date)).
+:- include('../listprologinterpreter/la_strings').
+:- include('sheet_feeder.pl').
+
+:- dynamic critique3/1.
+:- dynamic agree_disagree/1.
+:- dynamic refs/1.
+:- dynamic refs_long/1.
+
+choose(List0,Item) :-
+ random_member(Item10,List0),
+ string_codes(Item10,List),
+ split_string(List,".\n",".\n",List2),
+ random_member(Item1,List2),
+ string_concat(E,D,Item1),
+ string_length(E,1),
+ downcase_atom(E,E1),
+ atom_string(E1,E2),
+ string_concat(E2,D,Item2),
+ string_concat(Item2,""%%"."
+ ,Item).
+
+choose1(List0,Item) :-
+ random_member(Item,List0).
+
+delete_invisibles_etc(F,G) :-
+ findall(J,(member(H,F),atom_string(H,J),not(J="."),not(J=".."),not(string_concat(".",_,J))),G).
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+short_essay_helper(%%Filex,
+ String01,
+ Reasons_per_paragraph) :-
+ retractall(critique3(_)),
+ assertz(critique3([])),
+
+ retractall(refs(_)),
+ assertz(refs([])),
+
+ retractall(refs_long(_)),
+ assertz(refs_long([])),
+
+ retractall(key_words(_)),
+ assertz(key_words([])),
+
+ directory_files("sources/",F),
+ delete_invisibles_etc(F,G),
+
+ findall(String02a,(member(Filex1,G),
+ string_concat("sources/",Filex1,Filex),
+ phrase_from_file_s(string(String00a), Filex),
+ string_codes(String02b,String00a),
+ atom_to_term(String02b,String02a,[])
+ %%split_string(String00, "\n\r", "\n\r", [String01a|_]),
+
+ %%prepare_file_for_ml(String00,String02a)
+ ),String00),
+
+ %%trace,
+ %%writeln1(String00),
+ %%notrace,
+
+%%writeln1(String02),
+
+
+ generate_file_name(File1,File2),
+
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+ explain_structure(String01,Reasons_per_paragraph,File1),
+ exposition(String00,String01,Reasons_per_paragraph,Numbers,String02,Exposition),
+
+ %%concat_list(["Do you agree or disagree with ",String01," (a/d) ? "],String2ad),%%get_string(String2ad,either,one-not-ml,"","",String3ad),
+ choose1(["a"%%,"d"
+ ],String3ad),
+
+ (String3ad="a"->
+ (retractall(agree_disagree(_)),
+ assertz(agree_disagree(agree)));
+ (retractall(agree_disagree(_)),
+ assertz(agree_disagree(disagree)))),
+
+
+critique(String00,String01,Reasons_per_paragraph,Numbers,String02,Critique),
+
+agree_disagree(Pole),
+
+ %%concat_list(["What is the future area of research from your essay about ",String01,"? "],Future_research_prompt),
+ %%trace,
+ %%get_string(Future_research_prompt,either,one-not-ml,"","",Future_research),
+ choose_sentence_range(String00,N_page_ref,String00a1,String00a2,_String00a3,String00a4),
+ choose(String00a4,String00a5),
+ concat_list(["In ",String01,", automation should apply to ",String00a5," (",String00a2,", p. ",N_page_ref,")."],Future_research),
+ reference(String00a1),
+
+ refs(R2),refs_long(R21),
+
+term_to_atom([Exposition,Critique,String3ad,Future_research,R21],File_contents),open_s(File1,write,Stream),write(Stream,File_contents),close(Stream),
+
+%% Output essay
+%%findall(_,(member(Exposition1,Exposition),Exposition1=
+
+
+%%writeln1([Exposition,Critique,Future_research,R2]),
+
+write_essay(String01,Pole,Exposition,Critique,Future_research,R2,Essay,HTML),
+writeln1(Essay),
+
+ (open_s(File2,write,Stream1),
+%% string_codes(BrDict3),
+ write(Stream1,HTML),
+ close(Stream1))
+ .
+
+%% replace("a\nb","\n"," \n",F).
+%% F="a \nb \n".
+
+replace(A,Find,Replace,F) :-
+ split_string(A,Find,Find,B),findall([C,Replace],(member(C,B)),D),maplist(append,[D],[E]),concat_list(E,F).
+
+concat_list1(D,F) :-
+ maplist(append,[D],[E]),concat_list(E,F).
+
+write_essay(String01,Pole,Exposition,Critique,Future_research,R2,Essay,HTML) :-
+ write_heading(String01,Heading),
+ write_introduction(String01,Pole,Critique,Introduction),
+ write_exposition(Exposition,Exposition2a),
+ concat_list(["I will expose ",String01," in this half. ",Exposition2a],Exposition2),
+ %%string_concat(Exposition2,"\n",Exposition2a),
+ write_critique(Critique,Critique2a),
+ string_concat(Critique2a,"\n",Critique2b),
+ atom_string(Pole,Pole1),
+ concat_list(["I will ",Pole1," with ",String01," in this half. ",Critique2b],Critique2),
+ write_conclusion(String01,Pole,Critique,Future_research,Conclusion),
+ write_references(R2,References,Refs_no_heading),
+ concat_list([Heading,Introduction,Exposition2,Critique2,Conclusion,References],
+ Essay),
+ concat_list([Introduction,Exposition2,Critique2,Conclusion],
+ Essay2),
+ replace(Essay2,"\n"," ",HTML1),
+ replace(Refs_no_heading,"\n"," ",Refs_no_heading2),
+ concat_list(["",String01,"
",
+ String01,"
",HTML1,"
Bibliography
",Refs_no_heading2,""],HTML).
+
+write_heading(String01,Heading) :-
+ concat_list([String01,"\n","\n"],Heading).
+
+write_introduction(String01,Pole1,Critique,Introduction) :-
+ %% The heading should be in the form "Author's topic"
+ atom_string(Pole1,Pole2),
+ findall([Paragraph_topic_sentence," "],(member(A,Critique),A=[_,[Paragraph_topic_sentence|_]|_]),Paragraph_topic_sentences1),
+ concat_list1(Paragraph_topic_sentences1,Paragraph_topic_sentences2),
+ concat_list(["I will critically analyse ",String01,". ",
+ "I will ",Pole2," with ",String01,". ",
+ Paragraph_topic_sentences2,"\n\n"],Introduction).
+
+write_conclusion(String01,Pole1,Critique,Future_research,Conclusion) :-
+ atom_string(Pole1,Pole2),
+ findall([Paragraph_topic_sentence," "],(member(A,Critique),A=[_,[Paragraph_topic_sentence|_]|_]),Paragraph_topic_sentences1),
+ concat_list1(Paragraph_topic_sentences1,Paragraph_topic_sentences2),
+ concat_list([
+ Paragraph_topic_sentences2,
+ "I have ",Pole2,"d with ",String01,". ",
+ Future_research,"\n\n"
+ ],Conclusion).
+
+write_references(R2,References,Refs_no_head) :-
+ findall([Reference,"\n"],member(Reference,R2),References1),
+ concat_list1(References1,References2),
+ concat_list([References2],Refs_no_head),
+ concat_list(["Bibliography","\n\n",References2],References).
+
+%%a1
+%% write_exposition([[[1,"g1"]],[[1,1,_15410,_15416,"a1","a1 is in g1."],[1,2,_15352,_15358,"a2","g1 contains a2."]]],A),writeln1(A).
+%% A = "a1 a1 is in g1. a2 g1 contains a2. ".
+
+%% write_exposition([[[1,"g1"],[1,"g1"]],[[1,1,_15410,_15416,"a1","a1 is in g1."],[1,2,_15352,_15358,"a2","g1 contains a2."],[1,1,_15410,_15416,"a1","a1 is in g1."],[2,2,_15352,_15358,"a2","g1 contains a2."]]],A).
+%% A = "a1 a1 is in g1. a2 g1 contains a2. a1 a1 is in g1. a2 g1 contains a2. ".
+
+write_exposition(Exposition,Essay4b) :-
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+
+Exposition=[_,Exposition2],
+
+
+findall([Essay4c%%,"\n"
+],(member(Numbera11,Numbers),
+
+
+%% not "" with findall
+findall(Essay4,(
+%%member(Exposition1,Exposition),
+%%Exposition1=[Numbera11,_Number3a,_String3,_String3a,String5a,String3y,_String3ay,String5a1,_CNumber2aa,_CNumber3aa,CString5a1a,_CNumber2a1,_CNumber3a1,_LastCStrings,String5aaa],
+
+
+%%output_exposition(Numbera11,Exposition2,"",Essay1),
+
+ %%findall( Essay4,(
+ member(Exposition1,Exposition2),Exposition1=[Numbera11,_Number3a,_String3,_String3a,String5a,Group_link],
+ concat_list([String5a," ",Group_link," "],Essay4)
+ %%delete(Exposition,Exposition1,Exposition2)
+ %%output_exposition(Numbera11,Exposition2,Essay4,Essay6)
+),Essay4a),
+concat_list(Essay4a,Essay4c1),%%trace,
+(Essay4c1=""->Essay4c="";concat_list([Essay4c1,"\n"],Essay4c))
+
+),Essay4d),
+
+maplist(concat_list,Essay4d,Essay4f),
+concat_list(Essay4f,Essay4b)
+%%concat_list([Essay4e,"\n"],Essay4b)
+%%concat_list([Essay1," ",Essay3],Essay2),
+ %%concat_list([Essay2,"\n"],Essay23))
+%%,Essay3a),
+ %%concat_list(Essay3a,Essay4a)
+.
+%% *** HTML ( not \n)
+
+%%%%%
+%%a
+
+%% write_critique([[1,["heading is e12",[1,1,_25346,_25352,"e1",_25370,_25376,"e12"],[1,2,_25412,_25418,"e2",_25436,_25442,"e22",1,1,"e12",0,0,"e22","e12 is e22"]]]],A),writeln1(A).
+%% A = "heading is e12 e1 e12 e2 e22 e12 is e22 \n".
+
+write_critique(Critique,Essay4):-
+ Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+
+findall(Essay23,(member(Numbera11,Numbers),
+
+%% not "" with findall
+%%findall(Essay22,(
+member(Critique1,Critique),
+%%Critique1=[Numbera11,_Number3a,_String3,_String3a,String5a,String3y,_String3ay,String5a1,_CNumber2aa,_CNumber3aa,CString5a1a,_CNumber2a1,_CNumber3a1,_LastCStrings,String5aaa],
+
+Critique1=[Numbera11,[Para_topic_sent,[_Number2a,_Number3a,_String3,_String3a,String5a,_String3y,_String3ay,String5a1]|Critique2]],
+
+concat_list([Para_topic_sent," ",String5a," ",String5a1," "],Essay0),output_critique(Numbera11,Critique2,String5a1,Essay0,Essay1),
+
+ concat_list([Essay1,Para_topic_sent,"\n"],%%Essay22)
+
+%%),
+Essay23)),Essay3),
+ concat_list(Essay3,Essay4)
+.
+%% *** HTML ( not \n)
+
+output_critique(_Numbera11,[],_String5a1a,Essay,Essay) :- !.
+output_critique(Numbera11,Critique,CString5a1a,Essay1,Essay2) :-
+findall( Essay6,(member(Critique1,Critique),Critique1=[Numbera11,_Number3a,_String3,_String3a,String5a,_String3y1,_String3ay,String5a1,
+_CNumber2aa,_CNumber3aa,CString5a1a,
+ _CNumber2a1,_CNumber3a1,_LastCStrings,
+ String5aaa],
+ concat_list([String5a," ",String5a1," ",String5aaa," "],Essay4),
+ delete(Critique,Critique1,Critique2),
+ output_critique(Numbera11,Critique2,String5aaa,Essay4,Essay6)
+),Essay33),
+%%trace,
+(Essay33=[]->concat_list([Essay1%%," "
+],Essay2);%%(Essay33=[Essay3]->concat_list([Essay1," ",Essay3],Essay2);%%(Essay33=[Essay3|[E33]]-> concat_list([Essay1," ",Essay3,E33],Essay2);
+(Essay33=[Essay3|E33], concat_list(E33,E34),concat_list([Essay1,%%" ",
+Essay3,E34],Essay2)))
+%%)
+%%)
+.
+
+
+/**critique(String00,String01,Reasons_per_paragraph,Numbers,Critique).
+ **/
+
+generate_file_name(File1,File2) :-
+ get_time(TS),stamp_date_time(TS,date(Year,Month,Day,Hour1,Minute1,Seconda,_A,_TZ,_False),local),
+ concat_list(["file",Year,Month,Day,Hour1,Minute1,Seconda,".txt"],File1),
+ concat_list(["file",Year,Month,Day,Hour1,Minute1,Seconda,".html"],File2).
+
+
+explain_structure(String01,Reasons_per_paragraph,_File1) :-
+ concat_list(["The Short Essay Helper will automatically structure and write your essay about ",String01," with ",Reasons_per_paragraph," reasons per paragraph.","\n",
+ "The Helper will help write an exposition (which summarises but doesn't critique the idea), a critique (which agrees with or disagrees with the topic), the introduction and the conclusion (which state whether you agreed or disagreed with the topic, etc.). Citations will be automatically made.","\n","Note: Generated essays are not to be handed in, and you need to paraphrase and cite work you have referenced. Your grade depends on whether you agree or disagree and how many breasonings you breason out. Check the referencing style is appropriate for your class.","\n"],String1),
+ writeln(String1).
+
+choose_sentence_range(String00,N2,B,B1,B2,C) :-
+ length(String00,L),
+ numbers(L,1,[],N),
+ random_member(N1,N),
+ get_item_n(String00,N1,A),
+ A=[B,B1,B2|C],
+ N2 is N1+B2-1.
+ %%random_member(A,String00),
+
+exposition(String00,_String01,Reasons_per_paragraph,Numbers,ML_db,Exposition1) :-
+ length(List1,5), %% 5->1 paragraphs per exposition
+ append(List1,_,Numbers),
+ length(List2,Reasons_per_paragraph),
+ append(List2,_,Numbers),
+
+ %%string_codes(String001,String00),
+ %%writeln(String001),
+ findall([Number1,Exposition2],(
+ %%trace,
+member(Number1,List1),%%concat_list(["What is group ",Number1," of 5 in the exposition that groups ideas about ",String01,"? "],String1),%%get_string(String1,either,one-not-ml,"","",%ML_db,Exposition2)
+%% ** Doesn't print this
+choose_sentence_range(String00,N_page_ref,String00a1,String00a2,_String00a3,String00a4),
+ choose(String00a4,String00a5),
+ concat_list([String00a5," (",String00a2,", p. ",N_page_ref,") "],Exposition2),
+ reference(String00a1)),Exposition3),
+
+
+ findall([Number2,Number3,String3,String3a,String5a,String5],(
+ member(Number2,List1),member(Number3,List2),get_item_n(Exposition3,Number2,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you how the quote you are about to enter relates to the paragraph topic."],String2b),writeln(String2b),
+ %%trace,
+exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5)
+ ),Exposition4),
+ Exposition1=[Exposition3,Exposition4].
+
+exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5):-
+ (%%concat_list(["What is the paragraph number of the quote about the paragraph topic ",Item1,"? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote about the paragraph topic ",Item1,"? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote about the paragraph topic ",Item1,"? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+ choose_sentence_range(String00,N_page_ref,String00a1,String00a2,_String00a3,String00a4),
+ choose(String00a4,String00a5),
+ concat_list([Item1," is because ",String00a5," (",String00a2,", p. ",N_page_ref,")."],String5a),
+ reference(String00a1),
+
+ %%concat_list(["How does the quote you entered (",String5a,") relate to the paragraph topic ",Item1,"? "],String4),
+ %%trace,
+ %%SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",%%downcase_atom(Item1,String41a),split_string(String41a, SepandPad, SepandPad, Item1a),
+
+ %%get_string(String4,either,one-not-ml,Item1a,String3aa,String5)
+
+ choose_sentence_range(String00,N_page_ref1,String00a11,String00a21,_String00a31,String00a41),
+ choose(String00a41,String00a51),
+ concat_list([Item1," is because ",String00a51," (",String00a21,", p. ",N_page_ref1,")."],String5),
+ reference(String00a11)
+)
+ ->true;exposition2(String00,Item1,ML_db,String3,String3a,String5a,String5).
+
+%% Agree or disagree
+
+critique(String00,String01,Reasons_per_paragraph,Numbers,ML_db,Critique1) :-
+ length(List1,5), %% 5->1 paragraphs per critique
+ append(List1,_,Numbers),
+ length(List2,Reasons_per_paragraph),
+ append(List2,_,Numbers),
+
+ %%string_codes(String001,String00),
+ %%writeln(String001),
+
+ retractall(critique3(_)),
+ assertz(critique3([])),
+
+
+ findall([Number2a,Critique2],(
+%% Reason 1
+
+member(Number2a,List1),
+%%List1=[Number2a|List1a],
+List2=[Number3a|List2a],
+%%trace,
+
+
+critique_reason1(String00,String01,Number2a,Number3a,Reasons_per_paragraph,ML_db,Critique3,Topic_paragraph_link),
+
+critique_reasons_2_to_n(String00,Number2a,List2a,Critique3,Reasons_per_paragraph,ML_db,Critique4),
+
+ append_list2([[Topic_paragraph_link],Critique3,Critique4],Critique2)),Critique1).
+
+ critique_reason1(String00,String01,Number2a,Number3a,Reasons_per_paragraph,ML_db,Critique3,Topic_paragraph_link) :-
+
+ %%member(Number2,List1),member(Number3,List2),
+ %%get_item_n(Critique3,Number2a,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you for your comment on the quote you are about to enter."],String2b),writeln(String2b),
+ %% Later: connections
+
+ %%trace,
+critique2(String00,String01,ML_db,String3,String3a,String5a,_String3y2,String3ay,String5a1,Topic_paragraph_link),
+ %%),Critique4).
+ Critique3=[[Number2a,Number3a,String3,String3a,String5a,_String3y3,String3ay,String5a1]].
+
+critique2(String00,String01,ML_db,String3,String3a,String5a,String3y,String3ay,String5a1,Topic_paragraph_link):-
+ (%%concat_list(["What is the paragraph number of the quote to comment on? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote to comment on? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote to comment on? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+
+ choose_sentence_range(String00,N_page_ref1,String00a11,String00a21,_String00a31,String00a41),
+ choose(String00a41,String00a51),
+ concat_list([String00a51," (",String00a21,", p. ",N_page_ref1,")."],String5a),
+ reference(String00a11),
+
+ %%concat_list(["Is your comment from a quote (y/n)? "],String2yn),get_string(String2yn,either,one-not-ml,"","",String3yn),
+
+ %%agree_disagree(Pole),
+
+ (%%String3yn="y"
+ true->
+ (%%concat_list(["What is the paragraph number of the comment? "],String2y),get_number(String2y,String3y),
+ %%concat_list(["What is the sentence number of the comment? "],String2ay),get_number(String2ay,String3ay),
+ %%trace,
+ %%member1a([String3y,String3ay,String3aay],ML_db),
+
+ %% use either original x or paraphrase
+
+ %%concat_list(["What is the comment that is from the quote? "],String4ac),
+ %%trace,
+ %%get_string(String4ac,either,one-not-ml-ref,"",String3aay,String5a1)
+
+ choose_sentence_range(String00,N_page_ref2,String00a12,String00a22,_String00a32,String00a42),
+ choose(String00a42,String00a52),
+ concat_list([String00a52," (",String00a22,", p. ",N_page_ref2,")."],String5a1),
+ reference(String00a12)
+
+ )
+
+ ;(String3y=0,String3ay=0,
+ %%concat_list(["What is the comment? "],String4ac),%%get_string(String4ac,either,one-not-ml,"","",%%String5a,
+%% String5a1)
+
+ choose_sentence_range(String00,N_page_ref3,String00a13,String00a23,_String00a33,String00a43),
+ choose(String00a43,String00a53),
+ concat_list([String00a53," (",String00a23,", p. ",N_page_ref3,")."],String5a1),
+ reference(String00a13)
+
+)),
+
+ %%concat_list(["How does the comment ",String5a1," relate to the essay topic ",String01,"? "],Topic_paragraph_link_prompt),
+ %%trace,
+
+ %%downcase_and_split(String5a1,String5a1ds),
+ %%downcase_and_split(String01,String01ds),
+ %%get_string(Topic_paragraph_link_prompt,either,one-not-ml,String5a1ds,String01ds,Topic_paragraph_link)
+
+ string_concat(String5a1_az,".",String5a1), choose_sentence_range(String00,N_page_ref4,String00a14,String00a24,_String00a34,String00a44),
+ choose(String00a44,String00a54),
+ concat_list([String01," is because of ",String5a1_az," because of ",String00a54," (",String00a24,", p. ",N_page_ref4,")."],Topic_paragraph_link),
+ reference(String00a14)
+
+ /**
+ %% conn - choose connected comments
+ concat_list(["How does the quote you entered (",String5a,") relate to the paragraph topic ",Item1,"? "],String4),
+ %%trace,
+ SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",downcase_atom(Item1,String41a),split_string(String41a, SepandPad, SepandPad, Item1a),
+
+ get_string(String4,either,two,Item1a,String3aa,String5)
+ **/
+ )
+ ->true;critique2(String00,ML_db,String3,String3a,String5a,String3y,String3ay,String5a1,Topic_paragraph_link).
+
+
+
+critique_reasons_2_to_n(String00,Number2a,List2a,Critique3,Reasons_per_paragraph,ML_db,Critique4) :-
+ retractall(critique3(_)),
+ assertz(critique3(Critique3)),
+%%trace,
+/** critique3(Critique31),
+ append(Critique31,Critique3,Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32)),
+**/
+%%notrace,
+findall([Number2a,Number3a,String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa],(
+ %%member(Number2,List1a),
+ member(Number3a,List2a),
+ %%get_item_n(Critique3,Number2a,[_,Item1]),
+ %%trace,
+ concat_list(["","\n","The Helper will ask you for your comment on the quote you are about to enter."],String2b),writeln(String2b),
+ %% Later: connections
+
+
+ %%trace,
+critique3(String00,ML_db,%%Critique3,
+String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa)
+
+
+/**
+ trace,
+ critique3(Critique31),
+ append(Critique31,[[String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32))
+**/
+
+),
+ Critique4).
+
+ %%Critique3=[].
+
+critique3(String00,ML_db,%%Critique3,
+String3,String3a,String5a,String3y,String3ay,String5a1,
+CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa):-
+ (%%concat_list(["What is the paragraph number of the quote to comment on? "],String2),get_number(String2,String3),
+ %%concat_list(["What is the sentence number of the quote to comment on? "],String2a),get_number(String2a,String3a),
+ %%member1a([String3,String3a,String3aa],ML_db),
+ %%concat_list(["What is the paraphrased quote to comment on? "],String4a),%%get_string(String4a,either,one-not-ml-ref,"",String3aa,String5a),
+ %%trace,
+ choose_sentence_range(String00,N_page_ref4,String00a14,String00a24,_String00a34,String00a44),
+ choose(String00a44,String00a54),
+ concat_list([String00a54," (",String00a24,", p. ",N_page_ref4,")."],String5a),
+ reference(String00a14),
+
+
+ %%concat_list(["Is your comment from a quote (y/n)? "],String2yn),%%get_string(String2yn,either,one-not-ml,"","",String3yn),
+
+ %%agree_disagree(Pole),
+
+ (true->%%String3yn="y"->
+ (%%concat_list(["What is the paragraph number of the comment? "],String2y),get_number(String2y,String3y),
+ %%concat_list(["What is the sentence number of the comment? "],String2ay),get_number(String2ay,String3ay),
+ %%trace,
+ %%member1a([String3y,String3ay,String3aay],ML_db),
+
+ %% use either original x or paraphrase x
+ %%trace,
+ %%concat_list(["What is the comment that is from the quote? "],String4ac),
+ %%trace,
+ %%get_string(String4ac,either,one-not-ml-ref,"",String3aay,String5a1)
+
+ choose_sentence_range(String00,N_page_ref5,String00a15,String00a25,_String00a35,String00a45),
+ choose(String00a45,String00a55),
+ concat_list([String00a55," (",String00a25,", p. ",N_page_ref5,")."],String5a1),
+ reference(String00a15)
+
+ %%,trace
+ )
+
+ ;(String3y=0,String3ay=0,
+ concat_list(["What is the comment? "],String4ac),
+
+ %% This is never chosen
+ get_string(String4ac,either,one-not-ml,"","",%%String5a,
+ String5a1))),
+ %%*** assertz recurse not findall new critique3 x
+
+
+ %%trace,
+ critique3(Critique31),
+ append(Critique31,[[0,0,String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32)),
+
+ critique3(Critique33),
+
+
+((
+
+
+ %%critique3(Critique3),
+ length(Critique33,LCritique3),
+ %%length(List1,LCritique3),
+ numbers(LCritique3,1,[],List1),
+ %%append(List1,_,Numbers),
+ %%Numbers=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],
+ %%trace,
+
+findall([N," - ",CString5a1,"\n"],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString3,_CString3a,_CString5a,_CString3y,_CString3ay,CString5a1])),CStrings1),
+
+findall([N,CNumber2a,CNumber3a,CString5a1],(member(N,List1),get_item_n(Critique33,N,[CNumber2a,CNumber3a,_CString31,_CString3a1,_CString5a1,_CString3y1,_CString3ay1,CString5a1])),CStrings2),
+
+%%trace,
+
+%%CStrings=[CStrings1,CStrings2],
+reverse(CStrings2,CStringsR),CStringsR=[[_,CNumber2a1,CNumber3a1,LastCStrings]|CStringsR1],
+reverse(CStringsR1,CStringsRR),
+
+reverse(CStrings1,CStringsR10),CStringsR10=[_|CStringsR11],
+reverse(CStringsR11,CStringsRR1),
+
+append_list2(CStringsRR1,CStrings11),
+concat_list(CStrings11,_CStrings12),
+%%concat_list(["Please select a comment to connect the comment ",LastCStrings," to:","\n",CStrings12],ConnectionNumberPrompt),
+%%get_number(ConnectionNumberPrompt,ConnectionNumber),
+%numbers(
+choose1(List1,ConnectionNumber),
+ member([ConnectionNumber,CNumber2aa,CNumber3aa,CString5a1a],CStringsRR),
+
+ %%SepandPad="#@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\!'0123456789",%%downcase_atom(CString5a1a,CString5a1a1),split_string(CString5a1a1, SepandPad, SepandPad, CString5a1a2),
+
+ %%CNumber2a1,CNumber3a1,
+ %%downcase_atom(LastCStrings,LastCStrings_a),split_string(LastCStrings_a, SepandPad, SepandPad, LastCStrings_a1),
+
+
+ %% conn - choose connected comments, this to a previous comment
+ %%trace,
+
+ %%concat_list(["How does ",LastCStrings," connect to ",CString5a1a,"? "],ConnectionPrompt),
+
+ %%get_string(ConnectionPrompt,either,one-not-ml,CString5a1a2,LastCStrings_a1,String5aaa)
+
+ string_concat(LastCStrings_az,".",LastCStrings),
+ string_concat(CString5a1a_az,".",CString5a1a), choose_sentence_range(String00,N_page_ref6,String00a16,String00a26,_String00a36,String00a46),
+ choose(String00a46,String00a56),
+ concat_list([LastCStrings_az," is because of ",CString5a1a_az," because of ",String00a56," (",String00a26,", p. ",N_page_ref6,")."],String5aaa),
+ reference(String00a16)
+
+
+ )->true;(
+
+ %% If the section since updating dynamic critique comments fails, prevent doubling of critique comments
+
+ critique3(Critique311),
+ reverse(Critique311,Critique312),
+ Critique312=[_|Critique313],
+ reverse(Critique313,Critique314),
+ retractall(critique3(_)),
+ assertz(critique3(Critique314)),fail
+
+ ))
+
+/** Critique4=[String3,String3a,String5a,String3y,String3ay,String5a1,
+ CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa],
+ **/
+ /**
+ critique3(Critique31),
+ append(Critique31,[[String3,String3a,String5a,String3y,String3ay,String5a1]],Critique32),
+ retractall(critique3(_)),
+ assertz(critique3(Critique32))
+**/
+
+ )
+ %% Retries the predicate if it fails
+ ->true;critique3(String00,ML_db,%%Critique3,
+ String3,String3a,String5a,String3y,String3ay,String5a1,
+ CNumber2aa,CNumber3aa,CString5a1a,
+ CNumber2a1,CNumber3a1,LastCStrings,
+ String5aaa
+ ).
+
+
+
+
+member1a([String3,String3a,String3aa],ML_db) :-
+ member([String3,String3a,String3aa],ML_db),!.
+
+
+get_item_n(Exposition,Number1,Item) :-
+ Number2 is Number1-1,
+ length(List,Number2),
+ append(List,[Item|_],Exposition).
+
+get_number(Prompt1,Number) :-
+ %%concat_list(Prompt1,Prompt2),
+ (%%repeat,
+ writeln(Prompt1),read_string(user_input, "\n", "\r", _End1, String),split_string(String, ",", " ", Value1),Value1=[Value2],number_string(Number,Value2)).
+
+
+/**
+get_string(Prompt1,String1) :-
+ concat_list(Prompt1,Prompt2),
+ (repeat,write(Prompt2),read_string(String1),not(String1="")).
+**/
+
+equals_empty_list([]).
+
+downcase_and_split(String1, String2) :-
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ downcase_atom(String1,String3),split_string(String3, SepandPad, SepandPad, String2).
+
+get_string(Prompt2,Flag1,Flag2,ML_db0,ML_db1,String2) :-
+%%writeln1(get_string(Prompt2,Flag1,Flag2,ML_db1,String2)),
+ %%concat_list(Prompt1,Prompt2),
+ %%trace,
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ %%(repeat,
+ (Flag2=one-not-ml-ref->(concat_list(["Note: Enter in-text reference using AGPS, e.g.\n","The first work supports the second work (Surname 2000, pp. 18-9).\n","Surname (2000, pp. 18-9) states that ...\n","Remember to use words like \"also\", \"moreover\" and \"in addition\" before the sentence."],String_a1),writeln(String_a1));true),
+ writeln(Prompt2),read_string(user_input, "\n", "\r", _End2, String2aa),%%not(String2aa=""),
+ %%String2aa=[String2aaa],
+ downcase_atom(String2aa,String3),split_string(String3, SepandPad, SepandPad, String4),
+ Neg_term_list=["no","not","don","t","shouldn","wouldn","disagree","differ","dislikes","disagrees","differs","dislikes","disagreed","differed","disliked","negative","negation","non","negate","negates","negated","but","however","isn","lack"],
+ (Flag1=%%non_negative
+ positive->(
+
+ (findall(Item11,(
+
+ member(Item1,String4),
+ findall(Item1,(
+member(Item2,Neg_term_list),(Item1=Item2->(write("Error: Contains the negative term \""),write(Item1),writeln("\".")))),Item11)),Item12)),
+
+maplist(equals_empty_list,Item12)
+
+);
+ ((Flag1=negative->((member(Item1,String4),member(Item1,Neg_term_list))->true;(writeln("Error: Contains no negative term, one of:"),writeln(Neg_term_list),fail));true)->true;Flag1=either)),
+ (Flag2=one-not-ml->String2=String2aa;
+ (Flag2=one-not-ml-ref->
+ (refs(R1),writeln("What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.\n"),writeln("Existing references (copy one or many delimited with \"\\n\"):"), findall(_,(member(R11,R1),writeln(R11)),_),read_string(user_input, "\n", "\r", _End3, String2r),not(String2r=""),%%downcase_atom(String2r,_String3r),
+ String2=String2aa,split_string(String2r,"\n\r","\n\r",String2r3),
+ %%trace,
+ retractall(refs(_)),maplist(append,[[R1,String2r3]],[String2r21]),
+ sort1(String2r21,String2r2),
+ assertz(refs(String2r2))%%split_string(String3r, SepandPad, SepandPad, String4)
+ );
+(Flag2=one->(%%split_string(String4,SepandPad,SepandPad,String21),
+ writeln("Attempt 1"),
+
+ (length(String4,Length_string1),
+(check_strings_container1(Length_string1,String4,[0,0,ML_db1],[[0,0,[xxx,xxx,xxx,xxx,xxx]],[0,0,ML_db1],[999,999,[]]],_,_List2)->
+ writeln("Success");(writeln("Failed"),fail))
+ %%(%%data_instance_k_classification1([[0,0,[xxx,xxx,xxx,xxx,xxx]],[0,0,ML_db1]%%,[999,999,[]]
+ %%],[0,0,String4]%%21
+ %%,1,String4a%%21
+ %%),
+ %%String4=String4a)
+ %%)->
+ %%(%%String4a=[_,_,String4a1],
+ %%writeln([found,String4a,String4]),
+%%writeln("Success"));
+ %%(writeln("Failed"),fail)
+ %%
+ ));
+ (Flag2=%%[
+ two,%%,P1,S1,P2,S2],
+ %%trace,
+ append([ML_db0],[ML_db1],ML_db2),
+ check_strings(String4,ML_db2%%,P1,S1,P2,S2
+ ))))).
+
+reference(String2r) :-
+ refs_long(R10),
+ (refs(R1),%%writeln("What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.\n"),writeln("Existing references (copy one or many delimited with \"\\n\"):"),
+ findall(_,(member(R11,R1),writeln(R11)),_),%%read_string(user_input, "\n", "\r", _End4, String2r),
+ not(String2r=""),%%downcase_atom(String2r,_String3r),
+ %%String2=String2aa,
+ split_string(String2r,"\n\r","\n\r",String2r3),
+ %%trace,
+ retractall(refs(_)),maplist(append,[[R1,String2r3]],[String2r21]),
+ retractall(refs_long(_)),maplist(append,[[R10,String2r3]],[String2r210]),
+ sort1(String2r21,String2r2),
+ assertz(refs(String2r2)),
+ assertz(refs_long(String2r210))%%split_string(String3r, SepandPad, SepandPad, String4)
+ ).
+
+
+%% Sorts by first surname then title in AGPS
+
+sort1(List1,List2) :-
+ findall([C,B],(member(B,List1),downcase_atom(B,D),atom_string(D,C)),E),sort(E,F),findall(G,member([_,G],F),List2).
+
+
+prepare_file_for_ml(String000,String021) :-
+ string_codes(String001,String000),
+ downcase_atom(String001,String00),
+ split_string(String00, "\n\r", "\n\r", String01),
+ delete(String01,"",String02),
+ findall(String03,(member(String02a,String02),split_string(String02a,".",".",String04),
+ ((String04=[String05|String06],
+ number_string(Number05,String05),
+ number_sentences(Number05,1,String06,[],String03))->true;
+ (findall(String08,
+ (SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ member(String04a,String04),split_string(String04a,SepandPad,SepandPad,String09),
+ append_list([[""],"",String09],String08)),String03)))),String0211),
+ append_list2(String0211,String021).
+
+number_sentences(_,_,[],String,String) :- !. number_sentences(Number_a,Number_b1,String06,String07,String08) :-
+ String06=[String00|String12],
+
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ split_string(String00,SepandPad,SepandPad,String09),
+ append_list([[Number_a],Number_b1,String09],String10),
+ append(String07,[String10],String11),
+ Number_b2 is Number_b1 + 1,
+ number_sentences(Number_a,Number_b2,String12,String11,String08).
+
+
+data_instance_k_classification1(Data,I,K,C):-
+ maplist(o_oclass_disClass1(I),Data,DisAndClass),
+ keysort(DisAndClass,DSorted),
+
+ %%writeln(DSorted),
+
+ length(TopK,K),
+ append(TopK,_,DSorted),
+ %This is not a very good way of selecting k as you may have many values with the same distance, and the sorting just cuts these off
+ %Dsorted = [1-pos,3-pos,3-pos,3-neg,3-neg]
+ %Topk =[1-pos,3-pos,3-pos]
+ topk_vote(TopK,C).
+
+o_oclass_disClass1(O,[A,B,O2],D-[A,B,O2]):-
+ o_o_dis(O,O2,D).
+
+%% could be in either order
+%% a([w,z,a,b,e,c,z,y],[1,1,[c]],[1,2,[a]]).
+
+%% true
+%% a([a,c,b],[1,1,[a,d]],[1,2,[b]]).
+%% a([a,c,b],[1,1,[a,c]],[1,2,[b]]).
+%% a([a,b],[1,1,[a]],[1,2,[b]]).
+
+%% false
+%% a([c,d],[1,1,[a]],[1,2,[b]]).
+
+%% q in "q a b" sends food like e in "c d e"
+
+/**
+
+[debug] ?- a([q,e,r,a,t,y,u,q,e,r,a,t,y,u,c,b,x,v,n,m],[1,1,[c,a,t,y,u]],[1,2,[c,a,t,y,u]]). [[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[c,a,t,y,u]],[r,a,t,y,u]]
+true.
+
+X:
+[debug] ?- a([q,e,r,a,t,y,u,c,b,x,v,n],[1,1,[c,a,t,y,u]],[1,2,[b,x,u]]).
+[[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[b,x,u]],[c,b,x]]
+true.
+
+[debug] ?- a([q,e,r,a,t,y,u,c,c,c,b,x,v,n],[1,1,[c,a,t,y,u]],[1,2,[b,x,v]]). [[1,1,[c,a,t,y,u]],[r,a,t,y,u]]
+[[1,2,[b,x,v]],[c,c,c]]
+true.
+
+**/
+
+check_strings(String1,ML_db) :-
+ %%member([P1,S1,String2],ML_db),
+ %%member([P2,S2,String3],ML_db),
+ ML_db=[String2a,String3a],
+%%writeln(["String1,String2a,String3a",String1,String2a,String3a]),
+ String2=[0,0,String2a],
+ String3=[0,0,String3a],
+%%a(String1,String2,String3):-
+ length(String1,Length_string1),
+((writeln("Attempt 1"),
+check_strings_container1(Length_string1,String1,String2,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String2,[999,999,[]]],_,List2),
+ length(List2,Length_list2),
+ %%Length_list3 is Length_list2+1,
+ %%writeln(here),
+ check_strings_container1(Length_list2,List2,String3,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String3,[999,999,[]]],_,_List3),
+ writeln("Success")
+ %%,trace
+ )->true;
+ (writeln("Failed"),
+ writeln("Attempt 2"),
+ ((check_strings_container1(Length_string1,String1,String3,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String3,[999,999,[]]],_,List2),
+ length(List2,Length_list2),
+ %%Length_list3 is Length_list2+1,
+ %%writeln(here),
+
+ check_strings_container1(Length_list2,List2,String2,[[0,0,[xxx,xxx,xxx,xxx,xxx]],String2,[999,999,[]]],_,_List3))->
+ writeln("Success");(writeln("Failed"),fail)))
+).
+
+check_strings_container1(Length_string1,String1,String2,Db,List2,List2b) :-
+check_strings1(Length_string1,String1,String2,Db,List2,List2b),not(var(List2b)).
+%%check_strings_container2(Length_string1,Length_string3,List1,String2,Db,List2,List2b) :-
+%%check_strings2(Length_string1,Length_string3,List1,String2,Db,List2,List2b),not(var(List2b)).
+
+
+ %% finds the length of each string - from position 1 to (length of string1) of string1
+ %% starts with the shortest possible string, then increases the length
+ %% repeat this for second string
+ %%string1
+
+ %%*** check with s2,s3 in db
+check_strings1(0,_String1,_String2,_Db,List2,List2) :- !.
+check_strings1(Length_string1,String1,String2,Db,List2,List2b) :-
+ %% finds the first str
+ %%length(List,Index),
+ length(List1,Length_string1),
+ append(_,List1,String1),
+ Length_string2 is Length_string1-1,
+ Length_string3 is Length_string1+1,
+ check_strings2(0,Length_string3,List1,String2,Db,List2,List2c),
+ (var(List2c)->
+ check_strings1(Length_string2,String1,String2,Db,List2c,List2b);List2c=List2b),!.
+
+check_strings2(Length_string,Length_string,_String1,_String2,_Db,List2,List2) :- !.
+check_strings2(Length_string1,Length_string3,List1,String2,Db,List2,List2b) :-
+
+
+ %%split_string(String4,SepandPad,SepandPad,String21),
+
+ %% go through s1, removing the first word each time, until v
+ %%Length_string11 is Length_string1-1,
+ length(List11,Length_string1),
+ append(List11,List2,List1),
+ Length_string2 is Length_string1+1,
+
+%%writeln([list11,List11]),
+
+ ((%%trace,
+ %%(List11=[z,a,b]->trace;true),
+ %%writeln([[_,_,List11],String2]),
+ %%notrace,
+ not(List11=[]),
+
+%%writeln(data_instance_k_classification1(Db
+%% ,List11,1,A)),
+ data_instance_k_classification1(Db
+ %%String2
+ ,List11,1,A),
+ %%writeln([string2,String2,list11,List11,a,A]),
+A=String2,%%[_,_,List11],
+ %%trace,
+
+ %%((List11=[z,a,b],A=[_,_,[z,t,b]],not(String2=[_,_,[c,z]]))->trace;notrace),
+ %%trace,
+%%writeln([string2=list11,String2=List11]),
+%%(List11=[y]->true%%trace
+%%;true),
+%%member(List11,Db),
+ %%**String2=[_,_,List11]
+ List2b=List2,%%,notrace
+ String2=[_,_,String21]
+ ,writeln([found,String21,List11])
+ )
+ ->(true
+ %%,writeln(List11)
+ );
+ check_strings2(Length_string2,Length_string3,List1,String2,Db,_List2c,List2b)),!.
+
+numbers(N2,N1,Numbers,Numbers) :-
+ N2 is N1-1,!.
+numbers(N2,N1,Numbers1,Numbers2) :-
+ N3 is N1+1,
+ append(Numbers1,[N1],Numbers3),
+ numbers(N2,N3,Numbers3,Numbers2).
diff --git a/Essay-Helper/source_tagger.pl b/Essay-Helper/source_tagger.pl
new file mode 100644
index 0000000000000000000000000000000000000000..d7f5552451b1353d7f91fb399ff54f081a24229d
--- /dev/null
+++ b/Essay-Helper/source_tagger.pl
@@ -0,0 +1,56 @@
+source_tagger :-
+ phrase_from_file_s(string(String00a),"tags.txt"),
+ string_codes(String02b,String00a),
+ atom_to_term(String02b,String02a,[]),
+
+ ask_for_new_tag(String02a,String02c),
+
+ term_to_atom(String02c,File_contents),
+ open_s("tags.txt",write,Stream),
+ write(Stream,File_contents),close(Stream).
+
+ask_for_new_tag(A,B) :-
+ prompt("New tag? (y/n)",New_tag),
+ (New_tag="y"->(tag(Tag,Text,Source),
+ append(A,[[Tag,Text,Source]],C),
+ ask_for_new_tag(C,B));
+ A=B).
+
+tag(Tag,Text,Source) :-
+ prompt("What are the tags?",Tag),
+ prompt("What is the text?",Text),
+ prompt("What is the source?",Source).
+
+prompt(Prompt,String) :-
+ writeln(Prompt),
+ read_string(user_input, "\n", "\r", _End, String).
+
+%% - enter text, source and tags
+
+%% - tags used in x are chapter topics
+
+print_tags :-
+ phrase_from_file_s(string(String00a),"tags.txt"),
+ string_codes(String02b,String00a),
+ atom_to_term(String02b,String02a,[]),
+
+ findall(T4,(member(A,String02a),A=[T1,_,_],
+ downcase_atom(T1,T2),atom_string(T2,T3),
+ split_string(T3,", ",", ",T4)),T5),
+
+ maplist(append,[T5],[T6]),
+ sort(T6,T7),
+
+ findall(_,(member(T8,T7),writeln(T8)),_),
+
+ prompt("Enter tag to show report of.",T9),
+
+ findall([TA,TB],(member(A,String02a),A=[T1,TA,TB],
+ downcase_atom(T1,T2),atom_string(T2,T3),
+ split_string(T3,", ",", ",T4),
+ member(T9,T4)),T10),
+
+ findall(_,(member([T11,T12],T10),writeln(T11),writeln(T12),writeln("")),_).
+
+
+
diff --git a/Essay-Helper/sources/.DS_Store b/Essay-Helper/sources/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..2a396338634876d95a38df1a28aefaebbc98d582
Binary files /dev/null and b/Essay-Helper/sources/.DS_Store differ
diff --git a/Essay-Helper/sources/1.txt b/Essay-Helper/sources/1.txt
new file mode 100644
index 0000000000000000000000000000000000000000..77ea6c776002f71b119c9b1a193522353cc9958d
--- /dev/null
+++ b/Essay-Helper/sources/1.txt
@@ -0,0 +1,6 @@
+["Surname, A 2000, Title: Subtitle, Publisher, City.","Surname, A 2000",1,"a
+a","B
+b
+b","C
+c
+c"]
\ No newline at end of file
diff --git a/Essay-Helper/sources/2.txt b/Essay-Helper/sources/2.txt
new file mode 100644
index 0000000000000000000000000000000000000000..77ea6c776002f71b119c9b1a193522353cc9958d
--- /dev/null
+++ b/Essay-Helper/sources/2.txt
@@ -0,0 +1,6 @@
+["Surname, A 2000, Title: Subtitle, Publisher, City.","Surname, A 2000",1,"a
+a","B
+b
+b","C
+c
+c"]
\ No newline at end of file
diff --git a/Essay-Helper/sources/3.txt b/Essay-Helper/sources/3.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e03f73542b4a921dd8fe450678d3fd0ef69f7971
--- /dev/null
+++ b/Essay-Helper/sources/3.txt
@@ -0,0 +1,6 @@
+["Surname, A 2000, Title: Subtitle, Publisher, City.","Surname, A 2000",1,"''''''
+
+","
+b","
+b
+b"]
\ No newline at end of file
diff --git a/Essay-Helper/tags.txt b/Essay-Helper/tags.txt
new file mode 100644
index 0000000000000000000000000000000000000000..0637a088a01e8ddab3bf3fa98dbe804cbde1a0dc
--- /dev/null
+++ b/Essay-Helper/tags.txt
@@ -0,0 +1 @@
+[]
\ No newline at end of file
diff --git a/Essay-Helper/texttobr2qb.pl b/Essay-Helper/texttobr2qb.pl
new file mode 100644
index 0000000000000000000000000000000000000000..5702c5bb72e066272fe1857cb538b1b6d47e02d8
--- /dev/null
+++ b/Essay-Helper/texttobr2qb.pl
@@ -0,0 +1,10 @@
+%% 250 breasonings
+
+texttobr2 :-
+br1([[a,1,1.5,0],[about,1,1,0],[ache,1,0,0],[after,1,1,0],[all,1,1.5,0],[an,1,1.5,0],[and,1,1,0],[appearances,5,0,5],[apple,5,5,5],[are,1,1,0],[area,5,5,0],[argument,1,1.5,0],[as,1,1,0],[asanas,180,50,1],[at,1,1,0],[ate,15,2,1],[avoid,1,1,0],[b,1,1,1],[bacteria,2,1,1],[based,5,5,1],[be,50,30,180],[before,1,1,0],[being,50,30,180],[binding,1,1,0],[blocking,1,1,1],[bolt,2,1,1],[box,1,1,1],[breakfast,10,10,1],[breasoned,5,5,5],[breasoning,5,5,5],[breasonings,5,5,5],[by,1,1,0],[chapter,10,15,1],[clear,1,1,0],[colds,1,1,1],[comfort,180,50,30],[comfortable,50,50,100],[complexes,1,1,1],[conception,50,14,8],[connected,1,1,0],[correctness,1,1,0],[day,10,10,10],[depression,1,1,0],[details,1,1,1],[did,1,1,0],[do,50,30,180],[dotted,1,1,0],[down,1,1,0],[drinking,5,5,5],[during,1,1.5,0],[each,1,1,0],[earned,1,1.5,0],[education,50,30,180],[effects,1,1.5,0],[elderberries,1,1,1],[ensure,1,1,0],[excess,1,1,1],[exercises,10,10,1],[f,5,5,5],[feeling,1,1,0],[felt,1,1,0],[first,1,1.5,0],[flu,1,1,0],[food,2,1,1],[for,1,1,0],[from,1,1,0],[fruits,1,1,1],[function,1,1.5,0],[gaffer,10,10,1],[gave,1,1,1],[glasses,15,11,3],[god,50,30,180],[grade,1,1.5,0],[grains,1,1,1],[had,1,1,0],[hallucinogenic,1,1,0],[happiness,1,1,0],[happy,1,1,0],[have,5,5,5],[head,15,20,23],[headache,1,1,0],[headaches,1,1,0],[health,50,30,180],[healthy,50,30,180],[help,5,5,0],[helped,50,30,180],[high,1,1.5,0],[hills,5,5,2],[honey,10,10,10],[i,50,30,180],[imagery,5,5,0],[in,1,1,0],[incompatibility,1,1,0],[interpretation,20,30,0],[it,1,1,0],[keep,1,1,0],[laughter,1,1.5,0],[maintain,1,1,0],[maintaining,1,1,0],[master,50,30,180],[mind,3,4,4],[minutes,20,30,0],[mistake,1,1,0],[muscle,1,1,1],[muscles,1,1,1],[music,1,1,0],[must,1,1,0],[my,50,30,180],[namaskar,15,10,23],[neck,15,15,10],[next,1,1,0],[nietzsche,50,30,180],[no,1,1,0],[noticed,50,30,180],[nut,1,1,0],[nuts,1,1,1],[of,1,1,0],[off,1,1.5,0],[on,1,1,0],[one,1,1.5,0],[organs,1,1,1],[out,1,1,0],[over,1,1,0],[part,1,1,1],[peace,1,1.5,0],[perfect,1,1.5,0],[performed,50,30,180],[performing,50,30,250],[philosophy,10,20,1],[physiology,50,30,180],[pimple,1,1,0],[pm,5,5,5],[poem,1,1.5,0],[positive,1,1,0],[pot,5,5,10],[prayer,5,5,0],[prepared,1,1,0],[prevent,1,1,0],[prevented,1,1,0],[preventing,1,1,0],[prevention,1,1,0],[problems,1,1.5,0],[product,1,150,1],[products,5,5,5],[psychiatry,50,30,180],[psychology,2,2,0],[quality,1,1.5,0],[quantum,1,1,0],[read,15,1,20],[relax,180,50,30],[relaxed,180,50,30],[remain,1,1.5,0],[require,1,1,0],[room,500,400,300],[s,1,1,0],[safe,1,1.5,0],[sales,1,1.5,0],[same,1,1,0],[schizophrenia,1,1,0],[second,1,1.5,0],[see,1,0,1],[seek,1,1,0],[sell,5,3,0],[sets,5,1,0],[sex,1,1.5,0],[short,1,1,0],[single,1,1.5,0],[sites,20,0,30],[sitting,50,70,150],[sized,30,1,0],[skin,1,1,0],[sleep,180,50,30],[slices,2,2,2],[so,1,1,0],[societal,50,30,180],[some,1,1,0],[spine,1,1,10],[spiritual,50,30,180],[state,1,1.5,0],[stated,20,30,0],[stating,50,30,180],[status,1,1.5,0],[stop,5,1,15],[straight,1,1,0],[strawberry,1,1,1],[structure,1,1,1],[studied,50,30,180],[study,100,50,100],[studying,50,30,180],[subject,50,30,180],[successful,1,1.5,0],[surya,1,1.5,0],[sutra,5,1.5,0],[table,7,5,0],[tape,10,10,1],[task,15,2.5,0],[technique,1,1,0],[test,20,20,0],[text,20,30,0],[that,1,1,0],[the,1,1,0],[them,50,30,180],[then,1,1,0],[they,50,30,180],[thinking,1,1.5,0],[third,1,1.5,0],[this,1,1,0],[thoughts,1,1,0],[through,1,1,0],[tied,1,1,0],[time,1,1.5,0],[to,1,1,0],[together,1,1,0],[touch,1,1,0],[train,1,1,1],[trains,50,30,180],[travel,10,3,0],[treating,20,15,3],[turn,1,1,0],[two,1,1.5,0],[university,100,75,3],[unwanted,1,1,0],[up,1,1,0],[upasana,100,75,100],[used,1,1,0],[using,1,1,0],[var,1,1,1],[vegetables,5,5,5],[videos,5,0,3],[view,5,5,5],[virality,1,1,0],[viruses,1,1,2],[vitamin,1,1,1],[walks,100,500,0],[wanted,15,20,3],[warm,1,1,0],[was,1,1,0],[water,5,5,5],[way,1,1,0],[ways,50,100,0],[well,50,30,180],[where,1,1,0],[whole,1,1,1],[with,1,1,0],[without,1,1,0],[words,5,7,1],[write,15,1,1],[writing,5,5,0],[wrote,15,1,1],[years,3,1,0]]).
+
+br1([[a,1,1.5,0],[about,1,1,0],[ache,1,0,0],[after,1,1,0],[all,1,1.5,0],[an,1,1.5,0],[and,1,1,0],[appearances,5,0,5],[apple,5,5,5],[are,1,1,0],[area,5,5,0],[argument,1,1.5,0],[as,1,1,0],[asanas,180,50,1],[at,1,1,0],[ate,15,2,1],[avoid,1,1,0],[b,1,1,1],[bacteria,2,1,1],[based,5,5,1],[be,50,30,180],[before,1,1,0],[being,50,30,180],[binding,1,1,0],[blocking,1,1,1],[bolt,2,1,1],[box,1,1,1],[breakfast,10,10,1],[breasoned,5,5,5],[breasoning,5,5,5],[breasonings,5,5,5],[by,1,1,0],[chapter,10,15,1],[clear,1,1,0],[colds,1,1,1],[comfort,180,50,30],[comfortable,50,50,100],[complexes,1,1,1],[conception,50,14,8],[connected,1,1,0],[correctness,1,1,0],[day,10,10,10],[depression,1,1,0],[details,1,1,1],[did,1,1,0],[do,50,30,180],[dotted,1,1,0],[down,1,1,0],[drinking,5,5,5],[during,1,1.5,0],[each,1,1,0],[earned,1,1.5,0],[education,50,30,180],[effects,1,1.5,0],[elderberries,1,1,1],[ensure,1,1,0],[excess,1,1,1],[exercises,10,10,1],[f,5,5,5],[feeling,1,1,0],[felt,1,1,0],[first,1,1.5,0],[flu,1,1,0],[food,2,1,1],[for,1,1,0],[from,1,1,0],[fruits,1,1,1],[function,1,1.5,0],[gaffer,10,10,1],[gave,1,1,1],[glasses,15,11,3],[god,50,30,180],[grade,1,1.5,0],[grains,1,1,1],[had,1,1,0],[hallucinogenic,1,1,0],[happiness,1,1,0],[happy,1,1,0],[have,5,5,5],[head,15,20,23],[headache,1,1,0],[headaches,1,1,0],[health,50,30,180],[healthy,50,30,180],[help,5,5,0],[helped,50,30,180],[high,1,1.5,0],[hills,5,5,2],[honey,10,10,10],[i,50,30,180],[imagery,5,5,0],[in,1,1,0],[incompatibility,1,1,0],[interpretation,20,30,0],[it,1,1,0],[keep,1,1,0],[laughter,1,1.5,0],[maintain,1,1,0],[maintaining,1,1,0],[master,50,30,180],[mind,3,4,4],[minutes,20,30,0],[mistake,1,1,0],[muscle,1,1,1],[muscles,1,1,1],[music,1,1,0],[must,1,1,0],[my,50,30,180],[namaskar,15,10,23],[neck,15,15,10],[next,1,1,0],[nietzsche,50,30,180],[no,1,1,0],[noticed,50,30,180],[nut,1,1,0],[nuts,1,1,1],[of,1,1,0],[off,1,1.5,0],[on,1,1,0],[one,1,1.5,0],[organs,1,1,1],[out,1,1,0],[over,1,1,0],[part,1,1,1],[peace,1,1.5,0],[perfect,1,1.5,0],[performed,50,30,180],[performing,50,30,250],[philosophy,10,20,1],[physiology,50,30,180],[pimple,1,1,0],[pm,5,5,5],[poem,1,1.5,0],[positive,1,1,0],[pot,5,5,10],[prayer,5,5,0],[prepared,1,1,0],[prevent,1,1,0],[prevented,1,1,0],[preventing,1,1,0],[prevention,1,1,0],[problems,1,1.5,0],[product,1,150,1],[products,5,5,5],[psychiatry,50,30,180],[psychology,2,2,0],[quality,1,1.5,0],[quantum,1,1,0],[read,15,1,20],[relax,180,50,30],[relaxed,180,50,30],[remain,1,1.5,0],[require,1,1,0],[room,500,400,300],[s,1,1,0],[safe,1,1.5,0],[sales,1,1.5,0],[same,1,1,0],[schizophrenia,1,1,0],[second,1,1.5,0],[see,1,0,1],[seek,1,1,0],[sell,5,3,0],[sets,5,1,0],[sex,1,1.5,0],[short,1,1,0],[single,1,1.5,0],[sites,20,0,30],[sitting,50,70,150],[sized,30,1,0],[skin,1,1,0],[sleep,180,50,30],[slices,2,2,2],[so,1,1,0],[societal,50,30,180],[some,1,1,0],[spine,1,1,10],[spiritual,50,30,180],[state,1,1.5,0],[stated,20,30,0],[stating,50,30,180],[status,1,1.5,0],[stop,5,1,15],[straight,1,1,0],[strawberry,1,1,1],[structure,1,1,1],[studied,50,30,180],[study,100,50,100],[studying,50,30,180],[subject,50,30,180],[successful,1,1.5,0],[surya,1,1.5,0],[sutra,5,1.5,0],[table,7,5,0],[tape,10,10,1],[task,15,2.5,0],[technique,1,1,0],[test,20,20,0],[text,20,30,0],[that,1,1,0],[the,1,1,0],[them,50,30,180],[then,1,1,0],[they,50,30,180],[thinking,1,1.5,0],[third,1,1.5,0],[this,1,1,0],[thoughts,1,1,0],[through,1,1,0],[tied,1,1,0],[time,1,1.5,0],[to,1,1,0],[together,1,1,0],[touch,1,1,0],[train,1,1,1],[trains,50,30,180],[travel,10,3,0],[treating,20,15,3],[turn,1,1,0],[two,1,1.5,0],[university,100,75,3],[unwanted,1,1,0],[up,1,1,0],[upasana,100,75,100],[used,1,1,0],[using,1,1,0],[var,1,1,1],[vegetables,5,5,5],[videos,5,0,3],[view,5,5,5],[virality,1,1,0],[viruses,1,1,2],[vitamin,1,1,1],[walks,100,500,0],[wanted,15,20,3],[warm,1,1,0],[was,1,1,0],[water,5,5,5],[way,1,1,0],[ways,50,100,0],[well,50,30,180],[where,1,1,0],[whole,1,1,1],[with,1,1,0],[without,1,1,0],[words,5,7,1],[write,15,1,1],[writing,5,5,0],[wrote,15,1,1],[years,3,1,0]]).
+
+texttobr2(0):-!.
+texttobr2(N1):-
+ texttobr2,N2 is N1-1,texttobr2(N2).
diff --git a/Essay-Helper/walk_through.txt b/Essay-Helper/walk_through.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e138a6901e9b23b01a1aa3332b11d76e3c7f3c1f
--- /dev/null
+++ b/Essay-Helper/walk_through.txt
@@ -0,0 +1,212 @@
+[["","",["heading"]],["","",["a"]],["","",["here"]],[1,1,["a","b","c","d"]],[1,2,["e","f","g","h"]]]
+The Short Essay Helper will you help structure and write your essay about "Heading" with 2 reasons per paragraph.
+The Helper will help write an exposition (which summarises but doesn't critique the idea), a critique (which agrees with or disagrees with the topic), the introduction and the conclusion (which state whether you agreed or disagreed with the topic, etc.). Citations will be automatically made.
+The Helper will output the file, "file2020512121854.86923599243164.txt" used for marking. After using the Helper, run Text To Breasonings. Return "file2020512121854.86923599243164.txt" and the two breasoning dictionaries for marking.
+Heading
+
+1a. here1
+
+1. a b c d. e f g h.
+
+What is group 1 of 5 in the exposition that groups ideas about "Heading"?
+| g1
+What is group 2 of 5 in the exposition that groups ideas about "Heading"?
+| g2
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+What is the paragraph number of the quote about the paragraph topic "g1"?
+| 1
+What is the sentence number of the quote about the paragraph topic "g1"?
+| 1
+What is the paraphrased quote about the paragraph topic "g1"?
+| a b c e
+Attempt 1
+[found,[a,b,c,d],[a]]
+Success
+How does the quote you entered ("a b c e") relate to the paragraph topic "g1"?
+| g1 contains a b c e
+Attempt 1
+[found,[g],[g]]
+[found,[a,b,c,d],[a]]
+Success
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+What is the paragraph number of the quote about the paragraph topic "g1"?
+| 1
+What is the sentence number of the quote about the paragraph topic "g1"?
+| 1
+What is the paraphrased quote about the paragraph topic "g1"?
+| a b c f
+Attempt 1
+[found,[a,b,c,d],[a]]
+Success
+How does the quote you entered ("a b c f") relate to the paragraph topic "g1"?
+| g1 contains a b c f
+Attempt 1
+[found,[g],[g]]
+[found,[a,b,c,d],[a]]
+Success
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+What is the paragraph number of the quote about the paragraph topic "g2"?
+| 1
+What is the sentence number of the quote about the paragraph topic "g2"?
+| 1
+What is the paraphrased quote about the paragraph topic "g2"?
+| a b c g
+Attempt 1
+[found,[a,b,c,d],[a]]
+Success
+How does the quote you entered ("a b c g") relate to the paragraph topic "g2"?
+| g2 contains a b c g
+Attempt 1
+[found,[g],[g]]
+[found,[a,b,c,d],[a]]
+Success
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+What is the paragraph number of the quote about the paragraph topic "g2"?
+| 1
+What is the sentence number of the quote about the paragraph topic "g2"?
+| 1
+What is the paraphrased quote about the paragraph topic "g2"?
+| a b c h
+Attempt 1
+[found,[a,b,c,d],[a]]
+Success
+How does the quote you entered ("a b c h") relate to the paragraph topic "g2"?
+| g2 contains a b c h
+Attempt 1
+[found,[g],[g]]
+[found,[a,b,c,d],[a]]
+Success
+Do you agree or disagree with "Heading" (a/d) ?
+| a
+Heading
+
+1a. here1
+
+1. a b c d. e f g h.
+
+
+The Helper will ask you for your comment on the quote you are about to enter.
+What is the paragraph number of the quote to comment on?
+| 1
+What is the sentence number of the quote to comment on?
+| 1
+What is the paraphrased quote to comment on?
+| a b c e
+Attempt 1
+[found,[a,b,c,d],[a]]
+Success
+Is your comment from a quote (y/n)?
+| y
+What is the paragraph number of the comment?
+| 1
+What is the sentence number of the comment?
+| 1
+What is the comment that is from the quote?
+| a b c f
+Attempt 1
+[found,[a,b,c,d],[a]]
+Success
+How does the comment "a b c f" relate to the essay topic "Heading"?
+| Heading contains a b c f
+Attempt 1
+[found,[a,b,c,f],[a]]
+[found,[heading],[b]]
+Success
+
+The Helper will ask you for your comment on the quote you are about to enter.
+What is the paragraph number of the quote to comment on?
+| 1
+What is the sentence number of the quote to comment on?
+| 1
+What is the paraphrased quote to comment on?
+| a b c g
+Attempt 1
+[found,[a,b,c,d],[a]]
+Success
+Is your comment from a quote (y/n)?
+| y
+What is the paragraph number of the comment?
+| 1
+What is the sentence number of the comment?
+| 1
+What is the comment that is from the quote?
+| a b c h
+Attempt 1
+[found,[a,b,c,d],[a]]
+Success
+Please select a comment to connect the comment "a b c h" to:
+1 - a b c f
+
+| 1
+How does "a b c h" connect to "a b c f"?
+| a b c h is a b c f
+Attempt 1
+[found,[a,b,c,f],[a]]
+[found,[a,b,c,h],[a]]
+Success
+
+The Helper will ask you for your comment on the quote you are about to enter.
+What is the paragraph number of the quote to comment on?
+| 1
+What is the sentence number of the quote to comment on?
+| 1
+What is the paraphrased quote to comment on?
+| a b c i
+Attempt 1
+[found,[a,b,c,d],[a]]
+Success
+Is your comment from a quote (y/n)?
+| y
+What is the paragraph number of the comment?
+| 1
+What is the sentence number of the comment?
+| 1
+What is the comment that is from the quote?
+| a b c j
+Attempt 1
+[found,[a,b,c,d],[a]]
+Success
+How does the comment "a b c j" relate to the essay topic "Heading"?
+| heading contains a b c j
+Attempt 1
+[found,[a,b,c,j],[a]]
+[found,[heading],[b]]
+Success
+
+The Helper will ask you for your comment on the quote you are about to enter.
+What is the paragraph number of the quote to comment on?
+| 1
+What is the sentence number of the quote to comment on?
+| 1
+What is the paraphrased quote to comment on?
+| a b c k
+Attempt 1
+[found,[a,b,c,d],[a]]
+Success
+Is your comment from a quote (y/n)?
+| y
+What is the paragraph number of the comment?
+| 1
+What is the sentence number of the comment?
+| 1
+What is the comment that is from the quote?
+| a b c l
+Attempt 1
+[found,[a,b,c,d],[a]]
+Success
+Please select a comment to connect the comment "a b c l" to:
+1 - a b c j
+
+| 1
+How does "a b c l" connect to "a b c j"?
+| a b c l is a b c j
+Attempt 1
+[found,[a,b,c,j],[a]]
+[found,[a,b,c,l],[a]]
+Success
+What is the future area of research from your essay about "Heading"?
+| heading should be automated.
diff --git a/Essay-Helper/walk_through2-output.txt b/Essay-Helper/walk_through2-output.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5c669a55fddcf9cfbb968f93b9f6ed9b2cfcb514
--- /dev/null
+++ b/Essay-Helper/walk_through2-output.txt
@@ -0,0 +1 @@
+[[[[1,"1"],[2,"2"],[3,"3"],[4,"4"],[5,"5"]],[[1,1,_3240,_3246,"1","1"],[1,2,_3186,_3192,"2","2"],[1,3,_3132,_3138,"3","3"],[1,4,_3078,_3084,"4","4"],[2,1,_3024,_3030,"1","1"],[2,2,_2970,_2976,"2","2"],[2,3,_2916,_2922,"3","3"],[2,4,_2862,_2868,"4","4"],[3,1,_2808,_2814,"1","1"],[3,2,_2754,_2760,"2","2"],[3,3,_2700,_2706,"3","3"],[3,4,_2646,_2652,"4","4"],[4,1,_2592,_2598,"1","1"],[4,2,_2538,_2544,"2","2"],[4,3,_2484,_2490,"3","3"],[4,4,_2430,_2436,"4","4"],[5,1,_2376,_2382,"1","1"],[5,2,_2322,_2328,"2","2"],[5,3,_2268,_2274,"3","3"],[5,4,_2214,_2220,"4","4"]]],[[1,["1",[1,1,_5920,_5926,"1",_5944,_5950,"1"],[1,2,_5986,_5992,"2",_6010,_6016,"4",1,1,"1",0,0,"4","4"],[1,3,_6112,_6118,"3",_6136,_6142,"4",1,1,"1",0,0,"4","4"],[1,4,_6238,_6244,"4",_6262,_6268,"4",1,1,"1",0,0,"4","4"]]],[2,["1",[2,1,_5446,_5452,"1",_5470,_5476,"1"],[2,2,_5512,_5518,"2",_5536,_5542,"4",2,1,"1",0,0,"4","4"],[2,3,_5638,_5644,"3",_5662,_5668,"4",2,1,"1",0,0,"4","4"],[2,4,_5764,_5770,"4",_5788,_5794,"4",2,1,"1",0,0,"4","4"]]],[3,["1",[3,1,_4972,_4978,"1",_4996,_5002,"1"],[3,2,_5038,_5044,"2",_5062,_5068,"4",3,1,"1",0,0,"4","4"],[3,3,_5164,_5170,"3",_5188,_5194,"4",3,1,"1",0,0,"4","4"],[3,4,_5290,_5296,"4",_5314,_5320,"4",3,1,"1",0,0,"4","4"]]],[4,["1",[4,1,_4498,_4504,"1",_4522,_4528,"1"],[4,2,_4564,_4570,"2",_4588,_4594,"4",4,1,"1",0,0,"4","4"],[4,3,_4690,_4696,"3",_4714,_4720,"4",4,1,"1",0,0,"4","4"],[4,4,_4816,_4822,"4",_4840,_4846,"4",4,1,"1",0,0,"4","4"]]],[5,["1",[5,1,_4024,_4030,"1",_4048,_4054,"1"],[5,2,_4090,_4096,"2",_4114,_4120,"4",5,1,"1",0,0,"4","4"],[5,3,_4216,_4222,"3",_4240,_4246,"4",5,1,"1",0,0,"4","4"],[5,4,_4342,_4348,"4",_4366,_4372,"4",5,1,"1",0,0,"4","4"]]]],"b"]
\ No newline at end of file
diff --git a/Essay-Helper/walk_through2.html b/Essay-Helper/walk_through2.html
new file mode 100644
index 0000000000000000000000000000000000000000..a861eef0a9413a2d4ebbb7dee862495ba9af5c27
--- /dev/null
+++ b/Essay-Helper/walk_through2.html
@@ -0,0 +1 @@
+h
h
I will critically analyse h. I will agree with h. 1 1 1 1 1 I will expose h in this half. 1 1 2 2 3 3 4 4 1 1 2 2 3 3 4 4 1 1 2 2 3 3 4 4 1 1 2 2 3 3 4 4 1 1 2 2 3 3 4 4 I will agree with h in this half. 1 1 1 2 4 4 3 4 4 4 4 4 1 1 1 1 2 4 4 3 4 4 4 4 4 1 1 1 1 2 4 4 3 4 4 4 4 4 1 1 1 1 2 4 4 3 4 4 4 4 4 1 1 1 1 2 4 4 3 4 4 4 4 4 1 1 1 1 1 1 I have agreed with h. b
Bibliography
1 2 3 4
\ No newline at end of file
diff --git a/Essay-Helper/walk_through2.txt b/Essay-Helper/walk_through2.txt
new file mode 100644
index 0000000000000000000000000000000000000000..065015a4ca65e8bf05a97e27f5c66915430589af
--- /dev/null
+++ b/Essay-Helper/walk_through2.txt
@@ -0,0 +1,1148 @@
+?- short_essay_helper("h",4).
+The Short Essay Helper will you help structure and write your essay about "h" with 4 reasons per paragraph.
+The Helper will help write an exposition (which summarises but doesn't critique the idea), a critique (which agrees with or disagrees with the topic), the introduction and the conclusion (which state whether you agreed or disagreed with the topic, etc.). Citations will be automatically made.
+
+What is group 1 of 5 in the exposition that groups ideas about "h"?
+|: 1
+What is group 2 of 5 in the exposition that groups ideas about "h"?
+|: 2
+What is group 3 of 5 in the exposition that groups ideas about "h"?
+|: 3
+What is group 4 of 5 in the exposition that groups ideas about "h"?
+|: 4
+What is group 5 of 5 in the exposition that groups ideas about "h"?
+|: 5
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "1"?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+|: 1
+How does the quote you entered ("1") relate to the paragraph topic "1"?
+|: 1
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "1"?
+|: 2
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+|: 2
+How does the quote you entered ("2") relate to the paragraph topic "1"?
+|: 2
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "1"?
+|: 3
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+|: 3
+How does the quote you entered ("3") relate to the paragraph topic "1"?
+|: 3
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "1"?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+|: 4
+How does the quote you entered ("4") relate to the paragraph topic "1"?
+|: 4
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "2"?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+How does the quote you entered ("1") relate to the paragraph topic "2"?
+|: 1
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "2"?
+|: 2
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 2
+How does the quote you entered ("2") relate to the paragraph topic "2"?
+|: 2
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "2"?
+|: 3
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 3
+How does the quote you entered ("3") relate to the paragraph topic "2"?
+|: 3
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "2"?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+How does the quote you entered ("4") relate to the paragraph topic "2"?
+|: 4
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "3"?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+How does the quote you entered ("1") relate to the paragraph topic "3"?
+|: 1
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "3"?
+|: 2
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 2
+How does the quote you entered ("2") relate to the paragraph topic "3"?
+|: 2
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "3"?
+|: 3
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 3
+How does the quote you entered ("3") relate to the paragraph topic "3"?
+|: 3
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "3"?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+How does the quote you entered ("4") relate to the paragraph topic "3"?
+|: 4
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "4"?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+How does the quote you entered ("1") relate to the paragraph topic "4"?
+|: 1
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "4"?
+|: 2
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 2
+How does the quote you entered ("2") relate to the paragraph topic "4"?
+|: 2
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "4"?
+|: 3
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 3
+How does the quote you entered ("3") relate to the paragraph topic "4"?
+|: 3
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "4"?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+How does the quote you entered ("4") relate to the paragraph topic "4"?
+|: 4
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "5"?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+How does the quote you entered ("1") relate to the paragraph topic "5"?
+|: 1
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "5"?
+|: 2
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 2
+How does the quote you entered ("2") relate to the paragraph topic "5"?
+|: 2
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "5"?
+|: 3
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 3
+How does the quote you entered ("3") relate to the paragraph topic "5"?
+|: 3
+
+The Helper will ask you how the quote you are about to enter relates to the paragraph topic.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote about the paragraph topic "5"?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+How does the quote you entered ("4") relate to the paragraph topic "5"?
+|: 4
+Do you agree or disagree with "h" (a/d) ?
+|: a
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+How does the comment "1" relate to the essay topic "h"?
+|: 1
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 2
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 3
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+2 - 4
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+2 - 4
+3 - 4
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+How does the comment "1" relate to the essay topic "h"?
+|: 1
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 2
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 3
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+2 - 4
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+2 - 4
+3 - 4
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+How does the comment "1" relate to the essay topic "h"?
+|: 1
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 2
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 3
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+2 - 4
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+2 - 4
+3 - 4
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+How does the comment "1" relate to the essay topic "h"?
+|: 1
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 2
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 3
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+2 - 4
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+2 - 4
+3 - 4
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 1
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 1
+How does the comment "1" relate to the essay topic "h"?
+|: 1
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 2
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 3
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+2 - 4
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+
+The Helper will ask you for your comment on the quote you are about to enter.
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the paraphrased quote to comment on?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Is your comment from a quote (y/n)?
+|: y
+Note: Enter in-text reference using AGPS, e.g.
+The first work supports the second work (Surname 2000, pp. 18-9).
+Surname (2000, pp. 18-9) states that ...
+Remember to use words like "also", "moreover" and "in addition" before the sentence.
+What is the comment that is from the quote?
+|: 4
+What is the reference? e.g. Surname, A 2000, Title: Subtitle, Publisher, City.
+
+Existing references (copy one or many delimited with "\n"):
+1
+2
+3
+4
+|: 4
+Please select a comment to connect the comment "4" to:
+1 - 1
+2 - 4
+3 - 4
+
+|: 1
+How does "4" connect to "1"?
+|: 4
+What is the future area of research from your essay about "h"?
+|: b
+"h
+
+I will critically analyse h. I will agree with h. 1 1 1 1 1
+
+I will expose h in this half. 1 1 2 2 3 3 4 4
+1 1 2 2 3 3 4 4
+1 1 2 2 3 3 4 4
+1 1 2 2 3 3 4 4
+1 1 2 2 3 3 4 4
+I will agree with h in this half. 1 1 1 2 4 4 3 4 4 4 4 4 1
+1 1 1 2 4 4 3 4 4 4 4 4 1
+1 1 1 2 4 4 3 4 4 4 4 4 1
+1 1 1 2 4 4 3 4 4 4 4 4 1
+1 1 1 2 4 4 3 4 4 4 4 4 1
+
+1 1 1 1 1 I have agreed with h. b
+
+Bibliography
+
+1
+2
+3
+4
+"
+true.
diff --git a/Essay-Helper/walk_through3.1-chicago.html b/Essay-Helper/walk_through3.1-chicago.html
new file mode 100644
index 0000000000000000000000000000000000000000..93efa965663cb59aafa1e651300db7b5901eaa5b
--- /dev/null
+++ b/Essay-Helper/walk_through3.1-chicago.html
@@ -0,0 +1 @@
+m
m
I will critically analyse m. I will agree with m. m is because "m11-2". m is because "M1". m is because "m22". m is because "m32". m is because "m42". I will expose m in this half. I agree with M1 because m331. I agree with M1 because "m42"2. I agree with m12 because m523. I agree with m12 because "m53"4. I agree with m22 because m625. I agree with m22 because "m63"6. I agree with m23 because m727. I agree with m23 because "m73"8. I agree with m32 because m839. I agree with m32 because "m92"10. I will agree with m in this half. m is because "m11-2". "m93"11. "m11-2"12. m is because "m11-2". m is because "M1". "m11-3"13. "M1"14. m is because "M1". m is because "m22". "m12"15. "m22"16. m is because "m22". m is because "m32". "m23"17. "m32"18. m is because "m32". m is because "m42". "m33"19. "m42"20. m is because "m42". m is because "m11-2". m is because "M1". m is because "m22". m is because "m32". m is because "m42". I have agreed with m. In m, automation should apply to "m43".
Endnotes
1. ref1, p 3. 2. Ibid, p 3. 3. Ibid, p 4. 4. Ibid. 5. Ibid, p 5. 6. Ibid. 7. Ibid, p 6. 8. Ibid. 9. Ibid, p 7. 10. Ibid, p 8. 11. Ibid. 12. Ibid, p 9. 13. Ibid. 14. ref3, p 1. 15. Ibid. 16. Ibid, p 1. 17. Ibid. 18. Ibid, p 2. 19. Ibid. 20. Ibid, p 3.
Bibliography
ref1 ref3
\ No newline at end of file
diff --git a/Essay-Helper/walk_through3.1.html b/Essay-Helper/walk_through3.1.html
new file mode 100644
index 0000000000000000000000000000000000000000..27fad09f370f20836d3da79d1246b9981bfb0b40
--- /dev/null
+++ b/Essay-Helper/walk_through3.1.html
@@ -0,0 +1 @@
+m
m
I will critically analyse m. I will agree with m. m is because "m82" (author 2003, p. 8). m is because "m53" (author 2003, p. 5). m is because "m12" (author 2003, p. 1). m is because "m72" (author 2003, p. 7). m is because "m12" (author 2003, p. 1). I will expose m in this half. m82 (author 2003, p. 8) is because m11-2 (author 2003, p. 11). m82 (author 2003, p. 8) is because "m32" (author 2003, p. 3). m32 (author 2003, p. 3) is because m92 (author 2003, p. 9). m32 (author 2003, p. 3) is because "m83" (author 2003, p. 8). m63 (author 2003, p. 6) is because m63 (author 2003, p. 6). m63 (author 2003, p. 6) is because "m33" (author 2003, p. 3). M1 (author 2003, p. 1) is because m10-3 (author 2003, p. 10). M1 (author 2003, p. 1) is because "m c62" (author 2003, p. 6). m22 (author 2003, p. 2) is because m62 (author 2003, p. 6). m22 (author 2003, p. 2) is because "M1" (author 2003, p. 1). I will agree with m in this half. m is because "m82" (author 2003, p. 8). "m53" (author 2003, p. 5). "m82" (author 2003, p. 8). m is because "m82" (author 2003, p. 8). m is because "m53" (author 2003, p. 5). "m33" (author 2003, p. 3). "m53" (author 2003, p. 5). m is because "m53" (author 2003, p. 5). m is because "m12" (author 2003, p. 1). "m73" (author 2003, p. 7). "m12" (author 2003, p. 1). m is because "m12" (author 2003, p. 1). m is because "m72" (author 2003, p. 7). "m83" (author 2003, p. 8). "m72" (author 2003, p. 7). m is because "m72" (author 2003, p. 7). m is because "m12" (author 2003, p. 1). "m92" (author 2003, p. 9). "m12" (author 2003, p. 1). m is because "m12" (author 2003, p. 1). m is because "m82" (author 2003, p. 8). m is because "m53" (author 2003, p. 5). m is because "m12" (author 2003, p. 1). m is because "m72" (author 2003, p. 7). m is because "m12" (author 2003, p. 1). I have agreed with m. In m, automation should apply to "m23" (author 2003, p. 2).
Bibliography
ref1 ref2 ref3
\ No newline at end of file
diff --git a/Essay-Helper/walk_through3.html b/Essay-Helper/walk_through3.html
new file mode 100644
index 0000000000000000000000000000000000000000..7bb5449200429d096f51a74121efc62434644cff
--- /dev/null
+++ b/Essay-Helper/walk_through3.html
@@ -0,0 +1 @@
+Author's Heading
Author's Heading
I will critically analyse Author's Heading. I will agree with Author's Heading. Author's Heading is because of a (author 2000, p 2) because of a (author 2000, p 2). Author's Heading is because of a (author 2000, p 2) because of c (author 2000, p 1). Author's Heading is because of a (author 2000, p 1) because of c (author 2000, p 1). Author's Heading is because of b (author 2000, p 1) because of b (author 2000, p 2). Author's Heading is because of b (author 2000, p 2) because of a (author 2000, p 1). I will expose Author's Heading in this half. b (author 2000, p 1) is because a (author 2000, p 1). b (author 2000, p 1) is because a (author 2000, p 1). b (author 2000, p 1) is because c (author 2000, p 2). b (author 2000, p 1) is because a (author 2000, p 2). b (author 2000, p 1) is because c (author 2000, p 2). b (author 2000, p 1) is because a (author 2000, p 1). b (author 2000, p 1) is because b (author 2000, p 1). b (author 2000, p 1) is because a (author 2000, p 1). b (author 2000, p 1) is because b (author 2000, p 1). b (author 2000, p 1) is because c (author 2000, p 2). b (author 2000, p 2) is because c (author 2000, p 2). b (author 2000, p 2) is because b (author 2000, p 2). b (author 2000, p 2) is because a (author 2000, p 1). b (author 2000, p 2) is because a (author 2000, p 1). b (author 2000, p 2) is because c (author 2000, p 2). b (author 2000, p 2) is because a (author 2000, p 2). b (author 2000, p 2) is because b (author 2000, p 1). b (author 2000, p 2) is because b (author 2000, p 1). b (author 2000, p 2) is because c (author 2000, p 2). b (author 2000, p 2) is because c (author 2000, p 1). b (author 2000, p 2) is because c (author 2000, p 1). b (author 2000, p 2) is because c (author 2000, p 2). b (author 2000, p 2) is because c (author 2000, p 1). b (author 2000, p 2) is because a (author 2000, p 2). b (author 2000, p 2) is because a (author 2000, p 2). b (author 2000, p 2) is because b (author 2000, p 2). b (author 2000, p 2) is because b (author 2000, p 2). b (author 2000, p 2) is because c (author 2000, p 1). b (author 2000, p 2) is because a (author 2000, p 1). b (author 2000, p 2) is because c (author 2000, p 2). a (author 2000, p 2) is because b (author 2000, p 1). a (author 2000, p 2) is because a (author 2000, p 1). a (author 2000, p 2) is because a (author 2000, p 2). a (author 2000, p 2) is because a (author 2000, p 2). a (author 2000, p 2) is because c (author 2000, p 2). a (author 2000, p 2) is because a (author 2000, p 2). a (author 2000, p 2) is because b (author 2000, p 1). a (author 2000, p 2) is because a (author 2000, p 2). a (author 2000, p 2) is because a (author 2000, p 2). a (author 2000, p 2) is because a (author 2000, p 2). c (author 2000, p 2) is because c (author 2000, p 1). c (author 2000, p 2) is because a (author 2000, p 2). c (author 2000, p 2) is because c (author 2000, p 2). c (author 2000, p 2) is because b (author 2000, p 2). c (author 2000, p 2) is because c (author 2000, p 1). c (author 2000, p 2) is because b (author 2000, p 1). c (author 2000, p 2) is because c (author 2000, p 1). c (author 2000, p 2) is because c (author 2000, p 2). c (author 2000, p 2) is because b (author 2000, p 1). c (author 2000, p 2) is because a (author 2000, p 1). I will agree with Author's Heading in this half. Author's Heading is because of a (author 2000, p 2) because of a (author 2000, p 2). c (author 2000, p 2). a (author 2000, p 2). a (author 2000, p 2). b (author 2000, p 2). b (author 2000, p 2) is because of a (author 2000, p 2) because of b (author 2000, p 1). a (author 2000, p 2). b (author 2000, p 2). b (author 2000, p 2) is because of a (author 2000, p 2) because of a (author 2000, p 1). Author's Heading is because of a (author 2000, p 2) because of a (author 2000, p 2). Author's Heading is because of a (author 2000, p 2) because of c (author 2000, p 1). c (author 2000, p 2). a (author 2000, p 2). a (author 2000, p 1). a (author 2000, p 1). a (author 2000, p 1) is because of a (author 2000, p 2) because of a (author 2000, p 2). a (author 2000, p 2). a (author 2000, p 2). a (author 2000, p 2) is because of a (author 2000, p 2) because of c (author 2000, p 1). Author's Heading is because of a (author 2000, p 2) because of c (author 2000, p 1). Author's Heading is because of a (author 2000, p 1) because of c (author 2000, p 1). b (author 2000, p 1). a (author 2000, p 1). b (author 2000, p 2). a (author 2000, p 1). a (author 2000, p 1) is because of a (author 2000, p 1) because of c (author 2000, p 1). b (author 2000, p 2). c (author 2000, p 2). c (author 2000, p 2) is because of a (author 2000, p 1) because of a (author 2000, p 2). b (author 2000, p 1). b (author 2000, p 1). b (author 2000, p 1) is because of a (author 2000, p 1) because of b (author 2000, p 1). Author's Heading is because of a (author 2000, p 1) because of c (author 2000, p 1). Author's Heading is because of b (author 2000, p 1) because of b (author 2000, p 2). c (author 2000, p 2). b (author 2000, p 1). b (author 2000, p 2). b (author 2000, p 2). b (author 2000, p 2) is because of b (author 2000, p 1) because of b (author 2000, p 2). b (author 2000, p 1). b (author 2000, p 1). b (author 2000, p 1) is because of b (author 2000, p 1) because of b (author 2000, p 1). Author's Heading is because of b (author 2000, p 1) because of b (author 2000, p 2). Author's Heading is because of b (author 2000, p 2) because of a (author 2000, p 1). b (author 2000, p 2). b (author 2000, p 2). c (author 2000, p 1). a (author 2000, p 1). a (author 2000, p 1) is because of b (author 2000, p 2) because of a (author 2000, p 1). a (author 2000, p 1). b (author 2000, p 2). b (author 2000, p 2) is because of b (author 2000, p 2) because of a (author 2000, p 2). c (author 2000, p 2). c (author 2000, p 1). c (author 2000, p 1) is because of b (author 2000, p 2) because of b (author 2000, p 1). Author's Heading is because of b (author 2000, p 2) because of a (author 2000, p 1). Author's Heading is because of a (author 2000, p 2) because of a (author 2000, p 2). Author's Heading is because of a (author 2000, p 2) because of c (author 2000, p 1). Author's Heading is because of a (author 2000, p 1) because of c (author 2000, p 1). Author's Heading is because of b (author 2000, p 1) because of b (author 2000, p 2). Author's Heading is because of b (author 2000, p 2) because of a (author 2000, p 1). I have agreed with Author's Heading. In Author's Heading, automation should apply to a (author 2000, p 1).
Bibliography
ref
\ No newline at end of file
diff --git a/File2List2Br/A database segment in File2List2Br.png b/File2List2Br/A database segment in File2List2Br.png
new file mode 100644
index 0000000000000000000000000000000000000000..42eef3de1465f05c5b7deb987d47f20f545ee45d
--- /dev/null
+++ b/File2List2Br/A database segment in File2List2Br.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:67e69ec47149b41dbcdd453eeb2167074ce35920293649c35d0e8cd095ed4f21
+size 140441
diff --git a/File2List2Br/LICENSE b/File2List2Br/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..3a27c90f1c2986ac0fb73b4ae956c6205343dfdd
--- /dev/null
+++ b/File2List2Br/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2020, Lucian Green
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/File2List2Br/README.md b/File2List2Br/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..db1ef9ef345be091a6daaecc7d5df6a99c9e2688
--- /dev/null
+++ b/File2List2Br/README.md
@@ -0,0 +1,89 @@
+# File2List2Br
+
+Automates high distinctions for large files.
+
+* file2list.pl - generates files that are lists of breasonings (words that earn high distinctions) from files
+* list2br.pl - converts a list of words to breasonings
+- shows last 10 assignments with breasoning count
+- asks if the user wants 128k breasonings (4000 breasonings or 50 As * 80 breasonings, * 4 for 100%, * 2 for student and to do lecturer's work, * 2 for University and an industry seen-as version * 2 for the student and their friend) or another value for an assignment
+- seamlessly tries next list, warning if past end of database, and giving error if database has been finished
+
+# Getting Started
+
+Please read the following instructions on how to install the project on your computer for automating high distinctions for large files.
+
+# Prerequisites
+
+* Please download and install SWI-Prolog for your machine at `https://www.swi-prolog.org/build/`.
+
+# 1. Install manually
+
+Download this repository, the List Prolog Interpreter Repository and the Text to Breasonings Repository.
+
+# 2. Or Install from List Prolog Package Manager (LPPM)
+
+* Download the LPPM Repository:
+
+```
+mkdir GitHub
+cd GitHub/
+git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
+cd List-Prolog-Package-Manager
+swipl
+['lppm'].
+lppm_install("luciangreen","File2List2Br").
+halt
+```
+
+# Running
+
+* Download the repositories above and save them in a single folder.
+* Save a large file in Terminal as a text file.
+* Split the file `split -b 4000000 file.txt`.
+* Load `file2list1` by entering `['file2list.pl'].` and run with the command e.g. `file2list1(["fileout_txt.aa","fileout_txt.ab"]).` where the file names are the split files from the previous step. Don't close the window.
+* In `list_db.txt`, enter the file names of the files generated by `file2list1` and their breasoning counts output from `file2list1`, e.g.
+```
+[["t-tmp.txt",12],["a-tmp.txt",2]]
+```
+* NB. You can use BBEdit to delete parts of the output and replace with `\t (tab)` so that the breasoning count can be separated from the unique breasonings in Excel, and then use replacements in BBEdit to format the list. You can use `reverse(Input,Output).` in swipl to reverse lists. Be careful that the filenames correspond to the correct breasoning count.
+* In Shell:
+`cd File2List2Br`
+`swipl`
+`['../Text-to-Breasonings/text_to_breasonings.pl'].`
+* Load `list2br.pl` by entering `['list2br.pl'].` and run with the command `list2br.`.
+```
+Number of breasoning databases: 2
+Number of previous assignments: 1
+10 Previous Assignments and Breasoning Counts
+[Comment,0]
+0 of 14 breasonings (0%) used.
+Enter the subject and assignment number:
+```
+* Enter the university or school subject and the info about the assignment.
+```
+Enter for 128k breasonings in this assignment, or the number of breasonings:
+```
+* Press `Return` for 128000 breasonings, assuming there are enough in the database (if you would like to given the reasons above) or enter another value.
+```
+Number of words in dictionary: 11746
+Number of unique breasonings in dictionary: 662
+Number of words to breason out in file: 1
+Number of unique words in file: 1
+Number of unique breathsonings in dictionary: 364
+true.
+```
+* You will be asked to breason out new words.
+* You can delete this info in the `assignment_db.txt` database later to e.g. redo or increase the breasoning number and redo.
+
+# Caution:
+
+follow instructions in Instructions for Using texttobr(2) when using texttobr, texttobr2 or mind reader to avoid medical problems.
+
+# Authors
+
+Lucian Green - Initial programmer - Lucian Academy
+
+# License
+
+I licensed this project under the BSD3 License - see the LICENSE.md file for details
+
diff --git a/File2List2Br/a-tmp.txt b/File2List2Br/a-tmp.txt
new file mode 100644
index 0000000000000000000000000000000000000000..648aeba7fa17cc60ce738161e59a41d234083f5e
--- /dev/null
+++ b/File2List2Br/a-tmp.txt
@@ -0,0 +1 @@
+[a1,A2]
\ No newline at end of file
diff --git a/File2List2Br/assignment_db.txt b/File2List2Br/assignment_db.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3674c65a98d79a7856af6e782c57b657ddd02cb4
--- /dev/null
+++ b/File2List2Br/assignment_db.txt
@@ -0,0 +1 @@
+[["Comment",0]]
\ No newline at end of file
diff --git a/File2List2Br/file2list.pl b/File2List2Br/file2list.pl
new file mode 100644
index 0000000000000000000000000000000000000000..88a8f7aaef575a0e97bed4c604d28820a9fc085d
--- /dev/null
+++ b/File2List2Br/file2list.pl
@@ -0,0 +1,44 @@
+%% file2list.pl
+
+%% converts a file to a list in filelist.txt
+
+%%:- include('mergetexttobrdict.pl').
+:- include('la_strings').
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+
+file2list1(Files) :-
+%%Files=["fileout_txt.aa","fileout_txt.ab"],
+findall(_,(member(File1,Files),file2list(File1)),_).
+
+
+file2list(File1) :- prep(File1,List1),
+
+ string_concat(File1,"list.txt",File2),
+ (open_s(File2,write,Stream),
+ write(Stream,List1),
+ close(Stream)),
+ !.
+
+truncate(List1,M,String0) :-
+ ((number(M),length(String0,M),
+ append(String0,_,List1))->true;
+ String0=List1),!.
+
+prep(File1,List) :-
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+
+ phrase_from_file_s(string(String00), File1)),
+
+ split_string(String00,SepandPad,SepandPad,List),
+
+ length(List,Length1),write("Number of words in file: "), writeln(Length1),
+ sort(List,List2),
+%%writeln([list2,List2]),
+ length(List2,Length2),write("Number of unique words in file: "), writeln(Length2)
+
+,!.
diff --git a/File2List2Br/list2br.pl b/File2List2Br/list2br.pl
new file mode 100644
index 0000000000000000000000000000000000000000..f75fb0da57b8790afba1460cec4845ba92a6f15a
--- /dev/null
+++ b/File2List2Br/list2br.pl
@@ -0,0 +1,153 @@
+%% list2br.pl
+
+%% converts a list of words to br
+%% - shows last 10 assignments with br count
+%% - asks if want 128k or other for next br
+%% - seamlessly tries next list, warning if exhausted
+
+%%:- include('mergetexttobrdict.pl').
+
+%%**** load:`['../Text-to-Breasonings/text_to_breasonings.pl'].`
+
+
+%% this file
+
+:- include('../listprologinterpreter/la_strings').
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+
+list2br :- prep_l2b(File_contents_list_term,File_contents_assignments_term1
+ ),
+
+ br1_l2b(File_contents_list_term,File_contents_assignments_term1,File_contents_assignments_term2),
+ term_to_atom(File_contents_assignments_term2,File_contents_assignments_atom),
+ (open_s("assignment_db.txt",write,Stream),
+ write(Stream,File_contents_assignments_atom),
+ close(Stream)),
+ !.
+
+
+prep_l2b(File_contents_list_term,File_contents_assignments_term) :-
+
+phrase_from_file_s(string(File_contents_list2), "list_db.txt"),
+
+string_codes(File_contents_list1,File_contents_list2),
+atom_string(File_contents_list,File_contents_list1),
+
+term_to_atom(File_contents_list_term,File_contents_list),
+
+ length(File_contents_list_term,Length1),write("Number of breasoning databases: "), writeln(Length1),
+
+
+phrase_from_file_s(string(File_contents_assignments2), "assignment_db.txt"),
+
+string_codes(File_contents_assignments1,File_contents_assignments2),
+atom_string(File_contents_assignments,File_contents_assignments1),
+
+term_to_atom(File_contents_assignments_term,File_contents_assignments),
+
+ length(File_contents_assignments_term,Length2),write("Number of previous assignments: "), writeln(Length2),
+
+!.
+
+sum(A,B) :-
+A=[C|D],sum(C,D,0,B).
+sum(A,[],B,C):-C is A+B,!.
+sum(A,B,C,D):-B=[E|F],G is A+C,sum(E,F,G,D).
+
+%%C is A+B.
+
+br1_l2b(File_contents_list_term,File_contents_assignments_term1,File_contents_assignments_term2) :-
+ length(File_contents_assignments_term1,Ass_length),
+ (Ass_length=<10->New_ass=File_contents_assignments_term1;
+ B is 10,length(New_ass,B),append(_,New_ass,File_contents_assignments_term1)),
+ writeln("10 Previous Assignments and Breasoning Counts"),
+ findall(_,(member(C,New_ass),writeln(C)),_),
+ %%writeln(""),
+ findall(E,(member(D,File_contents_assignments_term1),D=[_,E]),F), sum(F,G),
+ findall(H,(member(I,File_contents_list_term),I=[_,H]),J), sum(J,K),
+ L is round(100*(G/K)),
+
+ write(G),write(" of "),write(K),write(" breasonings ("),write(L),writeln("%) used."),
+
+ (repeat,write("Enter the subject and assignment number: "),
+ read_string(user_input, "\n", "\r", _NC1, NC2)),
+
+ (repeat,write("Enter for 128k breasonings in this assignment, or the number of breasonings: "),
+ read_string(user_input, "\n", "\r", _NB1, NB2),split_string(NB2, "", " ", NB3),
+NB3=[NB4],(NB4=""->NB5=128000;number_string(NB5,NB4))),
+
+ append(File_contents_assignments_term1,[[NC2,NB5]],File_contents_assignments_term2),
+
+ %%(File_contents_list_term=[]->(concat_list(["Error: Database is empty."],A),
+ %%writeln(A),abort);
+ (find_br1(File_contents_list_term,G,NB5,0,[],Text_term),
+ % convert to string
+ term_to_atom(Text_term,Text_atom),
+ string_atom(Text_string,Text_atom),
+ % t2b2
+
+ %%writeln1(Text_string),
+
+ texttobr2(u,u,Text_string,u,true,false,false,false,false,false),
+ texttobr(u,u,Text_string,u))%%
+.
+
+%% if last list, give warning, count so far and text
+
+%% ** if past, error
+find_br1([],_Start,_Len_needed,_Len_so_far1,_Text1,_Text2) :-
+ concat_list(["Error: Start is past end of database."],A),
+ writeln(A),abort.
+find_br1(File_contents_list_term,Start,Len_needed,Len_so_far1,Text1,Text2) :-
+
+%%trace,
+
+ File_contents_list_term=[[_Filename,Len]|Rest],
+ Len_so_far2 is Len_so_far1+Len,
+ (Len_so_far2 > Start ->
+ (
+find_br2(File_contents_list_term,Start,Len_needed,Len_so_far1,Text1,Text2)
+); %% Len_so_far2 < Start
+(%%Len_so_far2 is Len_so_far1+Len,
+Len_so_far3 is 0,%%Start2 is 0,Len_needed2 is Len_needed-B.
+Start2 is Start-Len,
+find_br1(Rest,Start2,Len_needed,Len_so_far3,Text1,Text2)))
+.
+
+%% find text from file
+find_br2([],_Start,Len_needed,_Len_so_far1,Text,Text) :-
+ concat_list(["Warning: End of database has been reached. ",Len_needed," breasonings remaining."],A), writeln(A).
+
+find_br2(File_contents_list_term,Start,Len_needed,Len_so_far1,Text1,Text2) :-
+ File_contents_list_term=[[Filename,Len]|Rest],
+
+phrase_from_file_s(string(File_contents_newlist2), Filename),
+
+string_codes(File_contents_newlist1,File_contents_newlist2),
+atom_string(File_contents_newlist0,File_contents_newlist1),
+downcase_atom(File_contents_newlist0,File_contents_newlist),
+
+term_to_atom(File_contents_newlist_term,File_contents_newlist),
+%%trace,
+
+ Start_of_list is Start-Len_so_far1,
+ Len_to_end_of_list is Len - Start_of_list,
+
+(Len_needed=(%%trace,
+C is Start_of_list%-1
+,length(Texta,Len_needed),length(A,C),append(A,F,File_contents_newlist_term),append(Texta,_,F),append(Text1,Texta,Text2));
+(
+
+B is %%Len_needed
+Len-Start,length(Texta,B),append(_,Texta,File_contents_newlist_term),append(Text1,Texta,Text3),
+
+%text is computed v
+Len_so_far2 is 0,Start2 is 0,Len_needed2 is Len_needed-B,%%Len_so_far1+Len,
+find_br2(Rest,Start2,Len_needed2,Len_so_far2,Text3,Text2)) %% go to next list ***
+).
+
diff --git a/File2List2Br/list_db.txt b/File2List2Br/list_db.txt
new file mode 100644
index 0000000000000000000000000000000000000000..dcca6af8dcf16ff39773424e87007fce982f10c9
--- /dev/null
+++ b/File2List2Br/list_db.txt
@@ -0,0 +1 @@
+[["t-tmp.txt",12],["a-tmp.txt",2]]
\ No newline at end of file
diff --git a/File2List2Br/t-tmp.txt b/File2List2Br/t-tmp.txt
new file mode 100644
index 0000000000000000000000000000000000000000..7370f3276428c4e3e1c1dcb8e44f730c965398b6
--- /dev/null
+++ b/File2List2Br/t-tmp.txt
@@ -0,0 +1 @@
+[t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12]
\ No newline at end of file
diff --git a/Languages/.DS_Store b/Languages/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6
Binary files /dev/null and b/Languages/.DS_Store differ
diff --git a/Languages/LICENSE b/Languages/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..3a27c90f1c2986ac0fb73b4ae956c6205343dfdd
--- /dev/null
+++ b/Languages/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2020, Lucian Green
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Languages/README.md b/Languages/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..1d433941c601529c5809e99df9c1a2695d52b9cc
--- /dev/null
+++ b/Languages/README.md
@@ -0,0 +1,130 @@
+# Languages
+
+Supports international versions of repositories: List Prolog Interpreter.
+
+# Getting Started
+
+Please read the following instructions on how to install the project on your computer for coding in other languages.
+
+# Prerequisites
+
+* Please download and install SWI-Prolog for your machine at `https://www.swi-prolog.org/build/`.
+
+* You may need to install gawk using Homebrew.
+
+* Install Translation Shell on Mac, etc.
+Change line in
+```
+culturaltranslationtool/ctt2.pl
+trans_location("../../../gawk/trans").
+```
+to correct location of trans.
+
+# 1. Install manually
+
+Download this repository, Prolog to List Prolog, the List Prolog Interpreter and Cultural Translation Tool.
+
+# 2. Or Install from List Prolog Package Manager (LPPM)
+
+* Download the LPPM Repository:
+
+```
+mkdir GitHub
+cd GitHub/
+git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
+cd List-Prolog-Package-Manager
+swipl
+['lppm'].
+lppm_install("luciangreen","Languages").
+halt
+```
+
+# Running
+
+* In Shell:
+`cd listprologinterpreter`
+`['listprolog'].`
+
+* Running the tests: See List Prolog Interpreter.
+
+# Languages commands
+
+* To install a new language for LPI (see available language codes):
+```
+cd Languages
+swipl
+['lang_db_generator.pl'].
+lang_db_generator("en2",["de","ga"]).
+```
+to install German (de) and Irish (ga) (in the listprologinterpreter/languages folder, not in the Languages repository). The English2 file is used to translate English commands.
+
+* To generate LPI documentation in language "en2" (i.e. "concatenate strings" instead of "stringconcat"):
+```
+cd Languages
+swipl
+['../listprologinterpreter/listprolog.pl'].
+make_docs("docs_full.txt").
+```
+
+* To generate LPI documentation in a language:
+```
+cd Languages
+swipl
+['make_docs.pl'].
+% run one of the following lines every few hours
+make_docs("docs1.txt").
+make_docs("docs2.txt").
+make_docs("docs3.txt").
+make_docs("docs4.txt").
+make_docs("docs5.txt").
+make_docs("docs6.txt").
+make_docs("docs6-1.txt").
+make_docs("docs6-2.txt").
+make_docs("docs7.txt").
+make_docs("docs8.txt").
+make_docs("docs9.txt").
+make_docs("docs10.txt").
+make_docs("docs11.txt").
+make_docs("docs12.txt").
+```
+
+The following is displayed, and the user enters a language code (installed from the previous step):
+```
+Enter target language code for LPI docs:
+|: fr
+```
+
+* Note: The trans shell software has a quota, so it is recommended to translate 60 words of doc.txt at a time by editing it before running.
+
+* You could translate docs.txt into the target language "en2" and then into your chosen target language with Google Translate.
+
+* To translate an algorithm from one language to another:
+
+```
+cd Languages
+swipl
+['make_docs.pl'].
+trans_alg([[[n,reverse],[[],[v,l],[v,l]]],[[n,reverse],[[v,l],[v,m],[v,n]],":-",[[[n,head],[[v,l],[v,h]]],[[n,tail],[[v,l],[v,t]]],[[n,wrap],[[v,h],[v,h1]]],[[n,append],[[v,h1],[v,m],[v,o]]],[[n,reverse],[[v,t],[v,o],[v,n]]]]]],"en","fr",A),writeln1(A).
+
+[[["n","inverser"],[[],["v","l"],["v","l"]]],[["n","inverser"],[["v","l"],["v","m"],["v","n"]],":-",[[["n","tête"],[["v","l"],["v","h"]]],[["n","queue"],[["v","l"],["v","t"]]],[["n","emballage"],[["v","h"],["v","h 1"]]],[["n","ajouter"],[["v","h 1"],["v","m"],["v","o"]]],[["n","inverser"],[["v","t"],["v","o"],["v","n"]]]]]]
+```
+
+* Note: When translating an algorithm from another language to English, it is better to avoid errors from capitalised strings by using the language code "en2" rather than "en", i.e.
+
+```
+trans_alg([[[n,reverse],[[],[v,l],[v,l]]],[[n,reverse],[[v,l],[v,m],[v,n]],":-",[[[n,head],[[v,l],[v,h]]],[[n,tail],[[v,l],[v,t]]],[[n,wrap],[[v,h],[v,h1]]],[[n,append],[[v,h1],[v,m],[v,o]]],[[n,reverse],[[v,t],[v,o],[v,n]]]]]],"en","en2",A),writeln1(A).
+
+[[["n","reverse"],[[],["v","l"],["v","l"]]],[["n","reverse"],[["v","l"],["v","m"],["v","n"]],":-",[[["n","head"],[["v","l"],["v","h"]]],[["n","tail"],[["v","l"],["v","t"]]],[["n","wrap"],[["v","h"],["v","h 1"]]],[["n","append"],[["v","h 1"],["v","m"],["v","o"]]],[["n","reverse"],[["v","t"],["v","o"],["v","n"]]]]]]
+```
+
+# Versioning
+
+We will use SemVer for versioning.
+
+# Authors
+
+Lucian Green - Initial programmer - Lucian Academy
+
+# License
+
+I licensed this project under the BSD3 License - see the LICENSE.md file for details
diff --git a/Languages/data.pl b/Languages/data.pl
new file mode 100644
index 0000000000000000000000000000000000000000..7917fa2e13095347084043b2e4ae78b3452b7e0f
--- /dev/null
+++ b/Languages/data.pl
@@ -0,0 +1,188 @@
+:-include('../listprologinterpreter/operators.pl').
+
+data([],Value,Value) :- !.
+/**
+data(Value1a,Value2,Value3) :-
+ data_symbol(Symbol),
+ ((Value1a=Symbol)->
+ append(Value2,[Value1a],Value3)),!.
+**/
+%data(Value1a,Value2,Value3) :-
+% ((Value1a="=\\=")->
+% append(Value2,[Value1a],Value3)),!.
+%data(Value1a,Value2,Value3) :-
+% ((Value1a="->")->
+% append(Value2,[Value1a],Value3)),!.
+data1(Value1a,Value1b%Value1a,Value2,Value3
+) :-
+ from_lang2(From_lang),
+ to_lang2(To_lang),
+ %trace,
+ ((atom(Value1a)->true;(string(Value1a)->true;(number(Value1a))))->
+ (translate2(Value1a,From_lang,To_lang,Value1b))), %% translate1a,2
+ %append(Value2,[Value1b],Value3))),
+ !.
+data([Value1],Value2,Value3) :-
+ var(Value1),
+ append(Value2,[Value1],Value3),!.
+data(Value1,Value2,Value3) :-
+%trace,
+ to_lang2(To_lang),
+ from_lang2(From_lang),
+ get_lang_word3(v,"en",From_lang,V),
+ Value1=[V,Value4],
+ get_lang_word3(V,From_lang,To_lang,Value6b),
+ data(Value4,_,Value6),
+ (var(Value6)->(Value6c=Value6,Value6c1=[]);Value6=[Value6c|Value6c1]),
+ foldr(append,[[Value6b],[Value6c],Value6c1],Value6d),
+ append(Value2,Value6d,Value3),!.
+
+data(Value1,Value2,Value3) :-
+ to_lang2(To_lang),
+ from_lang2(From_lang),
+ get_lang_word3(input,"en",From_lang,I),
+ %trace,
+ Value1=I,%->true;(notrace,fail)),
+
+ get_lang_word3(I,From_lang,To_lang,Value6b),
+ %data1(Value4,Value6),
+ append(Value2,[Value6b],Value3),!.
+data(Value1,Value2,Value3) :-
+ to_lang2(To_lang),
+ from_lang2(From_lang),
+ get_lang_word3(output,"en",From_lang,O),
+ Value1=O,
+ get_lang_word3(O,From_lang,To_lang,Value6b),
+ %data1(Value4,Value6),
+ append(Value2,[Value6b],Value3),!.
+
+data(Value1a,Value2,Value3) :-
+ %from_lang2(From_lang),
+ %to_lang2(To_lang),
+ %trace,
+ ((atom(Value1a)->true;(string(Value1a)->true;(number(Value1a))))->
+ (Value1a=Value1b,%translate2(Value1a,From_lang,To_lang,Value1b), %% translate1a,2
+ append(Value2,[Value1b],Value3))),
+ !.
+data(Value1,Value2,Value3) :-
+ to_lang2(To_lang),
+ from_lang2(From_lang),
+ get_lang_word3(n,"en",From_lang,N),
+ Value1=([N,Value4]=Value4a),
+ get_lang_word3(N,From_lang,To_lang,Value6b),
+ data1(Value4,Value6),
+ (Value4a=[_|_]->data(Value4a,[],Value6a);
+ data(Value4a,[],[Value6a])),
+ append(Value2,[[Value6b,Value6]=Value6a],Value3),!.
+data(Value1,Value2,Value3) :-
+ to_lang2(To_lang),
+ from_lang2(From_lang),
+ get_lang_word3(n,"en",From_lang,N),
+ Value1=[[N,Value4]=Value4a],
+ get_lang_word3(N,From_lang,To_lang,Value6b),
+ data1(Value4,Value6),
+ (Value4a=[_|_]->data(Value4a,[],Value6a);
+ data(Value4a,[],[Value6a])),
+ append(Value2,[[Value6b,Value6]=Value6a],Value3),!.
+data(Value1,Value2,Value3) :-
+ to_lang2(To_lang),
+ from_lang2(From_lang),
+ get_lang_word3(v,"en",From_lang,V),
+ Value1=([V,Value4]=Value4a),
+ get_lang_word3(V,From_lang,To_lang,Value6b),
+ data1(Value4,Value6),
+ (Value4a=[_|_]->data(Value4a,[],Value6a);
+ data(Value4a,[],[Value6a])),
+ append(Value2,[[Value6b,Value6]=Value6a],Value3),!.
+data(Value1,Value2,Value3) :-
+ to_lang2(To_lang),
+ from_lang2(From_lang),
+ get_lang_word3(v,"en",From_lang,V),
+ Value1=[[V,Value4]=Value4a],
+ get_lang_word3(V,From_lang,To_lang,Value6b),
+ data1(Value4,Value6),
+ (Value4a=[_|_]->data(Value4a,[],Value6a);
+ data(Value4a,[],[Value6a])),
+ append(Value2,[[Value6b,Value6]=Value6a],Value3),!.
+
+data(Value1,Value2,Value3) :-
+ to_lang2(To_lang),
+ from_lang2(From_lang),
+ get_lang_word3(n,"en",From_lang,N),
+ Value1=[N,Value4],
+ get_lang_word3(N,From_lang,To_lang,Value6b),
+ data1(Value4,Value6),
+ append(Value2,[Value6b,Value6],Value3),!.
+
+data(Value1,Value2,Value3) :-
+ to_lang2(To_lang),
+ from_lang2(From_lang),
+ get_lang_word3(t,"en",From_lang,T),
+ Value1=[T,Value4],
+ get_lang_word3(T,From_lang,To_lang,Value6b),
+ data1(Value4,Value6),
+ append(Value2,[Value6b,Value6],Value3),!.
+
+
+
+data(Value1,Value2,Value3) :-
+ Value1=(Value4=Value4a),
+ data(Value4,[],Value6),
+ data(Value4a,[],Value6a),
+ append(Value2,[Value6=Value6a],Value3).
+data(Value1,Value2,Value3) :-
+ Value1=[Value4=Value4a],
+ data(Value4,[],Value6),
+ data(Value4a,[],Value6a),
+ append(Value2,[Value6=Value6a],Value3).
+data(Value1,Value2,Value3) :-
+ Value1=[[Value4|Value4a]|Value5],
+ data([Value4|Value4a],[],Value6),
+ append(Value2,[Value6],Value7),
+ data(Value5,Value7,Value3),!.
+data(Value1,Value2,Value3) :-
+ Value1=[""|Value5],
+ append(Value2,[""],Value7),
+ data(Value5,Value7,Value3),!.
+data(Value1,Value2,Value3) :-
+ Value1=[[]|Value5],
+ append(Value2,[[]],Value7),
+ data(Value5,Value7,Value3),!.
+data(Value1,Value2,Value3) :-
+ Value1=[Value4|Value5],
+ data(Value4,[],Value6),
+ append(Value2,Value6,Value7),
+ data(Value5,Value7,Value3),!.
+
+data(Value1,Value2,Value3b) :-
+
+curly_head_taila(Value1,Value4,Value5),
+%trace,
+ data([Value4],[],Value6),
+ append(Value2,Value6,Value7),
+ data(Value5,Value7,Value3),
+ curly_square(Value3a,[Value3]),
+ [Value3a]=Value3b,!.
+
+data_symbol(":-").
+data_symbol("->").
+data_symbol("|").
+data_symbol(=).
+data_symbol(A) :- operator(A).
+data_symbol(A) :- comparisonoperator(A).
+
+translate1("v","en","fr","v").
+translate1("true","en","fr","vrai").
+translate1("v","en","de","v").
+translate1("true","en","de","wahr").
+translate3(A,_,_,A).
+
+trans_alg(Algorithm1,From_lang,To_lang,Algorithm2) :-
+ retractall(from_lang2(_)),
+ assertz(from_lang2(From_lang)),
+ retractall(to_lang2(_)),
+ assertz(to_lang2(To_lang)),
+ retractall(lang(_)),
+ assertz(lang(To_lang)),
+ load_lang_db,
+ data([Algorithm1],[],[Algorithm2]),!.
diff --git a/Languages/docs1.txt b/Languages/docs1.txt
new file mode 100644
index 0000000000000000000000000000000000000000..a13de758411ea53fd8dbbe78a49329fb2fee031e
--- /dev/null
+++ b/Languages/docs1.txt
@@ -0,0 +1,46 @@
+# List Prolog Interpreter
+
+# Prerequisites
+
+* Please download and install SWI-Prolog for your machine at https://www.swi-prolog.org/build/.
+
+* You may need to install gawk using Homebrew.
+
+* Install Translation Shell on Mac, etc.
+Change line in & culturaltranslationtool/ctt2.pl
+trans_location("../../../gawk/trans").&
+to correct location of trans.
+
+# 1. Install manually
+
+Download this repository, the Languages repository and Cultural Translation Tool into the same folder.
+
+# 2. Or Install from List Prolog Package Manager (LPPM)
+
+* Download the LPPM Repository:
+
+&
+mkdir GitHub
+cd GitHub/
+git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
+cd List-Prolog-Package-Manager
+swipl
+['lppm'].
+lppm_install("luciangreen","listprologinterpreter").
+halt
+&
+
+# Running
+
+* Download the repository to your machine. In Shell:
+cd listprologinterpreter
+swipl
+['listprolog'].
+
+* Running the tests
+To run all tests, enter:
+&test(off,NTotal,Score).&
+
+* To run a specific test:
+&test1(off,TestNumber,Passed).&
+where TestNumber is the test number from lpiverify4.pl.
diff --git a/Languages/docs10.txt b/Languages/docs10.txt
new file mode 100644
index 0000000000000000000000000000000000000000..215228bb76edf494af66da008bfdb3fb3822617c
--- /dev/null
+++ b/Languages/docs10.txt
@@ -0,0 +1,18 @@
+test_types_cases(7,
+`[[n,map],[[[n,add],[[[n,add],[[[n,add],[1]]]]]],0,[v,d]]]`,
+
+`[
+[[n,map],[[t,map1],[t,number],[t,number]]],
+[[t,map1],[[t,number]]],
+[[t,map1],[[[t,predicatename],[[t,map1]]]]],
+[[n,add],[[t,number],[t,number],[t,number]]],
+[[n,getitemn],[[t,number],{[t,any]},[t,any]]]
+]`,
+
+`[
+[[n,map],[input,input,output]],
+
+[[n,add],[input,input,output]],
+
+[[n,getitemn],[input,input,output]]
+]`,
\ No newline at end of file
diff --git a/Languages/docs11.txt b/Languages/docs11.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ed4b29c61b39fae0af3c87376655e05b08d5e386
--- /dev/null
+++ b/Languages/docs11.txt
@@ -0,0 +1,14 @@
+`[
+[[n,map],[[v,f1],[v,n1],[v,n]],":-",[[[n,number],[[v,f1]]],[[n,add],[[v,n1],[v,f1],[v,n]]]]],
+
+[[n,map],[[v,f1],[v,l],[v,n]],":-",[[[n,equals1],[[v,f1],[[v,f11],[v,f12]]]],[[n,=],[[v,f11],[n,add]]],[[n,getitemn],[1,[v,f12],[v,bb]]],[[v,f11],[[v,l],1,[v,l2]]],[[n,map],[[v,bb],[v,l2],[v,n]]]]],
+
+[[n,add],[[v,a],[v,b],[v,c]],":-",[[n,+],[[v,a],[v,b],[v,c]]]],
+
+[[n,getitemn],[1,[v,b],[v,c]],":-",[[n,head],[[v,b],[v,c]]]],
+
+[[n,getitemn],[[v,a],[v,b],[v,c]],":-",[[[n,not],[[[n,=],[[v,a],1]]]],[[n,tail],[[v,b],[v,t]]],[[n,-],[[v,a],1,[v,d]]],[[n,getitemn],[[v,d],[v,t],[v,c]]]]]
+]`,
+
+`[[[[v,d], 4]]]`
+).
\ No newline at end of file
diff --git a/Languages/docs12.txt b/Languages/docs12.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d7229abc1df88ad684b580eb024ce4797636311a
--- /dev/null
+++ b/Languages/docs12.txt
@@ -0,0 +1,3 @@
+* For other examples, please see lpiverify4.pl, lpiverify4_types.pl (for examples with types, including the list type), lpiverify4_open.pl (for examples with open-ended results) and lpiverify4_open_types.pl (for examples with open-ended results with types).
+
+* See https://github.com/luciangreen/listprologinterpreter/blob/master/LPI_docs.md for complete List Prolog Documentation.
diff --git a/Languages/docs2.txt b/Languages/docs2.txt
new file mode 100644
index 0000000000000000000000000000000000000000..d49a02faa691d2a5fd0f68880d994c0f88d9a3e6
--- /dev/null
+++ b/Languages/docs2.txt
@@ -0,0 +1,31 @@
+* The query &test1(off,7,Passed).& tests the reverse predicate:
+test(7,`[[n,reverse],[[1,2,3],[],[v,l]]]`,
+`[[[n,reverse],[[],[v,l],[v,l]]],[[n,reverse],[[v,l],[v,m],[v,n]],":-",[[[n,head],[[v,l],[v,h]]],[[n,tail],[[v,l],[v,t]]],[[n,wrap],[[v,h],[v,h1]]],[[n,append],[[v,h1],[v,m],[v,o]]],[[n,reverse],[[v,t],[v,o],[v,n]]]]]]`,
+`[[[v,l], [3, 2, 1]]]`).
+
+# Documentation
+
+* The interpreter is called in the form:
+&international_interpret([lang,en]&,debug,query,type_statements,mode_statements,functions,result).
+
+Where:
+debug - on or off for trace,
+query - the query e.g. [[n,reverse],[[1,2,3],[],[v,l]]]
+type statements - e.g. [[n,reverse],[{[t, number]}, {[t, number]}, {[t, number]}]]
+mode statements - e.g. [[n,reverse],[input,input,output]]
+functions - the algorithm e.g. see reverse above
+result - the result, e.g. [[[v,l], [3, 2, 1]]] ([] indicates failed and [[]] indicates the empty list).
+
+* Statements may be negated in the form:
+
+`[[n,not],[statement]]`
+
+* Statements may be connected by the disjunctive (or):
+
+`[[n,or],[statements1,statements2]]`
+
+* If-then statements may either be in the form:
+
+`[[n,"->"],[statements1,statements2]]`
+
+This means "If Statements1 then Statements2".
diff --git a/Languages/docs3.txt b/Languages/docs3.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b4c7f06f4eed5918a6639601b4a5b5885efa9b61
--- /dev/null
+++ b/Languages/docs3.txt
@@ -0,0 +1,30 @@
+* Or, if-then statements may be in the form:
+
+`[[n,"->"],[statements1,statements2,statements2a]]`
+
+This means "If Statements1 then Statements2, else Statements2a".
+
+* `[[n,+],[1,2,[v,b]]]` `[v,b]=3`
+* `[[n,-],[1,2,[v,b]]]` `[v,b]=(-1)`
+* `[[n,*],[1,2,[v,b]]]` `[v,b]=2`
+* `[[n,/],[1,2,[v,b]]]` `[v,b]=0.5`
+
+* `[[n,cut]]` - behaves like swipl's ! (doesn't allow backtracking forward or back past it)
+
+* `[[n,true]]` - behaves like true
+
+* `[[n,fail]]` - fails the current predicate
+
+* `[[n,atom],[variable]]`, e.g. `[[n,atom],[[v,a]]]` - returns true if `[v,a]='a'`, an atom
+
+* `[[n,string],[variable]]`, e.g. `[[n,string],[[v,a]]]` - returns true if `[v,a]="a"`, a string
+
+* `[[n,number],[variable]]`, e.g. `[[n,number],[14]]` - returns true where `14` is a number
+
+* `[[n,letters],[variable]]`, e.g. `[[n,letters],["abc"]]` - returns true where `"abc"` is letters
+
+* `[[n,is_operator],[variable1,variable2]]`, where `is_operator=is` or `is_operator="="`, e.g. `[[n,=],[[v,a],1]]` - returns true if `[v,a]=1`
+
+* `[[n,comparison_operator],[variable1,variable2]]`, where comparison_operator=">",">=","<", "=<", "=" or =\= e.g. `[[n,>=],[1,2]]` - returns (1>=2)=false.
+
+* `[[n,equals1],[variable1,[variable2,variable3]]]` e.g. `[[n,equals1],[["a","b"],[[v,a],[v,b]]]]` returns `[v,a]="a"` and `[v,b]="b"`
diff --git a/Languages/docs4.txt b/Languages/docs4.txt
new file mode 100644
index 0000000000000000000000000000000000000000..f5617eb79fbae518524213284f085ac0379a1bcd
--- /dev/null
+++ b/Languages/docs4.txt
@@ -0,0 +1,15 @@
+* `[[n,equals2],[variable1,[variable2,variable3]]]` e.g. `[[n,equals2],[[v,a],["a","b"]]]` returns `[v,a]=["a","b"]`
+
+* `[[n,equals3],[variable1,variable2]]` e.g. `[[n,equals3],[[v,a],[1,2,3]]]` returns `[v,a]=[1,2,3]`
+
+* `[[n,wrap],[variable1,variable2]]` e.g. `[[n,wrap],["a",[v,b]]]` returns `[v,b]=["a"]`
+
+* `[[n,unwrap],[variable1,variable2]]` e.g. `[[n,wrap],[["a"],[v,b]]]` returns `[v,b]="a"`
+
+* `[[n,head],[variable1,variable2]]` e.g. `[[n,head],[["a","b","c"],[v,b]]]` returns `[v,b]="a"`
+
+* `[[n,tail],[variable1,variable2]]` e.g. `[[n,tail],[["a","b","c"],[v,b]]]` returns `[v,b]=["b","c"]`
+
+* `[[n,member],[Variable1,Variable2]]` e.g. `[[n,member],[[v,b],["a","b","c"]]]` returns `[v,b]="a"`, `[v,b]="b"` or `[v,b]="c"`, or e.g. `[[n,member],["c",["a","b","c"]]]` returns true. (Formerly member2).
+
+* `[[n,delete],[variable1,variable2,variable3]]` e.g. `[[n,delete],[["a","b","b","c"],"b",[v,c]]]` returns `[v,c]=["a","c"]`
diff --git a/Languages/docs5.txt b/Languages/docs5.txt
new file mode 100644
index 0000000000000000000000000000000000000000..9f5f562f10a58a1f1ca368ae3991cee1ac1a0660
--- /dev/null
+++ b/Languages/docs5.txt
@@ -0,0 +1,17 @@
+* `[[n,append],[variable1,variable2,variable3]]` e.g. `[[n,append],[["a","b"],["c"],[v,d]]]` returns `[v,d]=["a","b","c"]`. Note: variable2 must be in list form, not e.g. `"c"`, or the command will fail. Wrap may wrap in [].
+
+* `[[n,stringconcat],[variable1,variable2,variable3]]` e.g. `[[n,stringconcat],["hello ","john",[v,c]]]` returns `[v,c]="hello john"`.
+
+* `[[n,stringtonumber],[variable1,variable2]]` e.g. `[[n,stringtonumber],["3",[v,b]]]` returns `[v,b]=3`
+
+* `[[n,random],[variable1]]` e.g. `[[n,random],[[v,r]]]` returns e.g. `[v,r]=0.19232608946956326`
+
+* `[[n,length],[variable1,variable2]]` e.g. `[[n,length],[[1,2,3],[v,l]]]` returns `[v,l]=3`
+
+* `[[n,ceiling],[variable1,variable2]]` e.g. `[[n,ceiling],[0.19232608946956326,[v,c]]]` returns `[v,c]=1`
+
+* `[[n,date],[year,month,day,hour,minute,seconds]]` e.g. `[[n,date],[[v,year],[v,month],[v,day],[v,hour],[v,minute],[v,second]]]` returns e.g. `[v,year]=2019`, `[v,month]=11`, `[v,day]=6`, `[v,hour]=12`, `[v,minute]=15`, `[v,second]=20.23353409767151`.
+
+* `[[n,sqrt],[variable1,variable2]]` e.g. `[[n,ceiling],[4,[v,c]]]` returns `[v,c]=2`
+
+* `[[n,round],[variable1,variable2]]` e.g. `[[n,round],[1.5,[v,c]]]` returns `[v,c]=2`
diff --git a/Languages/docs6-1.txt b/Languages/docs6-1.txt
new file mode 100644
index 0000000000000000000000000000000000000000..1fb8e1cc40bbc1aeaa99bef3a064234ade515b69
--- /dev/null
+++ b/Languages/docs6-1.txt
@@ -0,0 +1,9 @@
+* `[[n,writeln],[Variable1]]` e.g. `[[n,writeln],[[v,a]]]` writes `[v,a]` which is `"hello"`
+
+* `[[n,atom_string],[Variable1,Variable2]]` e.g. `[[n,atom_string],[a,[v,b]]]` returns `[v,b]="a"` or `[[n,atom_string],[[v,b],"a"]]` returns `[v,b]=a`
+
+* (1) `[[n,call],[Function,Arguments]]` e.g. `[[n,call],[[n,member2a],[[v,b],["a","b","c"]]]]` returns `[v,b]=a`
+
+* (2) `[[n,call],[[lang,Lang],Debug,[Function,Arguments],Functions]]` e.g. `[[n,call],[[lang,same],same,[[n,member2a],[[v,b],["a","b","c"]]],
+[[[n,member2a],[[v,b],[v,a]],":-",
+ [[[n,member],[[v,b],[v,a]]]]]]]]` returns `[v,b]="a"`, where Lang may be e.g. `"en"`, etc., or `same` (meaning the same language as the parent predicate) and Debug may be `on`, `off` or `same` (meaning the same debug status as the parent predicate).
diff --git a/Languages/docs6-2.txt b/Languages/docs6-2.txt
new file mode 100644
index 0000000000000000000000000000000000000000..be7781d2a91bbb5aecd21a65ea01dae909498e0a
--- /dev/null
+++ b/Languages/docs6-2.txt
@@ -0,0 +1,17 @@
+* (3) `[[n,call],[[lang,Lang],Debug,[Function,Arguments],Types,Modes,Functions]]` e.g. `[[n,call],[[lang,same],same,[[n,member2a],[[v,b],["a","b","c"]]], [[[n,member2a],[[t, number], [[t, number], [t, number], [t, number]]]]],
+ [[[n,member2a],[output,input]]],
+[[[n,member2a],[[v,b],[v,a]],":-",
+ [ [[n,member],[[v,b],[v,a]]]]
+ ]]]]` returns `[v,b]="a"`. (See call(2) above for possible values of Lang and Debug.)
+
+* `[[n,trace]]` switches on trace (debug) mode.
+
+* `[[n,notrace]]` switches off trace (debug) mode.
+
+* `[[n,get_lang_word],[Variable1,Variable2]` e.g. `[[n,get_lang_word],["get_lang_word",[v,word]]]` returns `[v,word]="get_lang_word"`.
+
+* `[[n,member3],[Variable1,Variable2]` e.g. `[[n,member3],[[[v,a],"|",[[v,b]]],[[1,1],[1,2],[1,3]]]]` returns `[v,a]=1`, `[v,b]=1`, etc. where Variable1 may be in any pattern.
+
+* `[[n,equals4_on]]` switches on equals4 mode (in check arguments, substitute vars and update vars but not in the equals4 command itself), for e.g. list processing in arguments.
+
+* `[[n,equals4_off]]` switches off equals4 mode, for debugging.
diff --git a/Languages/docs6.txt b/Languages/docs6.txt
new file mode 100644
index 0000000000000000000000000000000000000000..546be6c59b1e949054c99ae4728d9ce19d0010e9
--- /dev/null
+++ b/Languages/docs6.txt
@@ -0,0 +1,15 @@
+* `[[n,equals4],[Variable1,Variable2]]` e.g. `[[n,equals4],[[[v,c],"|",[v,d]],[1,2,3]]]` returns `[v,c]=1` and `[v,d]=[2,3]`. You may use either order (i.e. a=1 or 1=a). Multiple items are allowed in the head of the list, there may be lists within lists, and lists with pipes must have the same number of items in the head in each list, or no pipe in the other list.
+
+* `[[n,findall],[Variable1,Variable2,Variable3]]` e.g. `[[[n,equals3],[[v,a],[1,2,3]]],[[n,findall],[[v,a1],[[n,member],[[v,a1],[v,a]]],[v,b]]]]` returns `[v,b]=[1,2,3]`
+
+* `[[n,string_from_file],[Variable1,Variable2]]` e.g. `[[n,string_from_file],[[v,a],"file.txt"]]` returns `[v,a]="Hello World"`
+
+* `[[n,maplist],[Variable1,Variable2,Variable3,Variable4]]` e.g. `[[n,maplist],[[n,+],[1,2,3],0,[v,b]]]` returns `[v,b]=6`
+
+* `[[n,string_length],[Variable1,Variable2]]` e.g. `[[n,string_length],["abc",[v,b]]]` returns `[v,b]=3`
+
+* `[[n,sort],[Variable1,Variable2]]` e.g. `[[n,sort],[[1,3,2],[v,b]]]` returns `[v,b]=[1,2,3]`
+
+* `[[n,intersection],[Variable1,Variable2]]` e.g. `[[n,intersection],[[1,3,2],[3,4,5],[v,b]]]` returns `[v,b]=[3]`
+
+* `[[n,read_string],[Variable1]]` e.g. `[[n,read_string],[[v,a]]]` asks for input and returns `[v,a]="hello"`
diff --git a/Languages/docs7.txt b/Languages/docs7.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3ef8a83ba85d70a2b71b71d14792fbad59d55b0f
--- /dev/null
+++ b/Languages/docs7.txt
@@ -0,0 +1,13 @@
+# Grammars
+
+* List Prolog supports grammars, for example:
+
+* Grammars may be recursive (see test 9 in lpiverify4.pl), i.e. they may repeat until triggering the base case:
+
+test(9,`[[n,grammar1],["aaa"]]`,
+[
+`[[n,grammar1],[[v,s]],":-",[[[n,noun],[[v,s],""]]]]`,
+`[[n,noun],"->",[""]]`,
+`[[n,noun],"->",["a",[[n,noun]]]]`
+],
+`[[]]`).
diff --git a/Languages/docs8.txt b/Languages/docs8.txt
new file mode 100644
index 0000000000000000000000000000000000000000..656e0d6ab94171bbd00199603aa77a430930d4e3
--- /dev/null
+++ b/Languages/docs8.txt
@@ -0,0 +1,23 @@
+# Type Statements
+
+* Functions may have strong types, which check inputted values when calling a function and check all values when exiting a function. So far, any type statement with the name and arity of the function may match data for a call to that function.
+
+* The user may optionally enter types after the query. The following type statement tests number, string and predicate name types.
+
+* Note: Mode statements, described in the next section, are required after Type Statements.
+
+* Types with lists (0-infinite repeats of type statements) are written inside {}. There may be nested curly brackets.
+
+* Type Statements may be recursive (see test 23 in lpiverify4_types.pl), i.e. they may repeat until triggering the base case:
+
+test_types_cases(23,`[[n,connect_cliques],[[["a",1],[1,2],[2,"b"]],[["a",3],[3,4],[4,"b"]],[v,output]]]`,
+`[
+[[n,connect_cliques],[[t,list2],[t,list2],[t,list2]]],
+[[t,item],[[t,number]]],
+[[t,item],[[t,string]]],
+[[t,list2],[{[t,item]}]],
+[[t,list2],[{[t,list2]}]]
+]`,
+`[[[n,connect_cliques],[input,input,output]]]`,
+`[[[n,connect_cliques],[[v,a],[v,b],[v,c]],":-",[[[n,append],[[v,a],[v,b],[v,c]]]]]]`,
+`[[[[v,output],[["a",1],[1,2],[2,"b"],["a",3],[3,4],[4,"b"]]]]]`).
diff --git a/Languages/docs9.txt b/Languages/docs9.txt
new file mode 100644
index 0000000000000000000000000000000000000000..afb5e85469b16c63a7a5543349c923fbd244a83c
--- /dev/null
+++ b/Languages/docs9.txt
@@ -0,0 +1,20 @@
+# Mode Statements
+
+* In the following,
+
+test_types_cases(2,`[[n,function],[[v,a],[v,b],[v,c]]]`,
+`[[[n,function],[[t,number],[t,string],[t,predicatename]]]]`,
+`[[[n,function],[output,output,output]]]`,
+[
+`[[n,function],[[v,a],[v,b],[v,c]],":-",[[[n,=],[[v,a],1]],[[n,=],[[v,b],"a"]],[[n,=],[[v,c],[n,a]]]]]`
+],
+`[[[[v,a], 1],[[v,b], "a"],[[v,c], [n,a]]]]`).
+
+* `[[[n,function],[output,output,output]]]`, is the mode statement, which must follow the type statement (although these are optional). The Mode Statement specifies whether each of the variables takes input or gives output.
+
+# Functional List Prolog (FLP)
+
+* List Prolog has an optional functional mode. In FLP, function calls may be passed as variables and functions may have strong types.
+
+* Functional algorithms may be recursive (see test 7 in lpiverify4_types.pl), i.e. they may repeat until triggering the base case:
+
diff --git a/Languages/docs_full.txt b/Languages/docs_full.txt
new file mode 100644
index 0000000000000000000000000000000000000000..f326f303a2f704c00bbc84d9abae9e884e2b5b6f
--- /dev/null
+++ b/Languages/docs_full.txt
@@ -0,0 +1,283 @@
+# List Prolog Interpreter
+
+# Prerequisites
+
+* Please download and install SWI-Prolog for your machine at https://www.swi-prolog.org/build/.
+
+* You may need to install gawk using Homebrew.
+
+* Install Translation Shell on Mac, etc.
+Change line in & culturaltranslationtool/ctt2.pl
+trans_location("../../../gawk/trans").&
+to correct location of trans.
+
+# 1. Install manually
+
+Download this repository, the Languages repository and Cultural Translation Tool into the same folder.
+
+# 2. Or Install from List Prolog Package Manager (LPPM)
+
+* Download the LPPM Repository:
+
+&
+mkdir GitHub
+cd GitHub/
+git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
+cd List-Prolog-Package-Manager
+swipl
+['lppm'].
+lppm_install("luciangreen","listprologinterpreter").
+halt
+&
+
+# Running
+
+* Download the repository to your machine. In Shell:
+cd listprologinterpreter
+swipl
+['listprolog'].
+
+* Running the tests
+To run all tests, enter:
+&test(off,NTotal,Score).&
+
+* To run a specific test:
+&test1(off,TestNumber,Passed).&
+where TestNumber is the test number from lpiverify4.pl.
+
+* The query &test1(off,7,Passed).& tests the reverse predicate:
+test(7,`[[n,reverse],[[1,2,3],[],[v,l]]]`,
+`[[[n,reverse],[[],[v,l],[v,l]]],[[n,reverse],[[v,l],[v,m],[v,n]],":-",[[[n,head],[[v,l],[v,h]]],[[n,tail],[[v,l],[v,t]]],[[n,wrap],[[v,h],[v,h1]]],[[n,append],[[v,h1],[v,m],[v,o]]],[[n,reverse],[[v,t],[v,o],[v,n]]]]]]`,
+`[[[v,l], [3, 2, 1]]]`).
+
+# Documentation
+
+* The interpreter is called in the form:
+&international_interpret([lang,en]&,debug,query,type_statements,mode_statements,functions,result).
+
+Where:
+debug - on or off for trace,
+query - the query e.g. [[n,reverse],[[1,2,3],[],[v,l]]]
+type statements - e.g. [[n,reverse],[{[t, number]}, {[t, number]}, {[t, number]}]]
+mode statements - e.g. [[n,reverse],[input,input,output]]
+functions - the algorithm e.g. see reverse above
+result - the result, e.g. [[[v,l], [3, 2, 1]]] ([] indicates failed and [[]] indicates the empty list).
+
+* Statements may be negated in the form:
+
+`[[n,not],[statement]]`
+
+* Statements may be connected by the disjunctive (or):
+
+`[[n,or],[statements1,statements2]]`
+
+* If-then statements may either be in the form:
+
+`[[n,"->"],[statements1,statements2]]`
+
+This means "If Statements1 then Statements2".
+
+* Or, if-then statements may be in the form:
+
+`[[n,"->"],[statements1,statements2,statements2a]]`
+
+This means "If Statements1 then Statements2, else Statements2a".
+
+* `[[n,+],[1,2,[v,b]]]` `[v,b]=3`
+* `[[n,-],[1,2,[v,b]]]` `[v,b]=(-1)`
+* `[[n,*],[1,2,[v,b]]]` `[v,b]=2`
+* `[[n,/],[1,2,[v,b]]]` `[v,b]=0.5`
+
+* `[[n,cut]]` - behaves like swipl's ! (doesn't allow backtracking forward or back past it)
+
+* `[[n,true]]` - behaves like true
+
+* `[[n,fail]]` - fails the current predicate
+
+* `[[n,atom],[variable]]`, e.g. `[[n,atom],[[v,a]]]` - returns true if `[v,a]='a'`, an atom
+
+* `[[n,string],[variable]]`, e.g. `[[n,string],[[v,a]]]` - returns true if `[v,a]="a"`, a string
+
+* `[[n,number],[variable]]`, e.g. `[[n,number],[14]]` - returns true where `14` is a number
+
+* `[[n,letters],[variable]]`, e.g. `[[n,letters],["abc"]]` - returns true where `"abc"` is letters
+
+* `[[n,is_operator],[variable1,variable2]]`, where `is_operator=is` or `is_operator="="`, e.g. `[[n,=],[[v,a],1]]` - returns true if `[v,a]=1`
+
+* `[[n,comparison_operator],[variable1,variable2]]`, where comparison_operator=">",">=","<", "=<", "=" or =\= e.g. `[[n,>=],[1,2]]` - returns (1>=2)=false.
+
+* `[[n,equals1],[variable1,[variable2,variable3]]]` e.g. `[[n,equals1],[["a","b"],[[v,a],[v,b]]]]` returns `[v,a]="a"` and `[v,b]="b"`
+
+* `[[n,equals2],[variable1,[variable2,variable3]]]` e.g. `[[n,equals2],[[v,a],["a","b"]]]` returns `[v,a]=["a","b"]`
+
+* `[[n,equals3],[variable1,variable2]]` e.g. `[[n,equals3],[[v,a],[1,2,3]]]` returns `[v,a]=[1,2,3]`
+
+* `[[n,wrap],[variable1,variable2]]` e.g. `[[n,wrap],["a",[v,b]]]` returns `[v,b]=["a"]`
+
+* `[[n,unwrap],[variable1,variable2]]` e.g. `[[n,wrap],[["a"],[v,b]]]` returns `[v,b]="a"`
+
+* `[[n,head],[variable1,variable2]]` e.g. `[[n,head],[["a","b","c"],[v,b]]]` returns `[v,b]="a"`
+
+* `[[n,tail],[variable1,variable2]]` e.g. `[[n,tail],[["a","b","c"],[v,b]]]` returns `[v,b]=["b","c"]`
+
+* `[[n,member],[Variable1,Variable2]]` e.g. `[[n,member],[[v,b],["a","b","c"]]]` returns `[v,b]="a"`, `[v,b]="b"` or `[v,b]="c"`, or e.g. `[[n,member],["c",["a","b","c"]]]` returns true. (Formerly member2).
+
+* `[[n,delete],[variable1,variable2,variable3]]` e.g. `[[n,delete],[["a","b","b","c"],"b",[v,c]]]` returns `[v,c]=["a","c"]`
+
+* `[[n,append],[variable1,variable2,variable3]]` e.g. `[[n,append],[["a","b"],["c"],[v,d]]]` returns `[v,d]=["a","b","c"]`. Note: variable2 must be in list form, not e.g. `"c"`, or the command will fail. Wrap may wrap in [].
+
+* `[[n,stringconcat],[variable1,variable2,variable3]]` e.g. `[[n,stringconcat],["hello ","john",[v,c]]]` returns `[v,c]="hello john"`.
+
+* `[[n,stringtonumber],[variable1,variable2]]` e.g. `[[n,stringtonumber],["3",[v,b]]]` returns `[v,b]=3`
+
+* `[[n,random],[variable1]]` e.g. `[[n,random],[[v,r]]]` returns e.g. `[v,r]=0.19232608946956326`
+
+* `[[n,length],[variable1,variable2]]` e.g. `[[n,length],[[1,2,3],[v,l]]]` returns `[v,l]=3`
+
+* `[[n,ceiling],[variable1,variable2]]` e.g. `[[n,ceiling],[0.19232608946956326,[v,c]]]` returns `[v,c]=1`
+
+* `[[n,date],[year,month,day,hour,minute,seconds]]` e.g. `[[n,date],[[v,year],[v,month],[v,day],[v,hour],[v,minute],[v,second]]]` returns e.g. `[v,year]=2019`, `[v,month]=11`, `[v,day]=6`, `[v,hour]=12`, `[v,minute]=15`, `[v,second]=20.23353409767151`.
+
+* `[[n,sqrt],[variable1,variable2]]` e.g. `[[n,ceiling],[4,[v,c]]]` returns `[v,c]=2`
+
+* `[[n,round],[variable1,variable2]]` e.g. `[[n,round],[1.5,[v,c]]]` returns `[v,c]=2`
+
+* `[[n,writeln],[Variable1]]` e.g. `[[n,writeln],[[v,a]]]` writes `[v,a]` which is `"hello"`
+
+* `[[n,atom_string],[Variable1,Variable2]]` e.g. `[[n,atom_string],[a,[v,b]]]` returns `[v,b]="a"` or `[[n,atom_string],[[v,b],"a"]]` returns `[v,b]=a`
+
+* (1) `[[n,call],[Function,Arguments]]` e.g. `[[n,call],[[n,member2a],[[v,b],["a","b","c"]]]]` returns `[v,b]=a`
+
+* (2) `[[n,call],[[lang,Lang],Debug,[Function,Arguments],Functions]]` e.g. `[[n,call],[[lang,same],same,[[n,member2a],[[v,b],["a","b","c"]]],
+[[[n,member2a],[[v,b],[v,a]],":-",
+ [[[n,member],[[v,b],[v,a]]]]]]]]` returns `[v,b]="a"`, where Lang may be e.g. `"en"`, etc., or `same` (meaning the same language as the parent predicate) and Debug may be `on`, `off` or `same` (meaning the same debug status as the parent predicate).
+
+* (3) `[[n,call],[[lang,Lang],Debug,[Function,Arguments],Types,Modes,Functions]]` e.g. `[[n,call],[[lang,same],same,[[n,member2a],[[v,b], ["a","b","c"]]], [[[n,member2a],[[t, number], [[t, number], [t, number], [t, number]]]]],
+ [[[n,member2a],[output,input]]],
+[[[n,member2a],[[v,b],[v,a]],":-",
+ [ [[n,member],[[v,b],[v,a]]]]
+ ]]]]` returns `[v,b]="a"`. (See call(2) above for possible values of Lang and Debug.)
+
+* `[[n,trace]]` switches on trace (debug) mode.
+
+* `[[n,notrace]]` switches off trace (debug) mode.
+
+* `[[n,get_lang_word],[Variable1,Variable2]` e.g. `[[n,get_lang_word],["get_lang_word",[v,word]]]` returns `[v,word]="get_lang_word"`.
+
+* `[[n,member3],[Variable1,Variable2]` e.g. `[[n,member3],[[[v,a],"|",[[v,b]]],[[1,1],[1,2],[1,3]]]]` returns `[v,a]=1`, `[v,b]=1`, etc. where Variable1 may be in any pattern.
+
+* `[[n,equals4_on]]` switches on equals4 mode (in check arguments, substitute vars and update vars but not in the equals4 command itself), for e.g. list processing in arguments.
+
+* `[[n,equals4_off]]` switches off equals4 mode, for debugging.
+
+* `[[n,equals4],[Variable1,Variable2]]` e.g. `[[n,equals4],[[[v,c],"|",[v,d]],[1,2,3]]]` returns `[v,c]=1` and `[v,d]=[2,3]`. You may use either order (i.e. a=1 or 1=a). Multiple items are allowed in the head of the list, there may be lists within lists, and lists with pipes must have the same number of items in the head in each list, or no pipe in the other list.
+
+* `[[n,findall],[Variable1,Variable2,Variable3]]` e.g. `[[[n,equals3],[[v,a],[1,2,3]]],[[n,findall],[[v,a1],[[n,member],[[v,a1],[v,a]]],[v,b]]]]` returns `[v,b]=[1,2,3]`
+
+* `[[n,string_from_file],[Variable1,Variable2]]` e.g. `[[n,string_from_file],[[v,a],"file.txt"]]` returns `[v,a]="Hello World"`
+
+* `[[n,maplist],[Variable1,Variable2,Variable3,Variable4]]` e.g. `[[n,maplist],[[n,+],[1,2,3],0,[v,b]]]` returns `[v,b]=6`
+
+* `[[n,string_length],[Variable1,Variable2]]` e.g. `[[n,string_length],["abc",[v,b]]]` returns `[v,b]=3`
+
+* `[[n,sort],[Variable1,Variable2]]` e.g. `[[n,sort],[[1,3,2],[v,b]]]` returns `[v,b]=[1,2,3]`
+
+* `[[n,intersection],[Variable1,Variable2]]` e.g. `[[n,intersection],[[1,3,2],[3,4,5],[v,b]]]` returns `[v,b]=[3]`
+
+* `[[n,read_string],[Variable1]]` e.g. `[[n,read_string],[[v,a]]]` asks for input and returns `[v,a]="hello"`
+
+# Grammars
+
+* List Prolog supports grammars, for example:
+
+* Grammars may be recursive (see test 9 in lpiverify4.pl), i.e. they may repeat until triggering the base case:
+
+test(9,`[[n,grammar1],["aaa"]]`,
+[
+`[[n,grammar1],[[v,s]],":-",[[[n,noun],[[v,s],""]]]]`,
+`[[n,noun],"->",[""]]`,
+`[[n,noun],"->",["a",[[n,noun]]]]`
+],
+`[[]]`).
+
+# Type Statements
+
+* Functions may have strong types, which check inputted values when calling a function and check all values when exiting a function. So far, any type statement with the name and arity of the function may match data for a call to that function.
+
+* The user may optionally enter types after the query. The following type statement tests number, string and predicate name types.
+
+* Note: Mode statements, described in the next section, are required after Type Statements.
+
+* Types with lists (0-infinite repeats of type statements) are written inside {}. There may be nested curly brackets.
+
+* Type Statements may be recursive (see test 23 in lpiverify4_types.pl), i.e. they may repeat until triggering the base case:
+
+test_types_cases(23,`[[n,connect_cliques],[[["a",1],[1,2],[2,"b"]],[["a",3],[3,4],[4,"b"]],[v,output]]]`,
+`[
+[[n,connect_cliques],[[t,list2],[t,list2],[t,list2]]],
+[[t,item],[[t,number]]],
+[[t,item],[[t,string]]],
+[[t,list2],[{[t,item]}]],
+[[t,list2],[{[t,list2]}]]
+]`,
+`[[[n,connect_cliques],[input,input,output]]]`,
+`[[[n,connect_cliques],[[v,a],[v,b],[v,c]],":-",[[[n,append],[[v,a],[v,b],[v,c]]]]]]`,
+`[[[[v,output],[["a",1],[1,2],[2,"b"],["a",3],[3,4],[4,"b"]]]]]`).
+
+# Mode Statements
+
+* In the following,
+
+test_types_cases(2,`[[n,function],[[v,a],[v,b],[v,c]]]`,
+`[[[n,function],[[t,number],[t,string],[t,predicatename]]]]`,
+`[[[n,function],[output,output,output]]]`,
+[
+`[[n,function],[[v,a],[v,b],[v,c]],":-",[[[n,=],[[v,a],1]],[[n,=],[[v,b],"a"]],[[n,=],[[v,c],[n,a]]]]]`
+],
+`[[[[v,a], 1],[[v,b], "a"],[[v,c], [n,a]]]]`).
+
+* `[[[n,function],[output,output,output]]]`, is the mode statement, which must follow the type statement (although these are optional). The Mode Statement specifies whether each of the variables takes input or gives output.
+
+# Functional List Prolog (FLP)
+
+* List Prolog has an optional functional mode. In FLP, function calls may be passed as variables and functions may have strong types.
+
+* Functional algorithms may be recursive (see test 7 in lpiverify4_types.pl), i.e. they may repeat until triggering the base case:
+
+
+test_types_cases(7,
+`[[n,map],[[[n,add],[[[n,add],[[[n,add],[1]]]]]],0,[v,d]]]`,
+
+`[
+[[n,map],[[t,map1],[t,number],[t,number]]],
+[[t,map1],[[t,number]]],
+[[t,map1],[[[t,predicatename],[[t,map1]]]]],
+[[n,add],[[t,number],[t,number],[t,number]]],
+[[n,getitemn],[[t,number],{[t,any]},[t,any]]]
+]`,
+
+`[
+[[n,map],[input,input,output]],
+
+[[n,add],[input,input,output]],
+
+[[n,getitemn],[input,input,output]]
+]`,
+`[
+[[n,map],[[v,f1],[v,n1],[v,n]],":-",[[[n,number],[[v,f1]]],[[n,add],[[v,n1],[v,f1],[v,n]]]]],
+
+[[n,map],[[v,f1],[v,l],[v,n]],":-",[[[n,equals1],[[v,f1],[[v,f11],[v,f12]]]],[[n,=],[[v,f11],[n,add]]],[[n,getitemn],[1,[v,f12],[v,bb]]],[[v,f11],[[v,l],1,[v,l2]]],[[n,map],[[v,bb],[v,l2],[v,n]]]]],
+
+[[n,add],[[v,a],[v,b],[v,c]],":-",[[n,+],[[v,a],[v,b],[v,c]]]],
+
+[[n,getitemn],[1,[v,b],[v,c]],":-",[[n,head],[[v,b],[v,c]]]],
+
+[[n,getitemn],[[v,a],[v,b],[v,c]],":-",[[[n,not],[[[n,=],[[v,a],1]]]],[[n,tail],[[v,b],[v,t]]],[[n,-],[[v,a],1,[v,d]]],[[n,getitemn],[[v,d],[v,t],[v,c]]]]]
+]`,
+
+`[[[[v,d], 4]]]`
+).
+* For other examples, please see lpiverify4.pl, lpiverify4_types.pl (for examples with types, including the list type), lpiverify4_open.pl (for examples with open-ended results) and lpiverify4_open_types.pl (for examples with open-ended results with types).
+
+* See https://github.com/luciangreen/listprologinterpreter/blob/master/LPI_docs.md for complete List Prolog Documentation.
+
diff --git a/Languages/lang_db_generator-nonabort.pl b/Languages/lang_db_generator-nonabort.pl
new file mode 100644
index 0000000000000000000000000000000000000000..bcc0ceef10174673b7763b513f9256c936d24388
--- /dev/null
+++ b/Languages/lang_db_generator-nonabort.pl
@@ -0,0 +1,303 @@
+%% lang_db_generator(Target_language)
+%% New repository, with dbs in each rep
+
+%:- include('../culturaltranslationtool/ctt2.pl'). % leave these commented out
+%:- include('../culturaltranslationtool/edit.pl'). % "
+%:- include('../listprologinterpreter/la_strings'). % leave off
+
+:- dynamic lang_db/1.
+
+%% List_of_words may be list of words to translate and add or an original language code
+
+% lang_db_generator([["a","a"],["b","b exp"]],["fr"]). - create the db
+% lang_db_generator("fr",["de"]). - add de with same entries as fr
+% lang_db_generator("fr",["ab"]). - add ab "
+% Alternatively, lang_db_generator("fr",["de","ab"]). instead of last two lines
+
+load_lang_db1(Entry3) :-
+
+ % if l.o.w. is orig lang, read from it instead
+
+ directory_files("../listprologinterpreter/languages/",F),
+ delete_invisibles_etc(F,G),
+ findall(Entry2,(member(Filex1,G),
+ string_concat("../listprologinterpreter/languages/",Filex1,Filex),
+ phrase_from_file_s(string(String00a), Filex),
+ string_codes(String02b,String00a),
+ atom_to_term(String02b,String02a,[]),
+ string_concat(Target_language3,".txt",Filex),
+ string_concat("../listprologinterpreter/languages/",Target_language2,Target_language3),
+
+findall([En_word,En_word2,Target_language2,T_word],(member(Entry,String02a),((Entry=[En_word,En_word2,Target_language2,T_word],string(En_word),string(En_word2),string(T_word))->true;(concat_list(["Error: File: ",Filex,", Entry: ",Entry," not in format [\"\",\"\",\"\",\"\"]."],_Notification1)%,writeln(Notification1)
+,fail))),Entry2)
+),Entry2a),
+ maplist(append,[Entry2a],[Entry3]).
+
+lang_db_generator(List_of_words,Target_language1) :-
+
+ load_lang_db1(Entry3),
+
+ %%(not(member([_,Target_language1,_],Entry3))->
+
+ (string(List_of_words)->
+ (findall([Word1,Word2],(member([Word1,Word2,List_of_words,_],Entry3)),List_of_words2),List_of_words3=[]);
+
+ (findall([Word1,Word2,List_of_words,Item_a],(member([Word1,Word2,List_of_words,Item_a],Entry3)),List_of_words3), %%** test
+ findall(_,(member([Word,Word2],List_of_words),(string(Word),string(Word2))->true;(concat_list(["Error: Word1: ",Word," or Word2: ",Word2," in list of words not in format [\"\",\"\"]."],_Notification1)%,writeln(Notification1)
+ ,fail)),_)),List_of_words=List_of_words2),
+
+%% list of langs to put words into
+
+ findall(_,(member(Target_language10,Target_language1),
+ (string(Target_language10)->true;(concat_list(["Error: Target_language1: ",Target_language1," not in format \"\"."],_Notification11)%,writeln(Notification1)
+ ,fail)),
+
+findall([Input,Input1,Target_language10,Output3],(member([Input,Input1],List_of_words2),translate4(Input1,"en",Target_language10,Output3)),Output4),
+
+ %% save file
+ %% ** add to prev file
+ %% ** keep metaphorical translations (x bt xx with simplified ctt (no bt-trans dict) and customised output)
+ %% numbers after command names
+ %% - check words on google translate, ctt speeds bt
+
+ append(List_of_words3,Output4,Output4a), %% ** test
+
+ concat_list(["../listprologinterpreter/languages/",Target_language10,".txt"],File1),
+ term_to_atom(Output4a,File_contents),open_s(File1,write,Stream),write(Stream,File_contents),close(Stream)),_).
+
+delete_invisibles_etc(F,G) :-
+ findall(J,(member(H,F),atom_string(H,J),not(J="."),not(J=".."),not(string_concat(".",_,J))),G).
+
+% test with t=w+1
+
+%translate1(Input,From_l,Target_language1,Output3) :-
+%concat_list([Input," ",From_l," ",Target_language1],Output3).
+
+translate1("v","en","fr","v").
+translate1("true","en","fr","vrai").
+translate1("v","en","de","v").
+translate1("true","en","de","wahr").
+translate1(A,_,_,A).
+
+load_lang_db :-
+%% error if lang not found
+ load_lang_db1(Entry3),
+ (not(lang(Lang))->(Lang="en");lang(Lang)),
+ (Lang="en"->true;
+ (member([_,_,Lang,_],Entry3)->true;
+ (concat_list(["Error: Language: ",Lang," not in listprologinterpreter/languages folder."],_Notification1)%,writeln(Notification1)
+ ,fail))),
+
+ retractall(lang_db(_)),
+ assertz(lang_db(Entry3)),!.
+
+get_lang_word3(Input,From_lang,To_lang,Output) :-
+ From_lang="en",
+ To_lang="en",
+ atom_string(Output,Input),!.
+get_lang_word3(Input,From_lang,To_lang,Output) :-
+ not(From_lang="en"),
+ To_lang="en",
+
+ %(From_lang="en2"->Epsilon="";Epsilon=" "),
+ Epsilon="",
+
+ %(string(Input)->true;(number(Input))->true;fail),
+ %lang_db(Lang_db),
+ (not(lang_db(Lang_db))->(load_lang_db,lang_db(Lang_db));lang_db(Lang_db)),
+
+split_on_number(Input,Input1,Input10),((member([Output2,_Input101,From_lang,Input1],Lang_db),
+ %notrace,
+ (Input10="" -> Output3=Output2;
+ concat_list([Output2,Epsilon,Input10],Output3)))->true;
+ (translate4(Input1,From_lang,To_lang,Output2),
+ (Input10="" -> Output3=Output2;
+ concat_list([Output2,Epsilon,Input10],Output3)))
+ ),
+ replace(Output3," ","_",Output4),
+ atom_string(Output,Output4),!.
+
+get_lang_word3(Input0,From_lang,To_lang,Output) :-
+ From_lang="en",
+ not(To_lang="en"),
+
+ %(To_lang="en2"->Epsilon=" ";Epsilon=" "),
+ Epsilon=" ",
+
+ %lang_db(Lang_db),
+ (not(lang_db(Lang_db))->(load_lang_db,lang_db(Lang_db));lang_db(Lang_db)),
+ replace(Input0,"_"," ",Input),
+ %(atom(Input)->true;(number(Input))->true;fail),
+ split_on_number(Input,Input1,Input10),((member([Input1,_Input102,To_lang,Output2],Lang_db),
+ %notrace,
+ (Input10="" -> Output=Output2;
+ concat_list([Output2,Epsilon,Input10],Output)))->true;
+ (translate4(Input1,From_lang,To_lang,Output2),
+ (Input10="" -> Output=Output2;
+ concat_list([Output2,Epsilon,Input10],Output)))
+ ),
+ %atom_string(Input,Output),!.
+ !.
+
+get_lang_word3(Input,From_lang,To_lang,Output) :-
+%% error if word not found
+ not(From_lang="en"),
+ not(To_lang="en"),
+
+ %lang(To_lang),
+ %lang_db(Lang_db),
+ (not(lang_db(Lang_db))->(load_lang_db,lang_db(Lang_db));lang_db(Lang_db)),
+ %((From_lang="en",To_lang="en")->%Input=Output1,
+ %atom_string(Output,Input);
+ %((%(%((Input="member2"->trace;true),
+ split_on_number(Input,Input1,Input10),((member([Input2,_Input101,From_lang,Input1],Lang_db),member([Input2,_Input102,To_lang,Output2],Lang_db),
+ %notrace,
+ (Input10="" -> Output=Output2;
+ concat_list([Output2," ",Input10],Output)))->true;
+ (translate4(Input1,From_lang,To_lang,Output2),
+ (Input10="" -> Output=Output2;
+ concat_list([Output2," ",Input10],Output)))
+ ), %-> true;
+
+ %concat_list(["Error: Word: ",Input," not in Language: ",Lang," in lang_db."],_Notification1),%writeln(Notification1),
+ %fail
+ %)))),
+ %Output=Output1,
+ !.
+ %atom_string(Output,Output1),!.
+
+%split_on_number(Input,Input1,Input10) :-
+%findall([Input1,Input10],split_on_number1(Input,Input1,Input10),Output1),
+%reverse(Output1,[[Input1,Input10]|_]).
+
+/**
+
+[debug] ?- split_on_number("en 2",A,B).
+A = "en",
+B = "2".
+
+[debug] ?- split_on_number("en22",A,B).
+A = "en",
+B = "22".
+
+[debug] ?- split_on_number("en a 22",A,B).
+A = "en a",
+B = "22".
+
+[debug] ?- split_on_number("en a",A,B).
+A = "en a",
+B = "".
+
+**/
+
+split_on_number(Input,Input1,Input10) :-
+ string_concat(A,B,Input),
+ string_concat(C,D,B),
+ string_length(C,1),
+ ((C=" ",
+ string_concat(E,F,D),
+ string_concat(J,K,E),
+ string_length(K,1),
+ K=" ",
+
+ string_concat(G,_H,F),
+ %trace,
+ string_length(G,1),
+ (number_string(_,G)),%->true;not(G=" ")),
+ %((
+ %C=" ",
+ %)->(
+ concat_list([A,C,J],Input1),
+ %Input1=A,
+ Input10=F))%->true;
+ %(number_string(_,C),
+ %Input1=A,Input10=B))
+ ,!.%);
+split_on_number(Input,Input1,Input10) :-
+ string_concat(A,B,Input),
+ string_concat(C,D,B),
+ string_length(C,1),
+ ((C=" ",
+ string_concat(_E,F,D),
+
+ string_concat(G,_H,F),
+ %trace,
+ string_length(G,1),
+
+ (number_string(_,G)),%->true;not(G=" ")),
+ %((
+ %C=" ",
+ %)->(
+ %concat_list([A,C,J],Input1),
+ Input1=A,
+ Input10=F)->true;
+ (number_string(_,C),
+ Input1=A,Input10=B))
+ ,!.%);
+
+split_on_number(Input,Input1,Input10) :-
+ Input1=Input,Input10="".
+
+replace(A,Find,Replace,F) :-
+ split_string(A,Find,Find,B),findall([C,Replace],(member(C,B)),D),maplist(append,[D],[E]),concat_list(E,F1),string_concat(F,G,F1),string_length(G,1),!.
+
+% stringconcat-> in both algs above
+% concatenate strings v
+
+% membre 2->member2
+get_en_lang_word(Input,Output) :-
+%% error if word not found
+ lang(Lang),
+ lang_db(Lang_db),
+ (Lang="en"->%Input=Output1,
+ atom_string(Input,Output);
+ ((%(%((Input="member2"->trace;true),
+ %split_on_number(Input,Input1,Input10),
+ member([Output1,_Input101,Lang,Input],Lang_db),
+ %atom_string(
+ Output=Output1)->true;
+ %notrace,
+ %(%Input10="" -> Output=Output2;
+ %concat_list([Output2," ",Input10],Output))) -> true;
+ (concat_list(["Error: Word: ",Input," not in Language: ",Lang," in lang_db."],_Notification1)%,writeln(Notification1)
+ ,fail))),
+ %Output=Output1,
+ !.
+
+get_lang_word(I,O) :-
+ (not(lang(OL))->(OL="en");lang(OL)),
+ get_lang_word3(I,"en",OL,O),!.
+
+reserved_word(Word) :-
+ lang(Lang) ,
+ lang_db(Lang_db),
+ (Lang="en"->(member([Word1,_,_,_],Lang_db),
+ atom_string(Word,Word1));
+ member([_,_,_,Word],Lang_db)).
+
+/*
+reserved_word2(Word) :-
+ lang(Lang) ,
+ lang_db(Lang_db),
+ split_on_number(Word,Output21,_),
+ atom_string(Output21,Output2),
+ member([Output2,_Input101,_Lang,_Input1],Lang_db),
+ not(Output21="query_box"),
+ !.
+*/
+
+% reserved word - membre2 -> member2 (in list)
+% (translate to en, check list)
+
+reserved_word2(Word) :-
+ lang(Lang) ,
+ %lang_db(Lang_db),
+ get_lang_word3(Word,Lang,"en",Word2),
+ atom_string(Word2,Word3),
+ reserved_words2(Reserved_words),
+ (member(Word3,Reserved_words)->true;
+ (fail%
+ %writeln1([not_reserved_word,Word3]),fail
+ )),!.
+
+% not query_box
\ No newline at end of file
diff --git a/Languages/lang_db_generator.pl b/Languages/lang_db_generator.pl
new file mode 100644
index 0000000000000000000000000000000000000000..691d477b63439cf44a88afb28821e22075b8d3f7
--- /dev/null
+++ b/Languages/lang_db_generator.pl
@@ -0,0 +1,180 @@
+%% lang_db_generator(Target_language)
+%% New repository, with dbs in each rep
+
+:- include('../culturaltranslationtool/ctt2.pl').
+%:- include('../culturaltranslationtool/edit.pl').
+:- include('../listprologinterpreter/la_strings').
+:- include('translate4.pl').
+
+:- dynamic lang_db/1.
+
+%% List_of_words may be list of words to translate and add or an original language code
+
+% lang_db_generator([["a","a"],["b","b exp"]],["fr"]). - create the db
+% lang_db_generator("fr",["de"]). - add de with same entries as fr
+% lang_db_generator("fr",["ab"]). - add ab "
+% Alternatively, lang_db_generator("fr",["de","ab"]). instead of last two lines
+
+load_lang_db1(Entry3) :-
+
+ % if l.o.w. is orig lang, read from it instead
+
+ directory_files("../listprologinterpreter/languages/",F),
+ delete_invisibles_etc(F,G),
+ findall(Entry2,(member(Filex1,G),
+ string_concat("../listprologinterpreter/languages/",Filex1,Filex),
+ phrase_from_file_s(string(String00a), Filex),
+ string_codes(String02b,String00a),
+ atom_to_term(String02b,String02a,[]),
+ string_concat(Target_language3,".txt",Filex),
+ string_concat("../listprologinterpreter/languages/",Target_language2,Target_language3),
+
+findall([En_word,En_word2,Target_language2,T_word],(member(Entry,String02a),((Entry=[En_word,En_word2,Target_language2,T_word],string(En_word),string(En_word2),string(T_word))->true;(concat_list(["Error: File: ",Filex,", Entry: ",Entry," not in format [\"\",\"\",\"\",\"\"]."],Notification1),writeln(Notification1),abort))),Entry2)
+),Entry2a),
+ maplist(append,[Entry2a],[Entry3]).
+
+lang_db_generator(List_of_words,Target_language1) :-
+
+ load_lang_db1(Entry3),
+
+ %%(not(member([_,Target_language1,_],Entry3))->
+
+ (string(List_of_words)->
+ (findall([Word1,Word2],(member([Word1,Word2,List_of_words,_],Entry3)),List_of_words2),List_of_words3=[]);
+
+ (findall([Word1,Word2,List_of_words,Item_a],(member([Word1,Word2,List_of_words,Item_a],Entry3)),List_of_words3), %%** test
+ findall(_,(member([Word,Word2],List_of_words),(string(Word),string(Word2))->true;(concat_list(["Error: Word1: ",Word," or Word2: ",Word2," in list of words not in format [\"\",\"\"]."],Notification1),writeln(Notification1),abort)),_)),List_of_words=List_of_words2),
+
+%% list of langs to put words into
+
+ findall(_,(member(Target_language10,Target_language1),
+ (string(Target_language10)->true;(concat_list(["Error: Target_language1: ",Target_language1," not in format \"\"."],Notification1),writeln(Notification1),abort)),
+
+%split_on_number(Target_language10,Target_language101,_),
+%trace,
+findall([Input,Input1,Target_language10,Output3],(
+member([Input,Input1],List_of_words2),
+(Target_language10="en2"->Output3=Input1;translate(Input1,"en",Target_language10,Output3))),Output4),
+
+ %% save file
+ %% ** add to prev file
+ %% ** keep metaphorical translations (x bt xx with simplified ctt (no bt-trans dict) and customised output)
+ %% numbers after command names
+ %% - check words on google translate, ctt speeds bt
+
+ append(List_of_words3,Output4,Output4a), %% ** test
+
+ concat_list(["../listprologinterpreter/languages/",Target_language10,".txt"],File1),
+ term_to_atom(Output4a,File_contents),open_s(File1,write,Stream),write(Stream,File_contents),close(Stream)),_).
+
+delete_invisibles_etc(F,G) :-
+ findall(J,(member(H,F),atom_string(H,J),not(J="."),not(J=".."),not(string_concat(".",_,J))),G).
+
+% test with t=w+1
+
+translate1(Input,From_l,Target_language1,Output3) :-
+concat_list([Input," ",From_l," ",Target_language1],Output3).
+
+load_lang_db :-
+%% error if lang not found
+ load_lang_db1(Entry3),
+ lang(Lang),
+ (Lang="en"->true;
+ (member([_,_,Lang,_],Entry3)->true;
+ (concat_list(["Error: Language: ",Lang," not in listprologinterpreter/languages folder."],Notification1),writeln(Notification1),abort))),
+
+ retractall(lang_db(_)),
+ assertz(lang_db(Entry3)),!.
+
+get_lang_word(Input,Output) :-
+%% error if word not found
+ (not(lang(Lang))->(Lang="en");lang(Lang)),
+ %lang_db(Lang_db),
+ (not(lang_db(Lang_db))->(load_lang_db,lang_db(Lang_db));lang_db(Lang_db)),
+ (Lang="en"->%Input=Output1,
+ atom_string(Output,Input);
+ ((%(%((Input="member2"->trace;true),
+ split_on_number(Input,Input1,Input10),member([Input1,_Input101,Lang,Output2],Lang_db),
+ %notrace,
+ (Input10="" -> Output=Output2;
+ concat_list([Output2," ",Input10],Output))) -> true;
+ (concat_list(["Error: Word: ",Input," not in Language: ",Lang," in lang_db."],Notification1),writeln(Notification1),abort))),
+ %Output=Output1,
+ !.
+ %atom_string(Output,Output1),!.
+
+%split_on_number(Input,Input1,Input10) :-
+%findall([Input1,Input10],split_on_number1(Input,Input1,Input10),Output1),
+%reverse(Output1,[[Input1,Input10]|_]).
+split_on_number(Input,Input1,Input10) :-
+ string_concat(A,B,Input),
+ string_concat(C,D,B),
+ string_length(C,1),
+ ((C=" ",
+ string_concat(E,F,D),
+ string_concat(J,K,E),
+ string_length(K,1),
+ K=" ",
+
+ string_concat(G,_H,F),
+ %trace,
+ string_length(G,1),
+ (number_string(_,G)),%->true;not(G=" ")),
+ %((
+ %C=" ",
+ %)->(
+ concat_list([A,C,J],Input1),
+ %Input1=A,
+ Input10=F))%->true;
+ %(number_string(_,C),
+ %Input1=A,Input10=B))
+ ,!.%);
+split_on_number(Input,Input1,Input10) :-
+ string_concat(A,B,Input),
+ string_concat(C,D,B),
+ string_length(C,1),
+ ((C=" ",
+ string_concat(_E,F,D),
+
+ string_concat(G,_H,F),
+ %trace,
+ string_length(G,1),
+
+ (number_string(_,G)),%->true;not(G=" ")),
+ %((
+ %C=" ",
+ %)->(
+ %concat_list([A,C,J],Input1),
+ Input1=A,
+ Input10=F)->true;
+ (number_string(_,C),
+ Input1=A,Input10=B))
+ ,!.%);
+
+split_on_number(Input,Input1,Input10) :-
+ Input1=Input,Input10="".
+
+replace(A,Find,Replace,F) :-
+ split_string(A,Find,Find,B),findall([C,Replace],(member(C,B)),D),maplist(append,[D],[E]),concat_list(E,F),!.
+
+% stringconcat-> in both algs above
+% concatenate strings v
+/**
+% membre 2->member2
+get_en_lang_word(Input,Output) :-
+%% error if word not found
+ lang(Lang),
+ lang_db(Lang_db),
+ (Lang="en"->%Input=Output1,
+ atom_string(Input,Output);
+ ((%(%((Input="member2"->trace;true),
+ %split_on_number(Input,Input1,Input10),
+ member([Output,_Input101,Lang,Input],Lang_db))->true;
+ %notrace,
+ %(%Input10="" -> Output=Output2;
+ %concat_list([Output2," ",Input10],Output))) -> true;
+ (concat_list(["Error: Word: ",Input," not in Language: ",Lang," in lang_db."],Notification1),writeln(Notification1),abort))),
+ %Output=Output1,
+ !.
+ **/
+
\ No newline at end of file
diff --git a/Languages/make_docs.pl b/Languages/make_docs.pl
new file mode 100644
index 0000000000000000000000000000000000000000..f14ddf2b480a3c54d55c3e6eb82ac48355ff1292
--- /dev/null
+++ b/Languages/make_docs.pl
@@ -0,0 +1,131 @@
+% make_docs.pl
+
+:-include('../listprologinterpreter/la_strings.pl').
+ % leave off
+:-include('../culturaltranslationtool/ctt2.pl'). % turn back on
+:-include('data.pl').
+:-include('lang_db_generator-nonabort.pl'). %
+:- include('translate4.pl').
+:- include('../Prolog-to-List-Prolog/pretty_print.pl').
+
+% translates list prolog code between ``
+% in the following, translates v, doesn't translate x
+% v< x > v < x >
+% v & x &
+
+%translate(A,_,_,_) :-
+%writeln([here,A]),abort.
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+make_docs(File_a) :-
+ writeln("Enter target language code for LPI docs:"),
+ read_string(user_input, "\n", "\r", _End2, To_lang),
+ retractall(lang(_)),
+ assertz(lang(To_lang)),
+ load_lang_db,
+ phrase_from_file_s(string(Docs), File_a),
+ string_codes(Docs2,Docs),
+ split_string1(Docs2,["`"],Input1),
+ process1(Input1,To_lang,"",String),
+ concat_list([To_lang,"-",File_a%,".txt"
+ ],File),
+ (open_s(File,write,Stream),
+ write(Stream,String),
+ close(Stream)),
+ writeln(String),!.
+
+process1(Input1,To_lang,String1,String2) :-
+ Input1=[A,B|Rest],
+ split_string1(A,["<",">"],Input2),
+ process2(Input2,To_lang,String1,String3),
+ catch(term_to_atom(B1,B), _, (concat_list(["Error: Couldn't translate list prolog: ",B],N),writeln(N),abort)),
+ retractall(from_lang2(_)),
+ assertz(from_lang2("en")),
+ retractall(to_lang2(_)),
+ assertz(to_lang2(To_lang)),
+ (data([B1],[],[B2])->true;(concat_list(["Error: Couldn't translate list prolog: ",B],N),writeln(N),abort)),
+ %trace,
+
+ %trace,
+ %writeln1(B2),
+
+ catch(%term_to_atom
+ pretty_print(B2,B3), _, (concat_list(["Error: Couldn't translate list prolog: ",B3],N_A),writeln(N_A),abort)), % change back to not with catch
+
+ concat_list([String3,"`",B3,"`"],String4),
+writeln("****"),
+writeln(String4),
+ process1(Rest,To_lang,String4,String2),!.
+process1([],_To_lang,String,String) :- !.
+process1([A|As],_To_lang,String1,String2) :-
+%trace,
+ %term_to_atom(A,A1),
+ %term_to_atom(As,As1),
+ (As=[]->(concat_list([String1,A],String2)
+ %,notrace
+ );
+ (maplist(append,[[[String1],[A],As]],[C]),
+ concat_list(C,String2)
+ %,notrace
+ )),!.
+
+% v< x > v < x >
+process2(Input2,To_lang,String1,String2) :-
+ Input2=[A,B,C,D|Rest],
+ split_string1(A,["&"],A11), % docs.txt needs a character between `,<,>,&
+ process3(A11,To_lang,"",A1),
+ split_string1(C,["&"],C11),
+ process3(C11,To_lang,"",C1),
+ concat_list([String1,A1,"<",B,">",C1,"<",D,">"],String3),
+writeln("****"),
+writeln(String3),
+ process2(Rest,To_lang,String3,String2),!.
+process2([],_To_lang,String,String) :- !.
+process2([A|As],To_lang,String1,String2) :-
+ split_string1(A,["&"],A11), % docs.txt needs a character between `,<,>,&
+ process3(A11,To_lang,"",A1),
+
+ %term_to_atom(A,A1),
+ %term_to_atom(As,As1),
+ (As=[]->concat_list([String1,A1],String2);
+ (maplist(append,[[[String1],[A1],As]],[C]),
+ concat_list(C,String2))),!.
+
+% v & x &
+process3(Input2,To_lang,String1,String2) :-
+ Input2=[A,B|Rest],
+ translate2(A,"en",To_lang,A1), % 1a,2
+ %translate1a(C,"en",To_lang,C1),
+ %C=C1,
+ concat_list([String1,A1,B],String3),
+writeln("****"),
+writeln(String3),
+ process3(Rest,To_lang,String3,String2),!.
+process3([],_To_lang,String,String) :- !.
+process3([A|As],_To_lang,String1,String2) :-
+ %term_to_atom(A,A1),
+ %term_to_atom(As,As1),
+ (As=[]->concat_list([String1,A],String2);
+ (maplist(append,[[[String1],[A],As]],[C]),
+ concat_list(C,String2))),!.
+
+%term_to_atom2(A,B) :-
+% term_to_atom(A,C),
+
+%translate1a(A,_,_,A).
+
+translate1a(A,_,_,A1):-
+ string_concat(A," tr",A1).
+
+
+translate2(A,From_lang,To_lang,B) :-
+ (((number(A)->true;(data_symbol(A)))->(A=B));(
+ get_lang_word3(A,From_lang,To_lang,B))).
+
+
+
+
diff --git a/Languages/translate4.pl b/Languages/translate4.pl
new file mode 100644
index 0000000000000000000000000000000000000000..d218c02ccd38c8558ec9b439db1f760452b2f97c
--- /dev/null
+++ b/Languages/translate4.pl
@@ -0,0 +1,58 @@
+% translate4.pl
+
+%translate4(Input,Lang1,Lang2,Input) :-
+% split_on_number(Lang1,Lang3,_),
+% split_on_number(Lang2,Lang3,_),!.
+translate4(Input,Lang1,Lang2,Input) :-
+ Lang1="en2",
+ split_on_number(Lang1,Lang3,_),
+ split_on_number(Lang2,Lang3,_),!.
+translate4(Input,"en","en2",Input) :- !.
+translate4(Input,Lang,Lang,Input) :- !.
+translate4(Input,From_lang,To_lang,Output) :-
+ split_on_number(From_lang,Lang3,_),
+ split_on_number(To_lang,Lang4,_),
+ %not(Lang3=Lang4),
+ translate(Input,Lang3,Lang4,Output),!.
+
+/**
+
+need to run test1(off,1,R). to load db before following.
+
+get_lang_word3(member1,"en","en2",A).
+A="member 1".
+
+get_lang_word3("yes_1","en","en2",A).
+A = "yes 1".
+
+get_lang_word3("yes1","en","en2",A).
+A = "yes 1".
+
+
+get_lang_word3("member 1","en2","en",A).
+A = member1.
+
+get_lang_word3("yes 1","en2","en",A).
+A = yes1.
+
+get_lang_word3("yes 1","en2","en",A).
+A = yes1.
+
+
+get_lang_word3("Yes 1","en2","fr",A).
+A = "Oui 1".
+
+get_lang_word3("Oui 1","fr","en2",A).
+A = "Yes 1".
+
+
+get_lang_word3("membre 1","fr","en2",A).
+A = "member 1".
+
+get_lang_word3("membre 1","fr","en",A).
+A = member1.
+
+get_lang_word3("Yes 1","en2","en",A).
+A = 'Yes1'.
+
+**/
\ No newline at end of file
diff --git a/List-Prolog-Package-Manager/.DS_Store b/List-Prolog-Package-Manager/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6
Binary files /dev/null and b/List-Prolog-Package-Manager/.DS_Store differ
diff --git a/List-Prolog-Package-Manager/LICENSE b/List-Prolog-Package-Manager/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..3a27c90f1c2986ac0fb73b4ae956c6205343dfdd
--- /dev/null
+++ b/List-Prolog-Package-Manager/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2020, Lucian Green
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/List-Prolog-Package-Manager/README.md b/List-Prolog-Package-Manager/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..987e290cd3c4814ffd9a03bef3109a5a341abc6a
--- /dev/null
+++ b/List-Prolog-Package-Manager/README.md
@@ -0,0 +1,66 @@
+
+
+# List-Prolog-Package-Manager (LPPM)
+
+Registry manager and installer for GitHub repositories (of any language) with dependencies
+
+* lppm.pl - starts a local or remote Prolog server to host the registry, where a repository entry on the registry can be uploaded or edited by reuploading, and GitHub repositories (a.k.a. packages) in the registry can be installed when in the same folder as the registry on the server.
+* lppm_registry.pl - contains users, repositories, descriptions and dependencies (lists of users and repositories).
+* LPPM now installs repositories needed by repositories, etc. without needing them in the first registry entry.
+
+# Getting Started
+
+Please read the following instructions on how to install the project on your computer for installing repositories with dependencies.
+
+* A list of my repositories in SWI-Prolog.
+
+# Prerequisites
+
+* Please download and install SWI-Prolog for your machine at `https://www.swi-prolog.org/build/`.
+
+* Check the prerequisites for the specific repository to install.
+
+# 1. Install manually
+
+* Manually download the repositories listed under "Install manually" for the repository.
+
+# 2. Or Install from List Prolog Package Manager (LPPM)
+
+* Download the LPPM Repository:
+
+```
+mkdir GitHub
+cd GitHub/
+git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
+cd List-Prolog-Package-Manager
+swipl
+['lppm'].
+lppm_install("luciangreen","").
+halt
+```
+
+* where is replaced with the name of the repository.
+
+# Running
+
+`cd ` (the name of the repository)
+`swipl`
+`` (see the repository instructions)
+
+# Optional Web Interface
+
+* Load `lppm` by entering `['lppm.pl'].` in SWI-Prolog and run with the command e.g. `lppm_start_server(8001).` on the machine that is a local or remote host.
+* In the web browser, go to `http://127.0.0.1:8001/` to upload registry entries. Take care to enter double quotes around all strings. The registry will not accept badly formatted input. To update an entry, re-enter it with the same user and repository.
+* In the web browser, view the registry at `http://127.0.0.1:8001/registry`.
+* Install packages by running `lppm_install("User","Repository").` LPPM will prompt you for an installation folder. Packages are uncompressed source code from GitHub, saved to folders of the same name in the target folder. Please enter the relevant folder and follow the running instructions from the repository.
+
+# Authors
+
+Lucian Green - Initial programmer - Lucian Academy
+
+# License
+
+I licensed this project under the BSD3 License - see the LICENSE.md file for details
+
+
+
diff --git a/List-Prolog-Package-Manager/la_strings.pl b/List-Prolog-Package-Manager/la_strings.pl
new file mode 100644
index 0000000000000000000000000000000000000000..acb6229ac160409f007f83a85e786d9d1f6a5450
--- /dev/null
+++ b/List-Prolog-Package-Manager/la_strings.pl
@@ -0,0 +1,60 @@
+%% la_strings.pl
+
+use_module(library(pio)).
+use_module(library(dcg/basics)).
+
+open_s(File,Mode,Stream) :-
+ atom_string(File1,File),
+ open(File1,Mode,Stream),!.
+
+string_atom(String,Atom) :-
+ atom_string(Atom,String),!.
+
+phrase_from_file_s(string(Output), String) :-
+ atom_string(String1,String),
+ phrase_from_file(string(Output), String1),!.
+
+writeln1(Term) :-
+ term_to_atom(Term,Atom),
+ writeln(Atom),!.
+
+write1(Term) :-
+ term_to_atom(Term,Atom),
+ write(Atom),!.
+
+shell1_s(Command) :-
+ atom_string(Command1,Command),
+ shell1(Command1),!.
+
+shell1(Command) :-
+ (bash_command(Command,_)->
+ true;
+ (writeln(["Failed shell1 command: ",Command]),abort)
+ ),!.
+
+bash_command(Command, Output) :-
+ setup_call_cleanup(process_create(path(bash),
+ ['-c', Command],
+ [stdout(pipe(Out))]),
+ read_string(Out, _, Output),
+ close(Out)).
+
+concat_list(A1,B):-
+ A1=[A|List],
+ concat_list(A,List,B),!.
+
+concat_list(A,[],A):-!.
+concat_list(A,List,B) :-
+ List=[Item|Items],
+ string_concat(A,Item,C),
+ concat_list(C,Items,B).
+
+append_list(A1,B):-
+ A1=[A|List],
+ append_list(A,List,B),!.
+
+append_list(A,[],A):-!.
+append_list(A,List,B) :-
+ List=[Item|Items],
+ append(A,[Item],C),
+ append_list(C,Items,B).
diff --git a/List-Prolog-Package-Manager/lppm.pl b/List-Prolog-Package-Manager/lppm.pl
new file mode 100644
index 0000000000000000000000000000000000000000..44a1a792c5c1cdf2f224683e28d4c8405dc80840
--- /dev/null
+++ b/List-Prolog-Package-Manager/lppm.pl
@@ -0,0 +1,278 @@
+%% lppm.pl
+%% List Prolog Package Manager
+
+%% Starts server, uploads manifest files, installs repositories
+
+
+:- use_module(library(http/thread_httpd)).
+:- use_module(library(http/http_dispatch)).
+:- use_module(library(http/http_error)).
+:- use_module(library(http/html_write)).
+
+% we need this module from the HTTP client library for http_read_data
+:- use_module(library(http/http_client)).
+:- http_handler('/', web_form, []).
+
+:- include('la_strings.pl').
+
+%:- include('la_strings.pl'). %% Move la_strings and the contents of the repository into the root folder
+
+lppm_start_server(Port) :-
+ http_server(http_dispatch, [port(Port)]).
+
+ /*
+ browse http://127.0.0.1:8000/
+ This demonstrates handling POST requests
+ */
+
+ web_form(_Request) :-
+ reply_html_page(
+ title('List Prolog Package Manager - Upload'),
+ [
+ form([action='/landing', method='POST'], [
+ p([], [
+ label([for=user],'User: (e.g. "luciangreen")'),
+ %% If you enter strings without double quotes and there is an internal server error please contact luciangreen@lucianacademy.com
+ input([name=user, type=textarea])
+ ]),
+ p([], [
+ label([for=repository],'Repository: (e.g. "File2List2Br")'),
+ input([name=repository, type=textarea])
+ ]),
+ p([], [
+ label([for=description],'Description: (e.g. "xyz")'),
+ input([name=description, type=textarea])
+ ]),
+ p([], [
+ label([for=dependencies],'Dependencies: (e.g. [["User","Repository"], ...] or [])'),
+ input([name=dependencies, type=textarea])
+ ]),
+
+ p([], input([name=submit, type=submit, value='Submit'], []))
+ ])]).
+
+ :- http_handler('/landing', landing_pad, []).
+
+ landing_pad(Request) :-
+ member(method(post), Request), !,
+ http_read_data(Request, Data, []),
+ format('Content-type: text/html~n~n', []),
+ format('
', []),
+
+writeln("List Prolog Package Manager Registry\n\nInstallation instructions:\n\n Install List Prolog Package Manager (LPPM) by downloading SWI-Prolog, downloading the List Prolog Package Manager from GitHub, loading LPPM with ['lppm']. then installing packages by running lppm_install(\"User\",\"Repository\"). LPPM will prompt you for an installation directory. The available repositories are below.\n"),
+
+catch(phrase_from_file_s(string(LPPM_registry_string), "lppm_registry.txt"),_,(writeln1("Cannot find lppm_registry.txt"),abort)),
+
+term_to_atom(LPPM_registry_term1,LPPM_registry_string),
+
+ format('
'),
+
+
+ phrase_from_file_s(string(String00a), "student_marks1.txt"),
+ string_codes(String02b,String00a),
+ atom_to_term(String02b,String02a,[]),
+
+(member([_Name3,Student_number2,Course2,Essay_topic2,Mark3,Year2,Month2,Day2,Hour2,Minute2],String02a)->
+ (concat_list([Name2,", your mark, ",Mark3,", was earned for the topic ",Essay_topic2," in the course ",Course2," on ",Day2,"/",Month2,"/",Year2," at ",Hour2,":",Minute2,"."],String_a),
+ writeln(String_a))
+ ;
+ (
+
+ get_time(TS),stamp_date_time(TS,date(Year2,Month2,Day2,Hour2,Minute2,_Seconda,_A,_TZ,_False),local),
+ %% mark is 65-69 if agree and < 80 br %% 70-74 if disagree and < 80 br %% mark is 75-79 if disagree and >= 80 br %% 80 if agree and >= 80 br
+
+sectest(Agree_or_disagree,Mark1),
+
+
+ append(String02a,[[Name2,Student_number2,Course2,Essay_topic2,Mark1,Year2,Month2,Day2,Hour2,Minute2]],String02a_a),
+
+ term_to_atom(String02a_a,String02a_b),
+ string_atom(String02a_c,String02a_b),
+
+ (open_s("student_marks1.txt",write,Stream1),
+ write(Stream1,String02a_c),
+ close(Stream1)),!,
+
+ concat_list([Name2,", you have earned the mark, ",Mark1," for the topic ",Essay_topic2," in the course ",Course2," on ",Day2,"/",Month2,"/",Year2," at ",Hour2,":",Minute2,"."],String_a),
+ writeln(String_a)))
+
+ )
+; (true)
+ )
+ %%
+ .
+
+
+ :- http_handler('/generate_student_number', generate_student_number, []).
+
+ generate_student_number(_Request) :-
+ reply_html_page(
+ title('Lucian Academy'),
+ [
+ form([action='/landing2', method='POST'], [
+ p([], [
+ label([for=name],'Name:'),
+ %% If you enter strings without double quotes and there is an internal server error please contact luciangreen@lucianacademy.com
+ input([name=name, type=textarea])
+ ]),
+ p([], [
+ label([for=email],'E-mail:'),
+ input([name=email, type=textarea])
+ ]),
+
+ p([], input([name=submit, type=submit, value='Submit'], []))
+ ])]).
+
+ string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+
+:- http_handler('/landing2', landing_pad2, []).
+
+ landing_pad2(Request) :-
+ member(method(post), Request), !,
+ http_read_data(Request, Data, []),
+ format('Content-type: text/html~n~n', []),
+ format('
', []),
+%%writeln1(Data)
+
+%%lp(Data):-
+
+Data=[name=Name1,email=Email1
+,submit=_],
+
+string_atom(Name2,Name1),
+string_atom(Email2,Email1),
+
+ phrase_from_file_s(string(String00a), "student_numbers1.txt"),
+ string_codes(String02b,String00a),
+ atom_to_term(String02b,String02a,[]),
+
+(member([Name3,Email2,Student_number3],String02a)->
+ (concat_list(["The email address \"",Email2,"\" for \"",Name3,"\" has the student number \"",Student_number3,"\"."],String_a),
+ writeln(String_a))
+ ;
+ (length(String02a,Length),
+ Student_number3 is Length+1,
+ append(String02a,[[Name2,Email2,Student_number3]],String02a_a),
+
+ term_to_atom(String02a_a,String02a_b),
+ string_atom(String02a_c,String02a_b),
+
+ (open_s("student_numbers1.txt",write,Stream1),
+%% string_codes(BrDict3),
+ write(Stream1,String02a_c),
+ close(Stream1)),!,
+
+ concat_list(["The email address \"",Email2,"\" for \"",Name2,"\" has the student number \"",Student_number3,"\"."],String_a),
+ writeln(String_a))).
+
+
+course_and_essay_topic1(Course,Essay_topic) :-
+ course_and_essay_topic2([Courses,Essay_topics]),
+ member(Course,Courses),
+ member(Essay_topic,Essay_topics).
+
+course_and_essay_topic2(
+[["Computational English"],
+["Computational English Argument",
+"Computational English is like a Calculator",
+"Intertextuality",
+"Finite Data will be a Solution in Conglish",
+"Radical Difference",
+"Order in Conglish",
+"Dereconstruction",
+"Kolmogorov Hermeneutics",
+"Derivability",
+"The Science of Crossing Over",
+"A New Logic Reflecting Language or Natural Logic" ,
+"Philosophical Computational English",
+"Lenses",
+"Analysing characteristics of arguments",
+"Conglish Reflection",
+"Narratology Diagram",
+"How can the program cope with real variation?" ,
+"Subject Mix",
+"Perspectives",
+"Ratios",
+"Exploring opposites in Hamlet",
+"Drawing connections",
+"Symbols"]]).
+course_and_essay_topic2(
+[["Creating and Helping Pedagogues"],
+["Accreditation",
+"Protectedness",
+"Areas of Study to Create a Pedagogue",
+"Create a pedagogy helper for the student",
+"Finding out about the student as a Pedagogy Helper",
+"Daily Professional Requirement of the Pedagogy Helper",
+"Preparing the student to write each breasoning",
+"Pedagogy Helper - Write on Breasoning - Politics",
+"Pedagogy Helper - Write on Breasoning - Philosophy",
+"Pedagogy Helper - Write on Breasoning - Computer Science",
+"Unification to Become Pedagogy Helper",
+"Practicum",
+"Breason out Arguments Twice When in Large Class",
+"Instructions for using Recordings and Lecturer in Computer Science Recordings",
+"Lecturer",
+"Daily Regimen",
+"Delegate Workloads"]]).
+course_and_essay_topic2(
+[["Fundamentals of Meditation and Meditation Indicators"],
+["Children/H1/Earning Jobs/Protection in Jobs Heads of State",
+"Lucian Mantra (Pure Form)",
+"Lucian Mantra (Sun Safety)",
+"Maharishi Sutra",
+"Meditation Teacher Sutra Moving Appearances Purusha",
+"Upasana Sutra",
+"Yellow God",
+"Green Sutra",
+"Blue Nature",
+"Appearances",
+"Pranayama",
+"Soma",
+"Hours Prayer",
+"50 Breasonings Per Utterance",
+"Lower Risk of Cancer and Other Diseases In Workers and Broadcasters",
+"Decreased Stress",
+"Increased Blood Flow",
+"Increased Brain Potential"]]).
+course_and_essay_topic2(
+
+[["Fundamentals of Pedagogy and Pedagogy Indicators"],
+["Two Uses",
+"X",
+"Y",
+"Breathsonings",
+"Rebreathsonings",
+"Room",
+"Part of Room",
+"Direction",
+"Time to Prepare",
+"Time to Do",
+"Time to Finish",
+"Professor Algorithm",
+"God Algorithm",
+"Marking Scheme - Humanities and Science Marking Scheme - Creative Arts",
+"Higher Grades",
+"Fewer Stillbirths",
+"A Greater Number Of Successful Job Applications"]]).
+course_and_essay_topic2(
+[["Medicine"],
+["Doctor Sutra",
+"Meditation",
+"Protector from Headache in Meditation Currant Bun",
+"Meditation",
+"Panic attack prevented by deep breathing and sutra",
+"Family Medicine",
+"Help ensure successful conception and prevent miscarriage",
+"Pedagogy",
+"Lucianic Pedagogical Medicine",
+"Pedagogy Grades/Failure",
+"Pedagogy Course Plan",
+"Get in Touch with God about Breasonings Details to see High Quality Imagery and Earn H1 250 Breasonings",
+"Preventing Sales from Being Dangerous",
+"Perpetual University Short Courses",
+"Apple Meditation for Successful Relationship",
+"Miscellaneous",
+"4 Glasses of Water and Exercise 45 Minutes Before Breakfast",
+"Go to Bed at 9:30 PM",
+"Yoga",
+"Yoga Surya Namaskara and Yoga Asanas",
+"Prevent Headaches on Train and a Bent Spine",
+"Brain",
+"Brain",
+"Brain II",
+"Maintain Dry Eyes",
+"Avoid Diseased People",
+"Fewer Mental Breakdowns (Schizophrenia)",
+"Less Depression",
+"Honey Pot Prayer for No Headaches in Cars, Trains and Walks",
+"Quantum Box/Prayer",
+"Nut and Bolt",
+"Head of State Head Ache Prevention",
+"Daily Regimen",
+"Laughter for Depression",
+"Heart",
+"Contagious Diseases",
+"Berocca Prevents Colds and Flu",
+"Food",
+"Grains/Nuts/Fruits/Vegetables",
+"Sit Properly at Table During Meals"]]).
+
+course_and_essay_topic3(Courses_and_essay_topics) :-
+ findall(A,(course_and_essay_topic2(A)),Courses_and_essay_topics).
\ No newline at end of file
diff --git a/Lucian-Academy/luciansphilosophy.txt b/Lucian-Academy/luciansphilosophy.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b5247cd7fa8fbcbc8d5ce364247fcc77f66b6de5
--- /dev/null
+++ b/Lucian-Academy/luciansphilosophy.txt
@@ -0,0 +1 @@
+"luciangreen","Lucian-Academy","Automates the Lucian Academy",[["luciangreen","listprologinterpreter"],["luciangreen","Languages"],["luciangreen","culturaltranslationtool"],["luciangreen","Algorithm-Writer-with-Lists"],["luciangreen","Text-to-Breasonings"],["luciangreen","mindreader"]]
\ No newline at end of file
diff --git a/Lucian-Academy/politics_university.txt b/Lucian-Academy/politics_university.txt
new file mode 100644
index 0000000000000000000000000000000000000000..6badb1f6969f3e6cc99e27838d61f1f010d15b54
--- /dev/null
+++ b/Lucian-Academy/politics_university.txt
@@ -0,0 +1,64 @@
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+30
+31
+32
+33
+34
+35
+36
+37
+38
+39
+40
+41
+42
+43
+44
+45
+46
+47
+48
+49
+50
+51
+52
+53
+54
+55
+56
+57
+58
+59
+60
+61
+62
+63
+64
\ No newline at end of file
diff --git a/Lucian-Academy/progress_bar.pl b/Lucian-Academy/progress_bar.pl
new file mode 100644
index 0000000000000000000000000000000000000000..2d1f87e1c97244acb34d955551d22fecbc9155f8
--- /dev/null
+++ b/Lucian-Academy/progress_bar.pl
@@ -0,0 +1,57 @@
+/*
+:- use_module(library(http/thread_httpd)).
+:- use_module(library(http/http_dispatch)).
+:- use_module(library(http/http_error)).
+:- use_module(library(http/html_write)).
+
+% we need this module from the HTTP client library for http_read_data
+:- use_module(library(http/http_client)).
+:- http_handler('/', web_form, []).
+
+:- include('../listprologinterpreter/la_strings.pl').
+
+server(Port) :-
+ http_server(http_dispatch, [port(Port)]).
+
+
+ browse http:localhost:8000
+ This demonstrates handling POST requests
+
+ web_form(_Request) :-
+
+ format('Content-type: text/html~n~n', []),
+
+*/
+progress_bar(Ratio) :-
+%Ratio=1,
+Percentage1 is 100*Ratio,
+Percentage2 is 100-Percentage1,
+
+(Percentage1=0->
+
+concat_list(["Progress: ",Percentage1,"%
+
+
+
+
+
+'.
diff --git a/SSI/ssi-ws.pl b/SSI/ssi-ws.pl
new file mode 100644
index 0000000000000000000000000000000000000000..c51b74a813ba21314dd5581717c9119deb2ac134
--- /dev/null
+++ b/SSI/ssi-ws.pl
@@ -0,0 +1,36 @@
+#!/usr/bin/swipl -f -q
+
+% Place in root directory, check paths below.
+
+% run with swipl ssi-ws.pl in e.g. crontab -e
+
+:- initialization main.
+
+:- use_module(library(http/thread_httpd)).
+:- use_module(library(http/http_dispatch)).
+:- use_module(library(http/http_error)).
+:- use_module(library(http/html_write)).
+
+% we need this module from the HTTP client library for http_read_data
+:- use_module(library(http/http_client)).
+:- http_handler('/', web_form, []).
+
+% GitHub/Algorithm-Writer-with-Lists/
+:- include('GitHub/SSI/ssi.pl').
+
+main :-
+ working_directory(_, 'GitHub/SSI/'),
+
+delete_old_sessions,
+ssi_server(8000),sleep(86390),halt.
+
+main :- halt(1).
+
+%server(Port) :-
+% http_server(http_dispatch, [port(Port)]).
+
+ /*
+ browse http://127.0.0.1:8000/
+ This demonstrates handling POST requests
+ */
+
diff --git a/SSI/ssi.pl b/SSI/ssi.pl
new file mode 100644
index 0000000000000000000000000000000000000000..9c270421f5197b3b76753b2f1e907f99dd17c36c
--- /dev/null
+++ b/SSI/ssi.pl
@@ -0,0 +1,547 @@
+%% ssi.pl
+%% State Saving Interpreter
+%%
+%% Introduces retry in trace
+
+%% convert alg to state machine (sm)
+%% it is a nondeterministic (nd) state machine, i.e. it has forks between parts of the sm if there are nd choices left or it has failed a clause, with backtracking to the last choice point on the line - predicates and clauses are signposted in the sm
+%% predicates, clauses and individual predicate sms
+%% - predicates and clauses sms are separate because the sm goes from one predicate to next x only clauses not predicates sm x predicates sm as well because they are separate but have back-connection origin values that make temporary parts of (a separate) state machine that correspond to level numbers in the trace x there are sm links from ends of predicates to where the predicate was called from
+%% clauses in clauses sms catch fails from previous clauses
+
+%% try without recursion at first
+
+%% x sm not nec, just scope ds with var, (recursive states x) nd states
+%% - can fail predicate that doesn't call another predicate, then try another predicate
+
+%% on if then, goes to other clause if fails, etc.
+
+%% unique number for every line of program
+
+%% line (from command) to rectangle (e.g. predicate)
+
+%% track list for backtracking
+%% 1 predicate number, 1,2 line number or bracketed part, etc.
+%% - failed predicates removed from track list
+%% doesn't need to split predicates in half to turn algorithms into web services
+
+%% a :- b, c. not a:-a.
+%% a(1,1,Result):- Result is 1+1.
+
+/**
+crop down pred from top x just goes to next command
+- sets up antecedant(s) in if, not, or if, brackets backtracks to it
+- x based on states, it continues on from antecedants
+**/
+
+%% find called line
+%% find next line
+%% - go to next numbered line if in brackets, etc.
+%% - if last line of brackets
+%% - if antecedent that is true, ..., vv
+%% if fails, returns to last choice point
+%:-include('listprologinterpreter1listrecursion4.pl'). % enabling these 3 causes a hang on loading
+%:-include('listprologinterpreter3preds5.pl').
+%:-include('grammar.pl').
+%:-include('../../../GitHub/listprologinterpreter/lpiverify4.pl').
+%:-include('ssi_find_state_machine.pl').
+
+%ssi_verify(Debug,N) :-
+% test(N,Query,Functions,Result),
+% ssi(Debug,Query,Functions,Result).
+
+%:-include('interpretstatement3.pl').
+:-include('ssi-api.pl').
+
+:-include('interpretstatement3.pl').
+
+:-include('../listprologinterpreter/listprolog.pl').
+:-include('find_pred_sm.pl').
+:-include('ssi_find_state_machine.pl').
+%:-include('find_types_sm.pl').
+%:-include('go_forward_or_backtrack.pl').
+:-include('ssi3.pl').
+:-include('ssi_verify4_test_lang_all.pl').
+:-include('ssi_verify4.pl').
+:-include('ssi_verify4_types.pl').
+:-include('ssi_verify4_test_bt_lang_all.pl').
+:-include('ssi_verify4_open.pl').
+:-include('ssi_verify4_open_types.pl').
+
+:-include('ssi_listrecursion4.pl').
+:-include('ssi_3preds5.pl').
+:-include('d.pl').
+:-include('e.pl').
+:-include('cp_since_findall_start2.pl').
+:-include('pred_minus_three.pl').
+:-include('pred_minus_one_fail2.pl').
+:-include('flush_after_last_findall').
+:-include('process_cp.pl').
+:-include('end_nested_findall.pl').
+:-include('used_by_call_command.pl').
+:-include('sessions.pl').
+:-include('ssi-api-key.pl').
+%:-include('replace_in_term.pl').
+%:-include('local_and_global_cp_trails.pl').
+:-include('optimisations.pl').
+:-include('only_ssi_verify4.pl').
+:-include('ssi_verify_pl.pl').
+
+:- dynamic debug2/1.
+:- dynamic debug3/1.
+:- dynamic debug4/1.
+:- dynamic retry_back/1.
+:- dynamic retry_back_stack/1.
+:- dynamic retry_back_stack_n/1.
+:- dynamic cumulative_or_current_text/1.
+:- dynamic number_of_current_text/1.
+:- dynamic html_api_maker_or_terminal/1.
+:- dynamic session_number/1.
+
+%:- dynamic screen_text/1.
+%:- dynamic curr_screen_text/1.
+
+:- dynamic pred_numbers/1.
+%:- dynamic curr_cp/1.
+:- dynamic curr_cp_index/1.
+:- dynamic pred_id/1.
+
+:- dynamic types/1.
+:- dynamic typestatements/1.
+:- dynamic modestatements/1.
+
+main2:-
+time((
+only_ssi_test(off,NTotal1,Score1),
+ssi_test_all00("en",off,NTotal2,Score2),
+ssi_test_all00("en2",off,NTotal3,Score3),
+ssi_test_all_bt00("en2",off,NTotal4,Score4),
+writeln(only_ssi_test(off,NTotal1,Score1)),
+writeln(ssi_test_all00("en",off,NTotal2,Score2)),
+writeln(ssi_test_all00("en2",off,NTotal3,Score3)),
+writeln(ssi_test_all_bt00("en2",off,NTotal4,Score4)))).
+%:- dynamic hidden/1.
+
+
+/*
+ssi(Debug,Query,Functions1,Result) :-
+ %load_lang_db, % * check this is done once for whole ssi
+
+ retractall(debug(_)),
+ assertz(debug(Debug)),
+ convert_to_grammar_part1(Functions1,[],Functions2,_),
+ add_line_numbers_to_algorithm1(Functions2,Functions2a),
+ %%writeln1(Functions2a),
+ find_pred_sm(Reserved_words1),%,"en"),
+find_pred_numbers(Functions2a,Reserved_words,Pred_numbers),
+ find_state_machine1(Functions2a,Functions3,Pred_numbers),
+
+ %%writeln1(Functions3),
+ prep_predicate_call(Query,Functions3,
+ All_predicate_numbers),
+ ssi1([1,1,"predicate",Query,[],
+ All_predicate_numbers],Functions3,[],Result,[],_Choice_point_trail).
+
+*/
+
+prep_predicate_call(Query,Functions3,All_predicate_numbers) :-
+
+%writeln(prep_predicate_call(Query,Functions3,All_predicate_numbers)),
+%trace,
+ Query=[Name|Arguments1],
+ (Arguments1=[]->Arguments_length=0;
+ (Arguments1=[Arguments3],
+ length(Arguments3,Arguments_length))),
+ findall(Predicate_number1,
+ (
+
+ %member([Predicate_number1,Name|
+ % [Arguments2|_]],Functions3),
+ %length(Arguments2,Arguments_length)
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("true",Dbw_true1),Dbw_true1=Dbw_true,
+
+ member([Predicate_number1,Name|Rest],Functions3),
+(Rest=[Args,":-",Lines]->length(Args,Arguments_length);
+(Rest=[Args]->(Lines=[[[Dbw_n,Dbw_true]]],length(Args,Arguments_length));
+(Rest=[":-",Lines]->Arguments_length=0;
+(Rest=[],Lines=[[[Dbw_n,Dbw_true]]],Arguments_length=0))))
+
+
+ ),
+ All_predicate_numbers).
+
+add_line_numbers_to_algorithm1(Algorithm1,Algorithm2) :-
+ add_line_numbers_to_algorithm2(Algorithm1,[],Algorithm2,0,_).
+
+add_line_numbers_to_algorithm2([],Algorithm,Algorithm,N,N) :- !.
+add_line_numbers_to_algorithm2(Algorithm1,Algorithm2,Algorithm3,Number1,Number2) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("true",Dbw_true1),Dbw_true1=Dbw_true,
+ Algorithm1=[Function1|Functions],
+ ((Function1=[Name,Arguments1,Symbol1,Body1],symbol(Symbol1,Symbol2),
+ findall(Arguments3,(member(Arguments2,Arguments1),slp2lp_variables(Arguments2,Arguments3)),Arguments4),
+ %Number1a is Number1+1,
+ add_line_numbers_to_algorithm_body2(Body1,Body2,0,_),
+ append(Algorithm2,[[Number1,Name,Arguments4,Symbol2,Body2]],Algorithm4))->true;
+
+ ((Function1=[Name,Symbol1,Body1],symbol(Symbol1,Symbol2),
+
+ %Number1a is Number1+1,
+ add_line_numbers_to_algorithm_body2(Body1,Body2,0,_),
+ append(Algorithm2,[[Number1,Name,[],Symbol2,Body2]],Algorithm4))->true;
+
+ ((Function1=[Name,Arguments1],symbol(":-",Symbol2),
+ findall(Arguments3,(member(Arguments2,Arguments1),slp2lp_variables(Arguments2,Arguments3)),Arguments4),
+
+ add_line_numbers_to_algorithm_body2([[[Dbw_n,Dbw_true]]],Body2,0,_),
+
+append(Algorithm2,[[Number1,Name,Arguments4,Symbol2,Body2]],Algorithm4))->true;
+
+
+ (Function1=[Name],symbol(":-",Symbol2),
+ add_line_numbers_to_algorithm_body2([[[Dbw_n,Dbw_true]]],Body2,0,_),
+
+ append(Algorithm2,[[Number1,Name,[],Symbol2,Body2]],Algorithm4))->true;
+
+ % [":-", [n, include], ['../b/b.pl']]
+ ((Function1=[Symbol2,Name,Arguments1],symbol(":-",Symbol2),
+ findall(Arguments3,(member(Arguments2,Arguments1),slp2lp_variables(Arguments2,Arguments3)),Arguments4),
+
+ add_line_numbers_to_algorithm_body2([[[Dbw_n,Dbw_true]]],Body2,0,_),
+
+append(Algorithm2,[[Number1,Symbol2,Name,Arguments4,Body2]],Algorithm4)))))),
+
+
+ Number1a is Number1+1,
+ %%writeln1([Number1,Name,Arguments4,Symbol2,Body2]),
+ add_line_numbers_to_algorithm2(Functions,Algorithm4,Algorithm3,Number1a,Number2).
+
+
+symbol(Symbol,Symbol) :-!.
+
+%%slp2lp_variables(Name1,[v,Name1]) :- predicate_or_rule_name(Name1),!.
+slp2lp_variables(Name,Name) :- !.
+
+/**
+add_line_numbers_to_algorithm_body(Body1,Body2) :-
+ findall(*,(member(Statement1,Body1
+add_line_numbers_to_algorithm_body(Body1,[],Body2) :-
+
+**/
+
+%%predicate_or_rule_name([A,B]) :- atom(A),is_list(B),!.
+predicate_or_rule_name([V_or_n,_Name]) :- get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+(V_or_n=Dbw_v->true;V_or_n=Dbw_n),!.%%,atom(Name),!.
+%% x: predicate_or_rule_name(V_or_n) :- (V_or_n=v->true;V_or_n=n),fail,!.
+
+add_line_numbers_to_algorithm_body2([],[],N,N):-!.%%,Body3
+
+
+%%add_line_numbers_to_algorithm_body2([],Body,Body) :- !.
+add_line_numbers_to_algorithm_body2(Body1,Body2%%,Body3
+,Number1,Number2) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ Body1=[[Statements1|Statements1a]|Statements2
+ ],
+
+ not(predicate_or_rule_name(Statements1)),
+ Number1a is Number1+1,
+add_line_numbers_to_algorithm_body2([Statements1],Body3,Number1a,Number3), %% 2->1
+
+ add_line_numbers_to_algorithm_body2(Statements1a,Body4,Number3,Number4),
+ add_line_numbers_to_algorithm_body2(Statements2,Body5,Number4,Number2),
+
+%% append([Body3,Body4],Body6),
+%% append([[Body6],Body5],Body2),
+
+ append(Body3,Body4,Body34),
+ Body6=[Number1,[Dbw_n,"[]"],Body34
+ ],
+ append([Body6],Body5,Body2),
+
+ !.
+
+
+
+
+add_line_numbers_to_algorithm_body2(Body1,Body2,Number1,Number2) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+ Body1=[[[Dbw_n,Dbw_not],Statement]|Statements2 %% [] removed from Statement
+ ],
+ Number1a is Number1+1,
+ add_line_numbers_to_algorithm_body2(Statement,Body3,Number1a,Number3),
+ add_line_numbers_to_algorithm_body2(Statements2,Body4,Number3,Number2),
+ %trace,
+ append([Number1,%%*,
+ [Dbw_n,Dbw_not]],Body3,Body5),
+ append([Body5],Body4
+ ,Body2),
+
+ !.
+
+
+
+
+add_line_numbers_to_algorithm_body2(Body1,Body2,Number1,Number2) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+
+ Body1=[[[Dbw_n,Dbw_or],[Statements1,Statements2]]|Statements3],
+ Number1a is Number1+1,
+ add_line_numbers_to_algorithm_body2([Statements1],Body3,Number1a,Number3),
+ add_line_numbers_to_algorithm_body2([Statements2],Body4,Number3,Number4),
+ add_line_numbers_to_algorithm_body2(Statements3,Body5,Number4,Number2),
+ append(Body3,Body4,Body34),
+ Body6=[Number1,[Dbw_n,Dbw_or],Body34
+ ],
+ append([Body6],Body5,Body2),
+ !.
+
+
+add_line_numbers_to_algorithm_body2(Body1,Body2,Number1,Number2) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ Body1=[[[Dbw_n,"->"],[Statements1,Statements2]]|Statements3],
+ Number1a is Number1+1,
+ add_line_numbers_to_algorithm_body2([Statements1],Body3,Number1a,Number3),
+ add_line_numbers_to_algorithm_body2([Statements2],Body4,Number3,Number4),
+
+ add_line_numbers_to_algorithm_body2(Statements3,Body5,Number4,Number2),
+ append(Body3,Body4,Body34),
+ Body6=[Number1,[Dbw_n,"->"],Body34
+ ],
+ append([Body6],Body5,Body2),
+
+ !.
+
+
+
+
+add_line_numbers_to_algorithm_body2(Body1,Body2,Number1,Number2) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ Body1=[[[Dbw_n,"->"],[Statements1,Statements2,Statements2a]]|Statements3],
+ Number1a is Number1+1,
+ add_line_numbers_to_algorithm_body2([Statements1],Body3,Number1a,Number3),
+ add_line_numbers_to_algorithm_body2([Statements2],Body4,Number3,Number4),
+ %%trace,
+ add_line_numbers_to_algorithm_body2([Statements2a],Body5,Number4,Number5),
+ add_line_numbers_to_algorithm_body2(Statements3,Body6,Number5,Number2),
+ append_list2([Body3,Body4,Body5],Body345),
+ Body7=[Number1,[Dbw_n,"->"],Body345],
+ append([Body7],Body6,Body2),
+
+ !.
+
+
+add_line_numbers_to_algorithm_body2(Body1,Body2,Number1,Number2) :-
+ Body1=[Statement|Statements],
+ not(predicate_or_rule_name(Statement)),
+ add_line_numbers_to_algorithm_statement1(Statement,Result1,Number1,Number3),
+ add_line_numbers_to_algorithm_body2(Statements,Result2,Number3,Number2),
+ append_list2([Result1,Result2],Body2),!.
+
+add_line_numbers_to_algorithm_statement1(Statement,Result1,Number1,Number2) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+ ((Statement=[[Dbw_n,Dbw_findall],[Arguments1,Arguments2,Arguments3]],
+ %Arguments=Result2,
+ %trace,
+ Number1a is Number1+1,
+ add_line_numbers_to_algorithm_body2([Arguments2],Body3,Number1a,Number2),
+ %%*** [Arguments2] to Arguments2
+
+%findall(Argument,(member(Argument,Arguments),(predicate_or_rule_name(Argument))),Result2),
+ Result1=[[Number1,[Dbw_n,Dbw_findall],[Arguments1,Arguments3,Body3]]])).
+
+/*
+add_line_numbers_to_algorithm_statement1(Statement,Result1,Number1,Number2) :-
+ ((Statement=[[n,maplist],[Arguments1,Arguments2,Arguments3,Arguments4]],
+ %Arguments=Result2,
+ %trace,
+ Number1a is Number1+1,
+ add_line_numbers_to_algorithm_body2([Arguments1],Body3,Number1a,Number2),
+
+%findall(Argument,(member(Argument,Arguments),(predicate_or_rule_name(Argument))),Result2),
+ Result1=[[Number1,[n,maplist],[Arguments2,Arguments3,Arguments4,Body3]]])).
+ */
+
+add_line_numbers_to_algorithm_statement1(Statement,Result1,Number1,Number2) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+ %(Statement=[[n,cut]]->trace;true),
+
+ ((Statement=[[Dbw_n,Name],Arguments],
+ not(Name=Dbw_findall),
+
+ Arguments=Result2,
+ %findall(Argument,(member(Argument,Arguments),(predicate_or_rule_name(Argument))),Result2),
+ Result1=[[Number1,[Dbw_n,Name],Result2]])->true;
+ (Statement=[[Dbw_n,Name]],
+ Result1=[[Number1,[Dbw_n,Name],[]]])),
+ Number2 is Number1+1.
+
+add_line_numbers_to_algorithm_statement1(Statement,Result1,Number1,Number2) :-
+get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+ ((Statement=[[Dbw_v,Name],Arguments],
+ %not(Name=findall),
+ Arguments=Result2,
+ %findall(Argument,(member(Argument,Arguments),(predicate_or_rule_name(Argument))),Result2),
+ Result1=[[Number1,[Dbw_v,Name],Result2]])->true;
+ (Statement=[[Dbw_v,Name]],
+ Result1=[[Number1,[Dbw_v,Name],[]]])),
+ Number2 is Number1+1.
+
+%%*del:Functions2,
+
+%% *** don't worry about sublevels, just level numbers x
+
+%ssi0
+
+% newer than comments in next section:
+
+% go to types, pred or lines pred
+% - whether this pred determines which to go to, or it is already decided x
+% - * sm connects types at start - no call/exit preds, just goes to next item in sm,
+% - types sm creator - checks types (do non types sm first)
+% - * sm of preds (to clauses from calls, allowing backtracking)
+% - whether need call and exit preds, or do anyway x
+
+/**
+ssi1([Level,Sublevel,"predicate",Query,Predicate_numbers_finished,All_predicate_numbers],Functions1,Result1,Result2,Choice_point_trail1,Choice_point_trail2) :-
+ append(Predicate_numbers_finished,Curr_predicate_queue,All_predicate_numbers),
+ (Curr_predicate_queue=[]->
+
+ (% No other clauses of this predicate to try
+
+ % add to cps
+ append(Choice_point_trail1,[[Level,Sublevel,"predicate",Query,Predicate_numbers_finished,All_predicate_numbers]],Choice_point_trail3),
+
+
+ %call first line
+%*
+
+
+ % when reach last line:
+ %predicate finished, no more results from it
+
+ % if level 1 end x, call prev cp
+
+ %- if not level 1 call prev lev - find var state of last line of prev lev - update vars
+
+ %
+ )
+ ;(
+ % Some clauses of this predicate left to try
+
+ % add to cps
+ % call first line of pred,
+ % when reach last line, call next clause (dup vars *(one list for old results, one for curr results x label var results with cp, *sublevel at least x, also need ()x-predicate and line numbers*), add to new var list, delete cps back to pred call)
+
+ % * var results/cps saved from where began when try each clause, deleted back until and to when trying and failing respectively
+
+ )),
+
+ % * return from call-header to call first line x check types without being called by pred header (do separately)
+ % * check types separately (and call, exit separately) from pred, line (after pred)
+ % when call a pred from a line, use lpi_list_rec find_result etc
+ % * predicates and lines have separate call and exit/fail preds
+% * second sm for types, pred, lines
+
+ % when retries, deletes vars, cps up to and not including that call (*cps have sublevel to delete back until)
+
+
+call_first_line1() :-
+ query_to_vars(),
+
+ Sublevel2 is Sublevel1+1,
+ ssi1([Level,Sublevel2,"line",1, % line number
+ Query*,Predicate_numbers_finished,All_predicate_numbers],Functions1,Result1,Result2,Choice_point_trail1,Choice_point_trail2),
+
+query_to_vars(Query,) :-
+
+
+
+ %****
+
+ find_called_lines(Query,Functions1,Predicate_numbers),
+ ssi_call(Query,Functions1,Predicate_numbers,Result1),
+ true.
+ **/
+ /*
+find_called_lines(Query,Functions1,Predicate_numbers) :-
+ findall(Number1,(Query=[Name|Arguments1],
+ length(Arguments1,Arguments_length),
+ member([Number1,Name|Arguments2],Functions1),
+ (Arguments2=[Arguments3,":-",_Body1]->true;
+ (Arguments2=[":-",_Body2]->Arguments3=[];
+ (Arguments2=[Arguments3]->true;
+ (Arguments2=[]->Arguments3=[])))),
+ length(Arguments3,Arguments_length)),Predicate_numbers).
+
+ssi_call(Query,Functions1,Predicate_numbers,Vars21) :- %% ** added vars21
+ findall(Vars2,(member(Predicate_number,Predicate_numbers),
+ %% *** findall xx
+ member([Predicate_number,_|Arguments2],Functions1),
+
+ Query=[Name|Arguments1], % Name,Arguments1 -> Name|Arguments1
+ %% checktypes_inputs(Name,Arguments1)
+
+ (Arguments2=[Arguments3,":-",Body]->true;
+ (Arguments2=[":-",Body]->Arguments3=[];
+ (Arguments2=[Arguments3]->Body=[];
+ (Arguments2=[]->(Arguments3=[],Body=[]))))),
+
+ checkarguments(Arguments1,Arguments3,[],Vars1,[],FirstArgs),
+
+ %% debug_call(Skip,[Name,Arguments1]),
+
+%% find first line to run, keeping track list of command numbers gone past
+ find_first_line_to_run(Body,Vars1,Vars2)),Vars21),
+ %run_line
+ true.
+%% find called line
+%% find next line
+%% - go to next numbered line if in brackets, etc.
+%% - if last line of brackets
+%% - if antecedent that is true, ..., vv
+%% if fails, returns to last choice point
+
+find_first_line_to_run([],Vars,Vars) :- !.
+*/
+%%find_first_line_to_run(Body,Vars1,Vars2) :-
+
+ %% line 0, - easy to find
+ %% usually for next line finds structure of pred,
+ %% finds next line
+
+%% find_next_line_to_run (Predicate_number,Previous_line_number) :-
+%% Predicate_number= ...
+%% Previous_line_number = -1 if just called the predicate
+
+%% pass nondeterminism, recursion, variable states
+%% exit status of previous line, e.g. fail so backtrack
+
+%% go to line+1 if in body, different if in different body structure, different if in consequent 1 of 2 consequents of statement
+
+%% as goes, record line numbers to go to when reach a line number based on if then, work these out when at start, delete these x
+%% predicate line -2 is return from predicate
+%% later: check for singleton in branch
+
+%% if goes past choice-point (e.g. member, some function calls) add it on to stack
+%% recursion is found as go
+
+/**
+Predicate line
+0 for first line
+-1 if just called the predicate
+-2 to return from predicate
+-3 if failed the predicate
+**/
+/*
+find_next_line_to_run(Predicate_number,-1) :-
+ run(Predicate_number,0),!.
+find_next_line_to_run(Predicate_number,Previous_line_number) :-
+true.
+*/
diff --git a/SSI/ssi3.pl b/SSI/ssi3.pl
new file mode 100644
index 0000000000000000000000000000000000000000..6505c6216806c76a0a7ee4201f8202f47b1d7230
--- /dev/null
+++ b/SSI/ssi3.pl
@@ -0,0 +1,2189 @@
+% test(2,Q,F,R),lucianpl(off,Q,F,R2).
+
+
+/*
+see lpi test 15 for swipl call with enough memory for test 15
+
+numbers(194,1,[],N),findall(N1,(member(N1,N),test(N1,Q,F,R),catch(call_with_time_limit(4,lucianpl(off,Q,F,R)),_,false),writeln(N1)),N2),sort(N2,N3),writeln(N3),length(N3,L),subtract(N,N3,U),writeln(U).
+
+turn leash on in lpi, ssi
+
+turn_save_debug(on),numbers(13,13,[],N),findall(N1,(member(N1,N),test(N1,Q,F,R1),do_saved_debug([]),interpret(on,Q,F,R2),writeln(""),saved_debug(S1),do_saved_debug([]),catch(call_with_time_limit(3,lucianpl(on,Q,F,R3)),_,false),writeln(""),saved_debug(S2),S1=S2,do_saved_debug([]),writeln(N1)),N2),sort(N2,N3),writeln(N3),length(N3,L),subtract(N,N3,U),writeln(U).
+
+NOT:
+turn_save_debug(on),numbers(13,13,[],N),findall(N1,(member(N1,N),test(N1,Q,F,R1),do_saved_debug([]),interpret(on,Q,F,R2),saved_debug(S1),writeln1([s,S1]),writeln(""),do_saved_debug([]),catch(call_with_time_limit(3,lucianpl(on,Q,F,R3)),_,false),saved_debug(S2),writeln([s,S2]),S1=S2,do_saved_debug([]),writeln(N1),writeln("")),N2),sort(N2,N3),writeln(N3),length(N3,L),subtract(N,N3,U),writeln(U).
+
+*/
+
+lucianpl(Debug,Query,Functions1,Result) :-
+ international_lucianpl([lang,"en"],
+ Debug,Query,Functions1,Result).
+
+international_lucianpl([lang,Lang],Debug,Query,Functions1,Result) :-
+ retractall(lang(_)),
+ assertz(lang(Lang)),
+ lucianpl_1(Debug,Query,Functions1,Result).
+
+international_lucianpl([lang,Lang],Debug,Query,TypeStatements,ModeStatements,Functions1,Result) :-
+ retractall(lang(_)),
+ assertz(lang(Lang)),
+ lucianpl_1(Debug,Query,TypeStatements,ModeStatements,Functions1,Result).
+
+
+lucianpl_1(Debug,Query,Functions1,Result) :-
+ retractall(types(_)),
+ assertz(types(off)),
+lucianpl11(Debug,Query,Functions1,Result),!.
+
+lucianpl_1(Debug,Query,TypeStatements,ModeStatements,Functions1,Result) :-
+ retractall(types(_)),
+ assertz(types(on)),
+ retractall(typestatements(_)),
+ findall([A,C],(member([A,B],TypeStatements),expand_types(B,[],C)),TypeStatements1),
+
+assertz(typestatements(TypeStatements1)),
+ retractall(modestatements(_)),
+ assertz(modestatements(ModeStatements)),
+lucianpl11(Debug,Query,Functions1,Result).
+
+lucianpl11(Debug,Query,Functions,Result) :-
+ ((not(lang(_Lang1))
+ %var(Lang1)
+ )->
+ (retractall(lang(_)),
+ assertz(lang("en")));
+ true),
+ load_lang_db,
+ query_box(Query,Query1,Functions,Functions1),
+
+ %writeln1(query_box(Query,Query1,Functions,Functions1)),
+%%writeln1([i1]),
+ %%writeln1(convert_to_grammar_part1(Functions1,[],Functions2,_)),
+ convert_to_grammar_part1(Functions1,[],Functions2,_),
+ %insert_cuts(Functions2a,Functions2),
+
+ %writeln1(convert_to_grammar_part1(Functions1,[],Functions2,_)), %trace,
+ %writeln1(Functions2),
+ %%pp3(Functions2),
+ %%writeln1(lucianpl1(Debug,Query,Functions2,Functions2,Result)),
+ %findall(Result1,
+
+ %trace,
+ add_line_numbers_to_algorithm1(Functions2,Functions2a),
+
+ %writeln1(add_line_numbers_to_algorithm1(Functions2,Functions2a)),
+ %writeln1(Functions2a),
+
+ %find_pred_sm(Reserved_words),%,"en"),
+find_pred_numbers(Functions2a,[]%Reserved_words
+,Pred_numbers),
+
+ retractall(pred_numbers(_)),
+ assertz(pred_numbers(Pred_numbers)),
+%trace,
+ find_state_machine1(Functions2a,Functions3,Pred_numbers),
+
+%writeln1(find_state_machine1(Functions2a,Functions3,Pred_numbers)),
+ % find first predicate
+%trace,
+ prep_predicate_call(Query1,Functions3,
+ All_predicate_numbers),
+
+ lucianpl1(Debug),
+
+ % ssi1([Level, % Trace level
+ % All_predicate_numbers1 % List of instances of this predicate left to call
+ % Predicate_or_line_number, % predicate nor line number in predicate
+ % Destination, % "predicate" or "line"
+ % Query, % Query when Destination="predicate"
+ % Vars, % Input Vars
+ % All_predicate_numbers], % predicates remaining to try at current level - saved in cp trail
+ % End_result, % Result of predicate
+ % Functions, % functions in algorithm
+ % Vars2, % output vars
+ % Result1, Result2, % Initial and cumulative lists of non-deterministic results
+ % Globals1, Globals2, % Initial and cumulative lists of assertz globals
+ % Choice_point_trail1, % Initial and cumulative lists of choice points
+ % Choice_point_trail2, Cpv1, Cpv2)
+ %trace,
+ %trace,
+ findall([All_predicate_numbers0,"prev_pred_id",0],member(All_predicate_numbers0,All_predicate_numbers),All_predicate_numbers01),
+ All_predicate_numbers01=[[All_predicate_numbers1,"prev_pred_id",Prev_pred_id]|All_predicate_numbers2],
+ %trace,
+ ssi1([["prev_pred_id",Prev_pred_id],1,All_predicate_numbers1,-1,"predicate",Query1,[],
+ All_predicate_numbers2],_End_result,Functions3,_Vars2,[],Result1,
+ [],_Globals2,
+ [], _Choice_point_trail2,
+ [[curr_cp,0],[curr_cp_index,0],[global_cp_trail,[]]],_),
+ Result=Result1.
+
+lucianpl1(Debug) :-
+
+ retractall(debug(_)),
+ assertz(debug(Debug)),
+ retractall(cut(_)),
+ assertz(cut(off)),
+
+ %retractall(leash1(_)),
+ %assertz(leash1(off)),
+ %% Should normally be off
+ (not(leash1(_))->(retractall(leash1(_)),assertz(leash1(off)));true),
+
+
+ retractall(sys(_)),
+ assertz(sys(1)),
+ retractall(pred_id(_)),
+ assertz(pred_id(%100%
+ 0
+ )),
+
+ retractall(debug2(_)),
+ retractall(debug3(_)),
+ retractall(debug4(_)),
+ retractall(retry_back(_)),
+ retractall(retry_back_stack(_)),
+ retractall(retry_back_stack_n(_)),
+ retractall(cumulative_or_current_text(_)),
+ retractall(number_of_current_text(_)),
+ %retractall(html_api_maker_or_terminal(_)),
+ %retractall(screen_text(_)),
+ %retractall(curr_screen_text(_)),
+
+ retractall(session_number(_)),
+ assertz(session_number(_)),
+
+ assertz(debug2(off)), % on - displays ssi debug info
+ assertz(debug3(off)), % on - displays level
+ assertz(debug4(off)), % on - displays append cp etc. trace
+ assertz(retry_back(on)), % on - retry/back mode options available in trace mode
+ assertz(retry_back_stack([])), % on - retry/back mode options available in trace mode
+ %assertz(screen_text([])),
+ % assertz(curr_screen_text("")),
+ assertz(retry_back_stack_n(0)),
+ assertz(cumulative_or_current_text(current)),
+ assertz(number_of_current_text(1)),
+ %assertz(html_api_maker_or_terminal(html
+ %terminal
+ %)),
+ (not(save_debug(_))->(retractall(save_debug(_)),assertz(save_debug(off)));true),
+
+(not(equals4(_Equals4))->(retractall(equals4(_)),assertz(equals4(on)));true).
+
+append_retry_back_stack(_Item) :-
+true.
+%trace,
+
+/* find_retry_back_stack_n(N2),
+ retry_back_stack(List1),
+ append(List1,[[N2,Item]],List2),
+ retractall(retry_back_stack(_)),
+ assertz(retry_back_stack(List2)).
+*/
+
+/*
+replace(A,Find,Replace,F) :-
+ split_string(A,Find,Find,B),findall([C,Replace],(member(C,B)),D),maplist(append,[D],[E]),concat_list(E,F),!.
+*/
+
+/*
+print_text :-
+trace,
+ html_api_maker_or_terminal(Html_api_maker_or_terminal),
+ retry_back_stack(Stack),
+ cumulative_or_current_text(Cumulative_or_current_text),
+ (Cumulative_or_current_text=cumulative->
+ findall([Text1,"\n"],member([_,[text,Text1]],Stack),Text2);
+ get_curr_text(Stack,Text2)),
+ term_to_atom(Text2,Text4),
+ %concat_list(Text2,Text4),
+ (Html_api_maker_or_terminal=html->
+ (replace(Text4,"\n"," ",Text3),
+ format(Text3,[]));
+ (Text4=Text3,
+ writeln(Text3))).
+
+get_curr_text(Stack,Text2) :-
+trace,
+ number_of_current_text(N1),
+ ((%member([N1,[_,Text1]],Stack),
+ append(_,[[N1,[_,Text1]]|A],Stack))->true;Text1=[]),
+ findall([Text10,"\n"],member([_,[text,Text10]],[[N1,[_,Text1]]|A]),Text2),
+
+ %flatten(Text2,Text3),
+
+ retry_back_stack_n(N2),
+ retractall(number_of_current_text(_)),
+ assertz(number_of_current_text(N2)).
+*/
+ssi1([_,0,Predicate_number,Line_number,"predicate",Query_a,
+ Vars,All_predicate_numbers], End_result, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail1,
+ Choice_point_trail3,
+ CP_Vars1,CP_Vars2) :-
+
+ append_retry_back_stack([ssi,[[_,0,Predicate_number,Line_number,"predicate",Query_a,
+ Vars,All_predicate_numbers], End_result, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail1,
+ Choice_point_trail3,
+ CP_Vars1,CP_Vars2]]),
+
+
+(( Level=_,
+ %/*
+ (debug2(on)->
+ writeln1(ssi1([_,0,Predicate_number,Line_number,"predicate",Query_a,
+ Vars,All_predicate_numbers], End_result, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail1,
+ Choice_point_trail3,
+ CP_Vars1,CP_Vars2));true),
+ %*/
+
+ %trace,
+ (Line_number = -2 ->
+ (%trace,
+
+ %*****
+
+
+(
+
+%****
+ ((var(Vars)->[Result1]=Result2;
+ append(Result1,[Vars],Result2)),%,
+
+ %save_local_to_global_cp_trail(Choice_point_trail1,Choice_point_trail3,CP_Vars1,CP_Vars2)
+
+ Choice_point_trail1=Choice_point_trail3,
+ CP_Vars1=CP_Vars2
+
+%Choice_point_trail1=Choice_point_trail3
+ )
+ ));
+
+ (Line_number = -3 ->
+
+ (%trace,
+
+ %*****
+ %save_local_to_global_cp_trail(Choice_point_trail1,Choice_point_trail1a,CP_Vars1,CP_Vars1a),
+Choice_point_trail1=Choice_point_trail1a,
+CP_Vars1=CP_Vars1a,
+
+
+
+((
+%writeln(here2),
+ Query2=[_|_],
+
+%writeln("*2"),
+
+get_last_cp_before_n(Choice_point_trail1a,
+ [Pred_id,Level1,Predicate_number2,Line_number2b,Pred_or_line,Query2,Vars4,All_predicate_numbers2],
+ [Cp_a,Cb_b,Pred_id,Level1,Predicate_number2,Line_number2b,Pred_or_line,Query2,Vars4,All_predicate_numbers2],_,
+ CP_Vars1a,CP_Vars3)
+
+%(((Pred_or_line="predicate",not(All_predicate_numbers2=[]))->true;(Pred_or_line="line",All_predicate_numbers2=[_,_,_,_,_,_,Vars2c],not(Vars2c=[]))))
+
+
+
+ )
+->
+
+ (Pred_or_line="predicate"->
+
+ (
+
+ delete_cp(Choice_point_trail1,[Cp_a,Cb_b,Pred_id,Level,Predicate_number2,Line_number2b,Pred_or_line,Query2,Vars4,All_predicate_numbers2],Choice_point_trail12,
+ CP_Vars3,CP_Vars4,_),
+
+All_predicate_numbers2=[All_predicate_numbers3|All_predicate_numbers4],
+
+ All_predicate_numbers3=[All_predicate_numbers31,"prev_pred_id",Prev_pred_id],
+
+
+ %(Line_number2b = ["returns to", _, "pred_id", _] -> (Line_number2b1 = -1,trace) ; Line_number2b1 = Line_number2b),
+
+ ssi1([Prev_pred_id,Level,All_predicate_numbers31,Line_number2b,"predicate",Query2,
+ Vars4,All_predicate_numbers4], End_result,Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail12,
+ Choice_point_trail3,
+ CP_Vars4,CP_Vars2)
+
+);
+
+(Pred_or_line="line" ->
+
+(
+
+delete_until_last_cp(Choice_point_trail1,Choice_point_trail6,D1,AC,CP_Vars3,CP_Vars5),
+
+ (
+ D1=[_,_,Pred_id2,Level11,Predicate_number11,Line_number_a11,"line",-,
+ Vars2d11,Vars2e11],
+
+ ssi1([Pred_id2,Level11,Predicate_number11,Line_number_a11,"line",-,
+ Vars2d11,Vars2e11], End_result, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail6,
+ Choice_point_trail3,["appearance of command",AC],
+ CP_Vars5,CP_Vars2)
+ ))));
+
+%****
+ (Result2=Result1,
+ CP_Vars1a=CP_Vars2,
+ Globals1=Globals2,
+ Choice_point_trail1a=Choice_point_trail3)
+
+
+ ))))
+ )->true;(writeln0([ssi1,0,abort]),
+ %abort%
+ fail%number_string(a,_)%abort
+ )),!.
+
+
+
+ssi1([Pred_id_a1,Level,Predicate_number,Line_number,"predicate",Query_a,
+ Vars,All_predicate_numbers], Result21, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail1,
+ Choice_point_trail3,
+ CP_Vars1,CP_Vars2) :-
+
+
+append_retry_back_stack([ssi,[[Pred_id_a1,Level,Predicate_number,Line_number,"predicate",Query_a,
+ Vars,All_predicate_numbers], Result21, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail1,
+ Choice_point_trail3,
+ CP_Vars1,CP_Vars2]]),
+
+
+(( %writeln([all_predicate_numbers,All_predicate_numbers]),
+
+ (Pred_id_a1=["prev_pred_id",Pred_id1]->true;Pred_id_a1=Pred_id1),
+
+ (debug2(on)->
+writeln1(
+ssi1([Pred_id_a1,Level,Predicate_number,Line_number,"predicate",Query_a,
+ Vars,All_predicate_numbers], Result21, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail1,
+ Choice_point_trail3,
+ CP_Vars1,CP_Vars2));true),
+ %*/
+ ((not(Line_number= -2), not(Line_number= -3))->
+ (Query_a=[Function,Arguments1]->Query_a=Query;
+ ((Query_a=[Function],Query=[Function,[]],Arguments1=[])->true;
+ (Query_a=(-),Query=Query_a)));
+ true),
+
+ (Line_number = -1 % just started
+ ->
+ (%trace,
+
+ ((
+ member([Predicate_number,Function,Arguments2,":-",_Body],Functions),
+ length(Arguments1,Length),
+ length(Arguments2,Length),
+
+(((
+checktypes_inputs(Function,Arguments1),
+
+ %%writeln1(checkarguments(Arguments1,Arguments2,[],Vars1,[],FirstArgs)),
+ %trace,
+ checkarguments(Arguments1,Arguments2,[],Vars3,[],FirstArgs),
+ %notrace,
+
+%writeln1([checkarguments,"Arguments1",Arguments1,"Arguments2",Arguments2,"Vars1",Vars1,"FirstArgs",FirstArgs]),
+ (debug3(on)->
+write0(["L",Level]);true),
+%trace,
+debug_call(Skip,[Function,Arguments1])
+%,notrace
+)
+
+
+),
+
+find_pred_id(Pred_id),
+
+%trace,
+%writeln1([pred_id_chain,Pred_id1,Pred_id]),
+append(Globals1,
+[[[firstargs,Pred_id],FirstArgs],
+[[function,Pred_id],Function],
+[[arguments1,Pred_id],Arguments1],
+[[skip,Pred_id],Skip],
+[[level,Pred_id],Level],
+[[pred_num,Pred_id],Predicate_number]
+],Globals333),
+
+(var(Pred_id1)->Globals333=Globals3;
+append(Globals333,[[pred_id_chain,Pred_id1,Pred_id]],
+Globals3)),
+
+ %get_last_p_before_n(Choice_point_trail1,[_Pred_id_1,_Level_1,[_P1,"prev_pred_id",Predicate_number],-1,"predicate",_46492998,_46493004,[]]],[Cp_a1,Cp_a2|D1],_,CP_Vars31,CP_Vars4),
+
+%trace,
+%(var(Query)->Query=(-);true),
+%/*
+
+/*
+writeln1([*,Choice_point_trail1,[[Pred_id,Level,Predicate_number,-1,"predicate",Query,
+ Vars3,
+ All_predicate_numbers]],Choice_point_trail11,
+ CP_Vars1,CP_Vars3]),
+ */
+
+%/*
+append_cp(Choice_point_trail1,[[Pred_id,Level,Predicate_number,-1,"predicate",Query,
+ Vars3,
+ All_predicate_numbers]],Choice_point_trail11,
+ CP_Vars1,CP_Vars3),
+ %*/
+%%*/
+%Choice_point_trail1=Choice_point_trail11,CP_Vars1=CP_Vars3,
+
+ /*writeln1(["*3",append_cp(Choice_point_trail1,[[Pred_id,Level,Predicate_number,-1,"predicate",Query,
+ Vars3,
+ All_predicate_numbers]],Choice_point_trail11,
+ CP_Vars1,CP_Vars3)]),*/
+ %writeln1(Choice_point_trail11),
+
+ ssi1([Pred_id,Level,Predicate_number,0,"line",-,
+ Vars3,
+ All_predicate_numbers], _, Functions,Vars2, % first Vars1 to Vars, 2nd Vars1 to Vars2
+ Result1, Result2,
+ Globals3,Globals2,
+ Choice_point_trail11,
+ Choice_point_trail3,
+ CP_Vars3,CP_Vars2)
+
+ )->true;
+
+ (%Line_number = -1,
+
+ (debug3(on)->
+write0(["L",Level]);true),
+%trace,
+debug_call(Skip1,[Function,Arguments1]),
+
+ (debug_fail(Skip1,[Function,Arguments1])->true;true), % below instead
+
+ All_predicate_numbers=[Predicate_number_a|All_predicate_numbers2],
+
+ Predicate_number_a=[Predicate_number_a1,"prev_pred_id",Prev_pred_id],
+
+
+ %trace,
+
+ delete_cp_value(Choice_point_trail1,[Predicate_number_a1,"prev_pred_id",Prev_pred_id],Choice_point_trail31,CP_Vars1,CP_Vars21),
+
+ %trace,
+
+ %Pred_id1=["prev_pred_id",Pred_id],
+ %(Pred_id=3->writeln(here4);true),
+
+ssi1([["prev_pred_id",Prev_pred_id],Level,Predicate_number_a1,Line_number,"predicate",Query_a,
+ Vars,All_predicate_numbers2], Result21, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail31,
+ Choice_point_trail3,
+ CP_Vars21,CP_Vars2)
+ ))->true;
+
+ (%trace,
+ Level2 is Level-1,
+ %member([pred_id_chain,PID1,Pred_id1],Globals1),
+ %member([[pred_num,PID1],Predicate_number_c],Globals1),
+
+pred_minus_one_fail2([Pred_id1,Level2,Predicate_number,-3,"predicate",-, % (-) as pred id
+ [],_All_predicate_numbers], Result21,Functions,Vars2,
+ Result1, Result2,%2,
+ Globals1,Globals2,
+ Choice_point_trail1,
+ Choice_point_trail3,
+ CP_Vars1,CP_Vars2))
+ )
+
+
+ );
+
+ (Line_number = -2
+ % true exit from pred
+ ->(
+ (
+ %trace,
+ %delete_cp(Choice_point_trail1,
+ %[_,_,Pred_id1,Level,Predicate_number,_,"predicate"|_],
+ %Choice_point_trail1a,CP_Vars1,CP_Vars1a,_),
+
+ %save_local_to_global_cp_trail(Choice_point_trail1,Choice_point_trail1a,CP_Vars1,CP_Vars1a),
+ Choice_point_trail1=Choice_point_trail1a,
+ CP_Vars1=CP_Vars1a,
+
+ %Choice_point_trail1=Choice_point_trail1a,
+ %CP_Vars1=CP_Vars1a,
+
+ member([[firstargs,Pred_id1],FirstArgs],Globals1),
+
+ member([[arguments1,Pred_id1],Arguments1],Globals1),
+%trace,
+ member([[skip,Pred_id1],Skip],Globals1),
+
+ member([[level,Pred_id1],Level_a],Globals1),
+
+ %delete(Globals1,[[firstargs,Pred_id1],FirstArgs],Globals3)
+ Globals1=Globals3,
+
+ (debug3(on)->
+write0(["L",Level_a]);true),
+
+ debug_fail_fail(Skip),
+%trace,
+ updatevars(FirstArgs,Vars,[],Result),
+ unique1(Result,[],Vars3),
+
+ Pred_id1=Pred_id4,
+
+ get_last_p_before_n(Choice_point_trail1a,[%_,_,
+ Pred_id4,Level1,Predicate_number4,-1,"predicate",[Function,Arguments1], %**
+ Vars9,All_predicate_numbers4],
+ [_,_,Pred_id4,Level1,Predicate_number4,-1,"predicate",[Function,Arguments1], %**
+ Vars9,All_predicate_numbers4],_%Choice_point_trail5
+ ,
+ CP_Vars1a,CP_Vars3),
+
+ Choice_point_trail1a=Choice_point_trail2,
+ CP_Vars3=CP_Vars41,
+
+ %trace,
+ /*
+ delete_cp(Choice_point_trail1,[_,_,
+ Pred_id4,Level1,Predicate_number4,-1,"predicate",[Function,Arguments1], %**
+ Vars9,All_predicate_numbers4],Choice_point_trail2,
+ CP_Vars3,CP_Vars41,_),
+ */
+
+
+ /*
+ trace,writeln1(["here1:",%_,_,
+ Pred_id4,Level1,Predicate_number4,-1,"predicate",[Function,Arguments1], %**
+ Vars9,All_predicate_numbers4]),
+ */
+%trace,
+ findresult3(Arguments1,Vars3,[],Result22),
+
+ %trace,
+ (debug3(on)->
+write0(["L",Level_a]);true),
+%notrace,
+ debug_exit(Skip,[Function,Result22]), % return result21
+ checktypes(Function,Result22),
+
+ ((not(Level_a=0))->(
+ Level2 is Level-1,
+
+ (Level2 = 0 ->
+
+ %trace,
+ (
+
+ssi1([_,0,_Predicate_number,-2,"predicate",_Query_a,
+ Vars3,_All_predicate_numbers], _Result21, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail2,
+ Choice_point_trail3,
+ CP_Vars41,CP_Vars2));
+
+ (%trace,
+
+%writeln1([globals3,Globals3]),
+member([pred_id_chain,PID1,Pred_id1],Globals3),
+%trace,
+ get_last_p_before_n(Choice_point_trail2,
+ [PID1,Level3,Predicate_number2,Line_number2b,"predicate",Query2,Vars4,All_predicate_numbers2],
+ [_Cp_a,_Cb_b,PID1,Level3,Predicate_number2,Line_number2b,"predicate",Query2,Vars4,All_predicate_numbers2],_,
+ CP_Vars41,CP_Vars42),
+
+ %delete_cp(Choice_point_trail2,[_Cp_a,_Cb_b,PID1,Level3,Predicate_number2,Line_number2b,"predicate",Query2,Vars4,All_predicate_numbers2],Choice_point_trail2a,CP_Vars42,CP_Vars4,_),
+Choice_point_trail2=Choice_point_trail2a,CP_Vars42=CP_Vars4,
+
+
+ (Line_number2b=["returns to",
+ Line_number3,"pred_id",Pred_id3]
+ ->
+ (
+member([[pred_num,Pred_id3],Predicate_number2],Globals3),
+
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("true",Dbw_true1),Dbw_true1=Dbw_true,
+
+member([Predicate_number2,_F|Rest],Functions),
+(Rest=[_Args,":-",Lines]->true;
+(Rest=[_Args]->Lines=[[[Dbw_n,Dbw_true]]];
+(Rest=[":-",Lines];
+(Rest=[],Lines=[[[Dbw_n,Dbw_true]]])))),
+
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+
+
+ member([Line_number3,[Dbw_on_true,A],[Dbw_go_after,_B],[Dbw_on_false,_C],[Dbw_go_to_predicates,_D]|_Line],Lines),
+A=Line_number2a,
+%trace,
+ reverse(Globals1,Globals33),
+
+ member([[firstargs_uv2,Pred_id3],FirstArgs1],Globals33),
+%trace,
+%writeln1([globals33,Globals33]),
+ Globals33=Globals43,
+
+ member([[vars1,Pred_id3],Vars11],Globals43),
+
+ Globals43=Globals212,
+
+reverse(Globals212,_Globals22),
+
+ updatevars2(FirstArgs1,Vars3,[],Vars5),
+ (var(Vars11)->(Vars11=[]%,trace
+ );true),
+ updatevars3(Vars11,Vars5,Vars6),
+ reverse(Vars6,[],Vars7),
+ ((not(Vars7=[])->
+ (
+ unique1(Vars7,[],Vars8)
+ )
+);(
+ Vars8=[])),
+
+ Vars8=Vars44 %% 4 not 2? ***
+)
+;
+
+(Line_number2a=Line_number2b
+%,
+%,Level_x=Level2
+%Vars44=Vars3
+
+)), % Line_number2 to 2b
+
+ %trace,
+ ssi1([PID1,Level2,Predicate_number2,Line_number2a,"line",-,
+ Vars44,All_predicate_numbers2], _, Functions,Vars2,
+ Result1, Result2,
+ Globals3,Globals2,
+ Choice_point_trail2a,
+ Choice_point_trail3,
+ CP_Vars4,CP_Vars2)
+
+ )))))
+->true;
+ (
+ ssi1([Pred_id_a1,Level,Predicate_number,-3%Line_number
+ ,"predicate",Query_a,
+ Vars,All_predicate_numbers], Result21, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail1,
+ Choice_point_trail3,
+ CP_Vars1,CP_Vars2)
+
+ )
+)
+ %));
+ ;
+ (Line_number = -3
+ % fail exit from pred
+ ->(
+
+ %save_local_to_global_cp_trail(Choice_point_trail1,Choice_point_trail1a,CP_Vars1,CP_Vars1a),
+ Choice_point_trail1=Choice_point_trail1a,
+ CP_Vars1=CP_Vars1a,
+
+
+pred_minus_three([Pred_id_a1,Level,Predicate_number,Line_number,"predicate",Query_a,
+ Vars,All_predicate_numbers], Result21, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail1a,
+ Choice_point_trail3,
+ CP_Vars1a,CP_Vars2)
+
+ ))))
+
+ )->true;(writeln0([ssi1,predicate,abort]),
+ %abort%
+ fail
+ %number_string(a,_)%abort
+ )),!.
+
+
+
+
+ssi1([Pred_id,Level,Predicate_number,Line_number_a,"line",Query,
+ Vars1,All_predicate_numbers], _, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail1,
+ Choice_point_trail3,
+ CP_Vars1,CP_Vars2) :-
+
+ssi1([Pred_id,Level,Predicate_number,Line_number_a,"line",Query,
+ Vars1,All_predicate_numbers], _, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail1,
+ Choice_point_trail3,["appearance of command",-],
+ CP_Vars1,CP_Vars2).
+
+ssi1([Pred_id,Level,Predicate_number,Line_number_a,"line",Query,
+ Vars1,All_predicate_numbers], _, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail1,
+ Choice_point_trail3,["appearance of command",AC],
+ CP_Vars1,CP_Vars2) :-
+
+append_retry_back_stack([ssi,[[Pred_id,Level,Predicate_number,Line_number_a,"line",Query,
+ Vars1,All_predicate_numbers], _, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail1,
+ Choice_point_trail3,["appearance of command",AC],
+ CP_Vars1,CP_Vars2]]),
+ %/*
+
+(( %writeln([all_predicate_numbers,All_predicate_numbers]),
+ (debug2(on)->
+writeln1(
+ ssi1([Pred_id,Level,Predicate_number,Line_number_a,"line",Query,
+ Vars1,All_predicate_numbers], _, Functions,Vars2,
+ Result1, Result2,
+ Globals1,Globals2,
+ Choice_point_trail1,
+ Choice_point_trail3,["appearance of command",AC],
+ CP_Vars1,CP_Vars2));true),
+
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("true",Dbw_true1),Dbw_true1=Dbw_true,
+
+
+member([Predicate_number,_F|Rest],Functions),
+(Rest=[_Args,":-",Lines]->true;
+(Rest=[_Args]->Lines=[[[Dbw_n,Dbw_true]]];
+(Rest=[":-",Lines];
+(Rest=[],Lines=[[[Dbw_n,Dbw_true]]])))),
+
+(%trace,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+
+%trace,
+return_to_last_non_end_function(Line_number_a,Lines,Line_number_b,[Dbw_on_true,A],[Dbw_go_after,B],[Dbw_on_false,C],[Dbw_go_to_predicates,D],Line,Globals1,Pred_id,Line_number_a,FA,(-),End_line42)
+
+,(debug2(on)->writeln1([*,return_to_last_non_end_function(Line_number_a,Lines,Line_number_b,[Dbw_on_true,A],[Dbw_go_after,B],[Dbw_on_false,C],[Dbw_go_to_predicates,D],Line,Globals1,Pred_id,Line_number_a,FA,(-),End_line42)]);true)
+
+),
+
+
+((%trace,((
+not(Line_number_b= -2),not(Line_number_b= -3),
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+
+Line=[[Dbw_n,Dbw_findall],[S1,S2]])->
+
+(%trace,
+%trace,
+%writeln([here_ln,Line_number_a,Line_number_b]),
+append_cp(Choice_point_trail1,[[Pred_id,Level,Predicate_number,Line_number_b,"findall",-,
+ [old_vars,Vars1],[findall_vars,[]],[format_vars,S1],
+ [result_var,S2]]],Choice_point_trail1e,
+ CP_Vars1,CP_Vars3)
+
+
+);
+(Choice_point_trail1=Choice_point_trail1e,
+CP_Vars1=CP_Vars3)
+),
+
+%(Pred_id=1->trace;true),
+
+del_append(Globals1,[[[vars1,Pred_id],Vars1]],Globals3),
+
+ ((get_lang_word("findall_exit_function",Dbw_findall_exit_function1),Dbw_findall_exit_function1=Dbw_findall_exit_function,
+get_lang_word("findall_fail_function",Dbw_findall_fail_function1),Dbw_findall_fail_function1=Dbw_findall_fail_function,
+
+
+ (Line_number_b=[Dbw_findall_exit_function,Findall_end_line]->true;
+ Line_number_b=[Dbw_findall_fail_function,Findall_end_line])
+ %,trace
+ %writeln(here0)
+ )->
+
+ ((
+
+%trace,
+
+cp_since_findall_start(Choice_point_trail1e,Level,_D10,E1,D1,CP_Vars3,CP_Vars31)
+ %writeln1(cp_since_findall_start(Choice_point_trail1e,Level,D1,E1,CP_Vars3,CP_Vars31))
+ )->
+ (
+%trace,
+
+%cut_cps_if_necessary1(Pred_id,Choice_point_trail1e,Choice_point_trail1f,CP_Vars31,CP_Vars311,Predicate_number,Globals3),
+
+ process_cp(Findall_end_line,FA,D1,E1,
+
+_,
+
+Vars1,
+ _End_result, Functions,Vars2, %% CPVs here?**** CPV0,CPV to CPV1,CPV2
+ Result1, Result2,
+ Globals3,Globals2,
+ Choice_point_trail1e,
+ Choice_point_trail3,
+ CP_Vars31,CP_Vars2)
+ );
+
+ (
+ %trace,
+ %cut_cps_if_necessary1(Pred_id,Choice_point_trail1e,Choice_point_trail1f,CP_Vars3,CP_Vars311,Predicate_number,Globals3),
+
+%clear_cps(Choice_point_trail1e,Choice_point_trail1f,CP_Vars3,CP_Vars3a),
+
+Choice_point_trail1e=Choice_point_trail1f,
+
+CP_Vars3=CP_Vars3a,
+ %writeln(here2),
+ end_nested_findall(FA
+ ,Pred_id,Level,Predicate_number,Line_number_b,Choice_point_trail1f,Choice_point_trail3,Vars1,Vars2,CP_Vars3a,CP_Vars2,Functions,Globals3,Globals2,Result1, Result2,End_line42)
+
+));
+%Level32 is Level-1,
+ ((Line_number_b= -1 -> true;(Line_number_b= -2 ->true;Line_number_b= -3))->
+ %trace,
+
+ ((Line_number_b= -3)->
+
+ e(Pred_id,Level,Predicate_number,Vars1,_End_result,Functions,Vars2,Result1, Result2,
+ Globals3,Globals2,
+ Choice_point_trail1e,
+ Choice_point_trail3,
+ CP_Vars3,CP_Vars2
+ );
+
+ (%trace,
+ ssi1([Pred_id,Level, %*
+ Predicate_number,Line_number_b,"predicate",Query,
+ Vars1,All_predicate_numbers], _End_result, Functions,Vars2,
+ Result1, Result2,
+ Globals3,Globals2,
+ Choice_point_trail1e,
+ Choice_point_trail3,
+ CP_Vars3,CP_Vars2)));
+
+
+ ( %(trace,
+ %not(D='-')
+ (((%trace,
+ D=[_|_])-> true;(D=(*),get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,Line=[Function,Arguments],Function=[Dbw_v,_Function2],%,not(reserved_word2(Function2))
+
+append([Function],Arguments,Arguments1),
+ substitutevarsA1(Arguments1,Vars1,[],Vars3,[],FirstArgs),
+
+ append(Globals3,[[[firstargs_uv2,Pred_id],FirstArgs]],Globals31),
+ del_append(Globals31,[[[vars1,Pred_id],Vars1]],_Globals32),
+
+ Vars3=[Function1|Vars31],
+ _Query2=[Function1,Vars31],
+ pred_numbers(Pred_numbers),length(Arguments,Arity1),member([Function1,Arity1,_Pred_numbers1],Pred_numbers)))
+ ) ->
+
+(d(Pred_id,D,Level,Predicate_number,Line_number_b,Query,Vars1,Vars2,All_predicate_numbers,Line,Choice_point_trail1e,Globals3,Functions,Result1, Result2,Globals2,Choice_point_trail3,CP_Vars3,CP_Vars2));
+
+((get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ get_lang_word("cut",Dbw_cut1),Dbw_cut1=Dbw_cut,
+ %writeln1([line,Line]),
+
+ Line=[[Dbw_n,Dbw_cut],[]]) ->
+ %trace,
+ (cut_cps(Choice_point_trail1e,Choice_point_trail11,CP_Vars3,CP_Vars4,Pred_id,Predicate_number,Globals3),
+
+ %writeln1(cut_cps(Choice_point_trail1e,Choice_point_trail11,CP_Vars3,CP_Vars4,Pred_id,Predicate_number,Globals3)),
+
+ ssi1([Pred_id,Level,Predicate_number,A,"line",Query,
+ Vars1,All_predicate_numbers], _End_result3, Functions,Vars2,
+ Result1, Result2,
+ Globals3,Globals2,
+ Choice_point_trail11,
+ Choice_point_trail3,
+ CP_Vars4,CP_Vars2)
+
+ );
+
+ (((%trace,
+ get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ %trace,
+ get_lang_word("read_string",Dbw_read_string1),get_lang_word("read_password",Dbw_read_string2),
+ get_lang_word("text_area",Dbw_read_string3),
+ %writeln1([Dbw_read_string1,Dbw_read_string2]),
+ %trace,
+ %Dbw_read_string1=Dbw_read_string->true;Dbw_read_string2=Dbw_read_string),
+ %trace,
+ %writeln1([line,Line]),
+
+ ((Line=[[Dbw_n,Dbw_read_string1],[Variable1]],
+ Dbw_read_string1=Dbw_read_string)->true;
+ (Line=[[Dbw_n,Dbw_read_string2],[Variable1]],
+ Dbw_read_string2=Dbw_read_string);
+ (Line=[[Dbw_n,Dbw_read_string3],[Variable1,Variable2,Variable3]],
+ Dbw_read_string3=Dbw_read_string)),
+
+ %true%
+ html_api_maker_or_terminal(html
+ )
+ )->
+
+ (
+ %trace,
+ % if html, output web form code, stop
+ % () if api maker,
+ % if terminal, use ssi read string below
+
+ %interpretpart(read_string1,Variable1,Vars1,Vars3)
+
+
+/*
+ (var(Skip)->Globals3=Globals4;
+ append(Globals3,[[[skip,Pred_id,Line_number_b],Skip]],Globals4)),
+
+ (%trace,
+ Vars2c=[]->(Choice_point_trail1e=Choice_point_trail11,
+ CP_Vars3=CP_Vars4);
+ append_cp(Choice_point_trail1e,[[Pred_id,Level,Predicate_number,Line_number_a,"line",_,
+ Vars3,Vars2c]],Choice_point_trail11,CP_Vars3,CP_Vars4)),
+*/
+
+getvalue(Variable1,Value1,Vars1),
+
+(Dbw_read_string3=Dbw_read_string->
+(getvalue(Variable2,Value2,Vars1),
+getvalue(Variable3,Value3,Vars1),
+debug_call(Skip,[[Dbw_n,Dbw_read_string3],[Value1,Value2,variable]]));
+% text area
+
+(debug_call(Skip,[[Dbw_n,Dbw_read_string],[variable]]))),
+
+
+lang(Lang),
+
+debug2(Debug2),
+debug3(Debug3),
+debug4(Debug4),
+retry_back(Retry_back),
+retry_back_stack(Retry_back_stack),
+retry_back_stack_n(Retry_back_stack_n),
+cumulative_or_current_text(Cumulative_or_current_text),
+number_of_current_text(Number_of_current_text),
+html_api_maker_or_terminal(Html_api_maker_or_terminal),
+pred_numbers(Pred_numbers),
+%curr_cp_index(Curr_cp_index),
+%trace,
+%*pred_id(Pred_id),
+%writeln([Pred_id,pred_id(Pred_id_a)]),
+pred_id(Pred_id_a),
+(true%pred_id(Pred_id)
+->true;(writeln([Pred_id,pred_id(Pred_id_a)]),fail)),
+(types(Types)->true;(writeln(types),fail)),
+(types(on)->
+(typestatements(Typestatements),
+modestatements(Modestatements));true),
+%writeln(1),
+session_number(Session_number),
+%retractall(hidden(Hidden)),
+%writeln(2),
+
+%assertz(hidden(
+Hidden=Session_number,
+
+%writeln(3),
+
+(Dbw_read_string3=Dbw_read_string-> %text area
+(Value1A=Value3,Variable1A=Variable3);
+(Value1A=Value1,Variable1A=Variable1)),
+
+Hidden3=[Dbw_n,Dbw_read_string,Value1A,Variable1A,Line_number_b,Skip,lang(Lang),
+
+debug2(Debug2),
+debug3(Debug3),
+debug4(Debug4),
+retry_back(Retry_back),
+retry_back_stack(Retry_back_stack),
+retry_back_stack_n(Retry_back_stack_n),
+cumulative_or_current_text(Cumulative_or_current_text),
+number_of_current_text(Number_of_current_text),
+html_api_maker_or_terminal(Html_api_maker_or_terminal),
+pred_numbers(Pred_numbers),
+pred_id(Pred_id_a),
+types(Types),
+typestatements(Typestatements),
+modestatements(Modestatements),
+
+
+ ssi1([Pred_id,Level,Predicate_number,A,"line",Query,
+ Vars1,All_predicate_numbers], _End_result3, Functions,Vars2,
+ Result1, Result2,
+ Globals3,Globals2,
+ Choice_point_trail1e,
+ Choice_point_trail3,
+ CP_Vars3,CP_Vars2),
+
+ ssi1([C,"line",Query,Vars1])],
+
+%writeln(4),
+
+save_session(Session_number,Hidden3),
+
+%writeln(5),
+
+ %print_text,
+
+ %trace,
+ term_to_atom(Hidden,Hidden1),
+
+ replace_new(Hidden1,"\"",""",Hidden2),
+ %replace_new(Hidden2,"\'","\'\'",Hidden3),
+
+ %writeln1([Dbw_read_string=Dbw_read_string2]),
+
+ %writeln1(["*1",Dbw_read_string=Dbw_read_string2]),
+
+
+
+ (Dbw_read_string=Dbw_read_string2 % read_password
+ ->
+ Form_input="password";
+
+ Form_input="text"),
+
+
+ (Dbw_read_string=Dbw_read_string3 % text_area
+ ->
+ concat_list([""],CL1);
+
+ concat_list([""],CL1)),
+
+
+ concat_list(["
+
+
+"],Form_text1),
+
+/*'",
+ 'a',
+ %,
+ "'
+ */
+
+atom_string(Form_text,Form_text1),
+
+ %format(Hidden1,[]),
+
+ format(Form_text,[])
+
+
+
+ )
+
+ );
+
+ (%trace,
+ ((
+
+ (not((get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ get_lang_word("read_string",Dbw_read_string1),get_lang_word("read_password",Dbw_read_string2),Dbw_read_string1=Dbw_read_string,Dbw_read_string2=Dbw_read_string,
+ %writeln1([line,Line]),
+
+ Line=[[Dbw_n,Dbw_read_string],[Variable1]],
+
+ html_api_maker_or_terminal(html)
+ ))),
+
+ ((%trace,
+ AC=(-)) ->
+
+ (%writeln1(interpretstatement2(ssi,Functions,Functions,Line,Vars1,Vars3,_Result21,_Cut,Vars2c)),
+ interpretstatement2(ssi,Functions,Functions,Line,Vars1,Vars3,_Result21,_Cut,Vars2c,Skip));
+ (%trace,
+ interpretstatement2(ssi,Functions,Functions,Line,Vars1,Vars3,_Result21,_Cut,Vars2c,AC,Skip)))
+ )
+ % choose certain commands from lpi for ssi, rest customised
+
+ ->
+
+ % if triggers end_function (meaning the end of an if-then clause), writes trace display and goes to "go after" line at start of function
+
+ % end_function is given with line number to signal the end of the if-then statement etc.
+ % -2 line number for end of predicate, -3 for failed predicate - earlier
+
+ % n.b. findall, maplist (x not in new shell, with different end_function) need other code expansion in sm - with call, new shell
+ % also type check in new shell, separate from alg
+ % iso commands need to be done like c
+
+ % - do bagof, setof later
+ (
+
+ (var(Skip)->Globals3=Globals4;
+ (
+ %writeln1([append,[skip,Pred_id,Line_number_b],Skip]),
+ append(Globals3,[[[skip,Pred_id,Line_number_b],Skip]],Globals4))),
+
+ (%trace,
+ Vars2c=[]->(Choice_point_trail1e=Choice_point_trail11,
+ CP_Vars3=CP_Vars4);
+ (%trace,
+ append_cp(Choice_point_trail1e,[[Pred_id,Level,Predicate_number,Line_number_a,"line",_,
+ Vars3,Vars2c]],Choice_point_trail11,CP_Vars3,CP_Vars4))),
+
+ ssi1([Pred_id,Level,Predicate_number,A,"line",Query,
+ Vars3,All_predicate_numbers], _End_result3, Functions,Vars2,
+ Result1, Result2,
+ Globals4,Globals2,
+ Choice_point_trail11,
+ Choice_point_trail3,
+ CP_Vars4,CP_Vars2)
+ )
+
+ ;
+ (%trace,
+
+ ssi1([Pred_id,Level,Predicate_number,C,"line",Query,
+ Vars1,All_predicate_numbers], _End_result4, Functions,Vars2,
+ Result1, Result2,
+ Globals3,Globals2,
+ Choice_point_trail1e,
+ Choice_point_trail3,
+ CP_Vars3,CP_Vars2))))))))) )->true;(writeln0([ssi1,line,abort]),
+ %abort%
+ fail%number_string(a,_)%abort
+ )),!.
+
+
+
+% t or f
+% return true or false result from pred
+
+
+interpretstatement2(ssi,Functions,Functions,Line,Vars2,Vars3,Result21,Cut,_,Skip) :-
+ %false.
+ interpretstatement3(ssi,Functions,Functions,Line,Vars2,Vars3,Result21,Cut,_,Skip).
+
+interpretstatement2(ssi,Functions,Functions,Line,Vars2,Vars3,Result21,_Cut1,Vars2c,_Skip) :-
+ %writeln1(interpretstatement2(Functions,Functions,Line,Vars2,Vars3,Result21,_Cut1)),
+ %false.%
+ interpretstatement1(ssi,Functions,Functions,Line,Vars2,Vars3,Result21,_Cut,Vars2c).
+
+interpretstatement2(ssi,Functions,Functions,Line,Vars2,Vars3,Result21,Cut,_,AC,_Skip) :-
+%trace,
+ interpretstatement4(ssi,Functions,Functions,Line,Vars2,Vars3,Result21,Cut,_,AC).
+
+
+delete_until_last_cp(Choice_point_trail1,Choice_point_trail2,D1,AC
+%,Vars3
+,CP_Vars1,CP_Vars2) :-
+(delete_until_last_cp0(Choice_point_trail1,Choice_point_trail2,D1,AC
+%,Vars3
+,CP_Vars1,CP_Vars2)->true
+%writeln1(delete_until_last_cp0(Choice_point_trail1,Choice_point_trail2,D1,AC
+%,Vars3,CP_Vars1,CP_Vars2))
+;
+(writeln1(delete_until_last_cp0(Choice_point_trail1,Choice_point_trail2,D1,AC
+%,Vars3
+,CP_Vars1,CP_Vars2)),abort)),!.
+
+delete_until_last_cp0(Choice_point_trail1,Choice_point_trail2,D1,AC
+%,Vars3
+,CP_Vars1,CP_Vars2) :-
+%trace,
+%writeln(here4),
+
+ get_last_p_before_n(Choice_point_trail1,
+ [Pred_id,Level,Predicate_number,Line_number_a,"line",_,
+ Vars3,Vars2c],
+ D2,D,CP_Vars1,CP_Vars3),
+
+ D=[Pred_id,Level,Predicate_number,Line_number_a,"line",_,
+ Vars3,Vars2c],
+ %trace,
+ D2=[Cp_a,Cp_b|D],
+
+ %(Vars2c=[]->fail;
+ Vars2c=Vars2e,
+((%trace,
+ Vars2e=[[Dbw_n,Dbw_member],[Value1,Value2],_,_,_,_%[Value1a,Value2a]
+ ,Vars2e1],
+ (Vars2e1=[]->fail;
+ (Vars2e1=[Vars2e2|Vars2e3],
+ %(findall(Vars2f1,(member([Vars2f1,_],Vars2e2)),Vars2f),
+ findall(AC1,(member(AC1,Vars2e2)),AC2), % *** x ac2=Vars2e2
+ %trace,
+ Vars2e2=[Value4,_],
+ %findall(AC3,(member([_,AC3],Vars2e2)),AC4),
+ Vars2e2=[_,Value5a],%,Value2a
+ %|_],
+
+ AC=[[Dbw_n,Dbw_member],[Value1,Value2],Value5a,Value4,Vars2e3])))->true;
+
+
+
+
+ (%trace,
+ Vars2e=[[Dbw_n,Dbw_member],[Value1,Value2,Value3],_,_,_,_%[Value1a,Value2a]
+ ,Vars2e1],
+ (Vars2e1=[]->fail;
+ (Vars2e1=[Vars2e2|Vars2e3],
+ %(findall(Vars2f1,(member([Vars2f1,_],Vars2e2)),Vars2f),
+ findall(AC1,(member(AC1,Vars2e2)),AC2), % *** x ac2=Vars2e2
+ %trace,
+ Vars2e2=[Value4,_],
+ %findall(AC3,(member([_,AC3],Vars2e2)),AC4),
+ Vars2e2=[_,Value5a],%,Value2a
+ %|_],
+
+ AC=[[Dbw_n,Dbw_member],[Value1,Value2,Value3],Value5a,Value4,Vars2e3])))), % Vars2e3->Vars2e1
+
+
+ D10=[Pred_id,Level,Predicate_number,Line_number_a,"line",-,
+ AC2,%Vars2f,
+ AC],
+
+ D1=[Cp_a,Cp_b|D10]
+
+
+ ,
+
+ %get_later_cps_than_cp(Choice_point_trail1,D2,C1),
+ %subtract(C1,D2,C2),
+
+ %save_local_to_global_cp_trail(Choice_point_trail1,[],CP_Vars3,CP_Vars3b),
+
+ %load_local_from_global_cp_trail(Pred_id,%Choice_point_trail1,
+%Choice_point_trail2a,CP_Vars3b,CP_Vars3a),
+ Choice_point_trail1=Choice_point_trail2a,
+ CP_Vars3=CP_Vars3a,
+
+delete_cp(Choice_point_trail2a,D2,Choice_point_trail3,CP_Vars3a,CP_Vars4,_),
+ append_cp(Choice_point_trail3,[D10],Choice_point_trail2,CP_Vars4,CP_Vars2),
+ %set(curr_cp,Cp_a), %% * try without this
+ %reverse(C1,Choice_point_trail2),
+ %trace,writeln([D1,AC]),
+ !.
+
+% get earlier arg2=[cba,cpb|_]
+% D1= no cpa cpb
+% B=list cpa cpb of cps
+
+% cp since arg2= no cpa cpb
+% arg3= cpa cpb_
+% E1= no cpa cpb
+
+cp_since_findall_start(Choice_point_trail1,_Level,D1,E1,D11,CP_Vars1,CP_Vars2) :-
+%trace,
+ CP_Vars1=CP_Vars2,
+ %trace,
+
+reverse(Choice_point_trail1,Choice_point_trail14),
+ member_cut1([A1,A2,A_Pred_id,A_Level,A_Predicate_number,A_Line_number_a,"findall",A3|A4],Choice_point_trail14),
+ D11=[A_Pred_id,A_Level,A_Predicate_number,A_Line_number_a,"findall",A3|A4],
+ %writeln1(cp_since_findall_start(Choice_point_trail1,Level,D1,E1)),
+ get_later_cps_than_cp11(Choice_point_trail1,
+ [A1,A2,A_Pred_id,A_Level,A_Predicate_number,A_Line_number_a,"findall",A3|A4],
+ D1,B),
+
+ reverse(B,B1),
+
+ %D1=[_Pred_id,Level,_Predicate_number,_Line_number_a,"findall",-|_],
+ %member([_,_|D1],Choice_point_trail1),
+
+ member([_A,_B2,C,D_Level
+ %2
+ ,E_Predicate_number2,F_Line_number_a2,Pred_or_line,H,I,All_predicate_numbers2],B1),
+
+ not(F_Line_number_a2=["returns to", _, "pred_id", _]),
+
+%not(var(H)),
+ E1=[C,D_Level
+ %2
+ ,E_Predicate_number2,F_Line_number_a2,Pred_or_line,H,I,All_predicate_numbers2],
+
+ /*cp_since_findall_start2(
+ %get_last_p_before_n(
+ B,
+ [_,Level
+ %2
+ ,_Predicate_number2,_Line_number_a2,Pred_or_line,_,_,All_predicate_numbers2],_,E1,CP_Vars1,CP_Vars2),
+ */
+
+
+ (Pred_or_line="line"->
+ (All_predicate_numbers2=[_,_,_,_,_,
+ _,Vars2c],not(Vars2c=[]));
+ Pred_or_line="predicate"->
+ not(All_predicate_numbers2=[]))%)
+
+ .
+
+
+cp_since_findall_start3(Choice_point_trail1,_Level,_D1,E1,_D11,CP_Vars1,CP_Vars2) :-
+%trace,
+ CP_Vars1=CP_Vars2,
+ %trace,
+
+reverse(Choice_point_trail1,Choice_point_trail14),
+ member_cut1([A1,A2,A_Pred_id,A_Level,A_Predicate_number,A_Line_number_a,"findall",A3|A4],Choice_point_trail14),
+ D1=[A_Pred_id,A_Level,A_Predicate_number,A_Line_number_a,"findall",A3|A4],
+ %writeln1(cp_since_findall_start(Choice_point_trail1,Level,D1,E1)),
+ get_later_cps_than_cp11(Choice_point_trail1,
+ [A1,A2,A_Pred_id,A_Level,A_Predicate_number,A_Line_number_a,"findall",A3|A4],
+ D1,B),
+
+ reverse(B,B1),
+
+ %D1=[_Pred_id,Level,_Predicate_number,_Line_number_a,"findall",-|_],
+ %member([_,_|D1],Choice_point_trail1),
+
+%[5,6,3,3,[3,"prev_pred_id",2],-1,"predicate",_12340,_12346,[[4,"prev_pred_id",2],[5,"prev_pred_id",2],[6,"prev_pred_id",2]]]
+ member([A,B2,C,D_Level
+ %2
+ ,[P1,"prev_pred_id",P2],-1,"predicate",H,I,All_predicate_numbers2],B1),
+
+ %not(F_Line_number_a2=["returns to", _, "pred_id", _]),
+
+%not(var(H)),
+ E1=[A,B2,C,D_Level
+ %2
+ ,[P1,"prev_pred_id",P2],-1,"predicate",H,I,All_predicate_numbers2]
+
+ /*cp_since_findall_start2(
+ %get_last_p_before_n(
+ B,
+ [_,Level
+ %2
+ ,_Predicate_number2,_Line_number_a2,Pred_or_line,_,_,All_predicate_numbers2],_,E1,CP_Vars1,CP_Vars2),
+ */
+
+
+/*
+(Pred_or_line="line"->
+ (All_predicate_numbers2=[_,_,_,_,_,
+ _,Vars2c],not(Vars2c=[]));
+ Pred_or_line="predicate"->
+ not(All_predicate_numbers2=[]))%)
+*/
+ .
+ member_cut1([A1,A2,A_Pred_id,A_Level,A_Predicate_number,A_Line_number_a,A5,A3|A4],Choice_point_trail14) :-
+ member([A1,A2,A_Pred_id,A_Level,A_Predicate_number,A_Line_number_a,A5,A3|A4],Choice_point_trail14),!.
+
+
+% return until last non end function, go to line after
+% return until last non end function, go to line for false
+
+% return line of last non end function
+% returns go to predicates
+
+% bc
+
+return_to_last_non_end_function(E1,Lines,End_line4,[Dbw_on_true,A1],[Dbw_go_after,B1],[Dbw_on_false,C1],[Dbw_go_to_predicates,D1],Line1,_Globals,_,_,FA,E2,End_line42) :-
+
+%writeln1([*,return_to_last_non_end_function(E1,Lines,End_line4,[Dbw_on_true,A1],[Dbw_go_after,B1],[Dbw_on_false,C1],[Dbw_go_to_predicates,D1],Line1,_Globals,_,_,FA)]),
+
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+
+get_lang_word("exit_function",Dbw_exit_function1),Dbw_exit_function1=Dbw_exit_function,
+get_lang_word("findall_exit_function",Dbw_findall_exit_function1),Dbw_findall_exit_function1=Dbw_findall_exit_function,
+get_lang_word("findall_fail_function",Dbw_findall_fail_function1),Dbw_findall_fail_function1=Dbw_findall_fail_function,
+get_lang_word("fail_function",Dbw_fail_function1),Dbw_fail_function1=Dbw_fail_function,
+
+
+ % if -2 or -3, fill A-Line
+ ((E1= -1->true;(E1= -2->true; E1= -3))->
+ (End_line4=E1,A1=(-),B1=(-),C1=(-),D1=(-),Line1=(-));
+ ((E1=[Dbw_exit_function,_]->true;E1=[Dbw_fail_function,_])->
+ fail;
+ (E1=[Dbw_findall_exit_function,_]->
+ (%go_after(E1,Lines,End_line4)
+ End_line4=E1,A1=(-),B1=(-),C1=(-),D1=(-),Line1=(-),FA=exit);
+ (E1=[Dbw_findall_fail_function,E]->
+ (((number(E2),E2= -3)->(member([E,[Dbw_on_true,A11],[Dbw_go_after,B11],[Dbw_on_false,C11],[Dbw_go_to_predicates,D11]|Line11],Lines),
+
+((%trace,
+not(B11= -1),not(B11= -2),not(B11= -3),number(B11)%,trace
+)-> (member([B11,[Dbw_on_true,A1],[Dbw_go_after,B1],[Dbw_on_false,C1],[Dbw_go_to_predicates,D1]|Line1],Lines),End_line42=B11);
+(A11=A1,B11=B1,C11=C1,D11=D1,Line11=Line1,End_line42=_)),
+
+ FA=fail);
+ (member([E,[Dbw_on_true,A1],[Dbw_go_after,B1],[Dbw_on_false,C1],[Dbw_go_to_predicates,D1]|Line1],Lines),
+ %member([B11,[Dbw_on_true,A1],[Dbw_go_after,B1],[Dbw_on_false,C1],[Dbw_go_to_predicates,D1]|Line1],Lines),%End_line4=B11,
+ FA=fail)));
+ %End_line4=E1,A1=(-),B1=(-),C1=(-),D1=(-),Line1=(-),FA=fail);
+ (find_line_number(E1,E),End_line4=E,
+ member([E,[Dbw_on_true,A1],[Dbw_go_after,B1],[Dbw_on_false,C1],[Dbw_go_to_predicates,D1]|Line1],Lines)))))).
+
+return_to_last_non_end_function(E1,Lines,End_line4,[Dbw_on_true,A1],[Dbw_go_after,B1],[Dbw_on_false,C1],[Dbw_go_to_predicates,D1],Line1,Globals,Pred_id,Line_number_a,FA,E2,End_line42) :-
+%trace,
+%writeln1([lines,Lines]),
+%writeln1(return_to_last_non_end_function(E1,Lines,End_line4,["on true",A1],["go after",B1],["on false",C1],["go to predicates",D1],Line1)),
+%trace,
+%writeln(E1),
+ find_line_number(E1,E),
+ %trace,
+ %writeln1([globals,Globals]),
+ find_line_number(Line_number_a,Line_number_a1),
+ (leash1(on)->Skip=false;member([[skip,Pred_id,Line_number_a1],Skip],Globals)),
+
+ get_lang_word("n",Dbw_n),
+ get_lang_word("not",Dbw_not),
+
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+
+get_lang_word("exit_function",Dbw_exit_function1),Dbw_exit_function1=Dbw_exit_function,
+get_lang_word("fail_function",Dbw_fail_function1),Dbw_fail_function1=Dbw_fail_function,
+ member([E,[Dbw_on_true,_A],[Dbw_go_after,B],[Dbw_on_false,C],[Dbw_go_to_predicates,_D]|Line],Lines),
+ (E1=[Dbw_exit_function,_]->
+ (F=B,E21=E2,(Line=[[Dbw_n,Dbw_not]]->
+ (debug_fail(Skip,Line)->true;true);true%debug_exit(Skip,Line)
+ ));
+ (%trace,
+ E1=[Dbw_fail_function,_]->
+ (%trace,
+ F=C,E21= -3,(Line=[[Dbw_n,Dbw_not]]->
+ debug_exit(Skip,Line)
+ ;((Line=[[Dbw_n,Dbw_not]],
+ debug_fail(Skip,Line))->true;true))))),
+
+ return_to_last_non_end_function(F,Lines,End_line4,[Dbw_on_true,A1],[Dbw_go_after,B1],[Dbw_on_false,C1],[Dbw_go_to_predicates,D1],Line1,Globals,Pred_id,Line_number_a,FA,E21,End_line42).
+
+
+find_line_number(Line_number1,Line_number2) :-
+
+get_lang_word("exit_function",Dbw_exit_function1),Dbw_exit_function1=Dbw_exit_function,
+get_lang_word("fail_function",Dbw_fail_function1),Dbw_fail_function1=Dbw_fail_function,
+
+((Line_number1=[Dbw_exit_function,Line_number3]->true;
+ Line_number1=[Dbw_fail_function,Line_number3])->
+ Line_number2=Line_number3; Line_number2=Line_number1),!
+ .
+
+find_pred_id(N2) :-
+ pred_id(N1),
+ N2 is N1+1,
+ retractall(pred_id(_)),
+ assertz(pred_id(N2)).
+
+
+append_cp(List1,CP,List5a,CP_Vars1,CP_Vars2) :-
+ %writeln1(append_cp(List1,CP,List5a,CP_Vars1,CP_Vars2)),
+ %trace,
+ %(writeln("y to trace"),(get_char(y)->trace;true)),
+ %trace,
+ get(curr_cp,Curr_cp,CP_Vars1),%writeln([curr_cp,Curr_cp]),
+ (debug4(on)->writeln1(append_cp(List1,CP,List5a,CP_Vars1,CP_Vars2));true),
+ (append_cp1(List1,CP,List5a,CP_Vars1,CP_Vars2)->true;(writeln0([append_cp,abort]),abort)),
+ %writeln1(append_cp(List1,CP,List5a)),
+ get(curr_cp,Curr_cp1,CP_Vars2),%writeln([curr_cp,Curr_cp1]),
+ (debug4(on)->writeln0([append_cp,curr_cp,Curr_cp,Curr_cp1,List5a,CP_Vars1,CP_Vars2]);true).
+ %notrace.
+
+append_cp1(List1,CP,List5a,CP_Vars1,CP_Vars2a) :-
+ CP=[CP2],
+
+ get(curr_cp,N,CP_Vars1),
+ get(curr_cp_index,Curr_cp_index1,CP_Vars1),
+ Curr_cp_index2 is Curr_cp_index1+1,
+
+ (
+ ((List1=[],
+ %curr_cp_index3 is curr_cp_index2+1,
+ List5=[[1,2|CP2]]),
+ set(curr_cp,2,CP_Vars1,CP_Vars3),
+ set(curr_cp_index,2,CP_Vars3,CP_Vars4),
+ set(min_cp,1,CP_Vars4,CP_Vars5),
+ set(max_cp,2,CP_Vars5,CP_Vars2)
+%curr_cp_index2=curr_cp_index3
+ )->true;
+
+ ((member([N,_A|_CP21],List1),not(member([_F,N|_],List1)),
+ append([[Curr_cp_index2,N|CP2]],List1,List5),
+ set(curr_cp,N,CP_Vars1,CP_Vars3),
+ set(curr_cp_index,Curr_cp_index2,CP_Vars3,CP_Vars4),
+ set(min_cp,Curr_cp_index2,CP_Vars4,CP_Vars2)
+ )->true;
+
+ ((member([_A,N|_CP21],List1),not(member([N,_F|_],List1)),
+ %curr_cp_index3 is curr_cp_index2+1,
+ append(List1,[[N,Curr_cp_index2|CP2]],List5),
+ set(curr_cp,Curr_cp_index2,CP_Vars1,CP_Vars3),
+ set(curr_cp_index,Curr_cp_index2,CP_Vars3,CP_Vars4),
+ set(max_cp,Curr_cp_index2,CP_Vars4,CP_Vars2)
+ %,(curr_cp_index2=24->writeln([curr_cp_index2,curr_cp_index2]);true)
+ )->true;
+
+ (
+ %curr_cp_index3 is curr_cp_index2+1,
+ member([D,N|CP4],List1),
+ member([N,_B|_CP21],List1),
+ delete(List1,[D,N|CP4],List4),
+ append(List4,[[D,Curr_cp_index2|CP4]],List2),
+ append(List2,[[Curr_cp_index2,N|CP2]],List5),
+
+ set(curr_cp,N,CP_Vars1,CP_Vars3),
+ set(curr_cp_index,Curr_cp_index2,CP_Vars3,CP_Vars2)
+
+ )))),
+
+ renumber_cps(List5,List5a,CP_Vars2,CP_Vars2a,_),
+ %sort(List5,List5a),
+
+ !.
+
+renumber_cps(List1,List2,CP_Vars1,CP_Vars2,Swaps) :-
+ get(min_cp,Min_cp,CP_Vars1),
+ get(max_cp,Max_cp,CP_Vars1), % max_cp x curr_cp_index
+ get(curr_cp,Curr_cp31,CP_Vars1),
+renumber_cps1(List1,Min_cp,Max_cp,[],List2,1,Max_cp2,Curr_cp31,Curr_cp3,[],Swaps),
+ set(min_cp,1,CP_Vars1,CP_Vars3),
+ set(max_cp,Max_cp2,CP_Vars3,CP_Vars4),
+ set(curr_cp,Curr_cp3,CP_Vars4,CP_Vars5),
+ set(curr_cp_index,Max_cp2,CP_Vars5,CP_Vars2).
+
+
+renumber_cps1([[A,B|C]],A,B,List1,List2,Curr_cp,Curr_cp2,Curr_cp31,Curr_cp3,Swaps1,Swaps2) :-
+ Curr_cp2 is Curr_cp+1,
+ append(List1,[[Curr_cp,Curr_cp2|C]],List2),
+ append(Swaps1,[[[A,B|C],[Curr_cp,Curr_cp2|C]]],Swaps2),
+ (A=Curr_cp31-> Curr_cp3=Curr_cp;true),
+ (B=Curr_cp31-> Curr_cp3=Curr_cp2;true) ,!.
+renumber_cps1(List1,Min_cp,Max_cp,List1a,List2,Curr_cp,Max_cp2,Curr_cp31,Curr_cp3,Swaps1,Swaps2) :-
+ member([Min_cp,B|C],List1),
+ delete(List1,[Min_cp,B|C],List3),
+ Curr_cp2 is Curr_cp+1,
+ append(List1a,[[Curr_cp,Curr_cp2|C]],List4),
+ append(Swaps1,[[[Min_cp,B|C],[Curr_cp,Curr_cp2|C]]],Swaps3),
+ (Min_cp=Curr_cp31-> Curr_cp3=Curr_cp;true),
+ (B=Curr_cp31-> Curr_cp3=Curr_cp2;true), renumber_cps1(List3,B,Max_cp,List4,List2,
+ Curr_cp2,Max_cp2,Curr_cp31,Curr_cp3,Swaps3,Swaps2),!.
+
+
+
+get_cp(List1,N,Cp) :-
+ (member([N,B|Cp1],List1)->true;(writeln0("get_cp failed"),abort)),
+ Cp=[N,B|Cp1].
+
+
+get_last_p_before_n(List1,Cp1,Cp2,Cp3,CP_Vars1,CP_Vars1) :-
+
+ %writeln1("y for trace:"),(get_char(y)->trace;true),
+ %get(curr_cp,Curr_cp,CP_Vars1),%writeln([curr_cp,Curr_cp]),
+ (debug4(on)->writeln1(get_last_p_before_n2(List1,Cp1,Cp2,Cp3,CP_Vars1,CP_Vars1));true),
+ (get_last_p_before_n2(List1,Cp1,Cp2,Cp3,CP_Vars1,CP_Vars1)->true;false%(writeln([get_last_p_before_n2,abort]),abort)),
+ %writeln1(get_last_p_before_n2(List1,Cp1,Cp2,Cp3)
+ ),
+ %get(curr_cp,Curr_cp1,CP_Vars1),%writeln([curr_cp,Curr_cp1]),
+ (debug4(on)->writeln0([get_last_p_before_n,Cp2,CP_Vars1,CP_Vars1]);true).
+ %notrace.
+
+get_last_p_before_n2(List1,Cp1,Cp2,Cp3,CP_Vars1,CP_Vars1) :-
+
+ reverse(List1,B1),
+
+/*
+ member([global_cp_trail,Global_cp_trail1],CP_Vars1),
+
+append(Global_cp_trail1,[[_,_,List1]],Global_cp_trail1a),
+ reverse(Global_cp_trail1a%List1
+ ,B1),
+ */
+ %D1=[_Pred_id,Level,_Predicate_number,_Line_number_a,"findall",-|_],
+ %member([_,_|D1],Choice_point_trail1),
+
+ Cp1=[%A,B2,
+ _CX,D_Level
+ %2
+ ,E_Predicate_number2,F_Line_number_a2,Pred_or_line,H,I|All_predicate_numbers2],
+
+ %member([_,_,B11],B1),
+ %reverse(B11,B12),
+
+ member([A,B2,C,D_Level
+ %2
+ ,E_Predicate_number2,F_Line_number_a2,Pred_or_line,H,I|All_predicate_numbers2],B1),%B12),
+
+ Cp2=[A,B2,C,D_Level
+ %2
+ ,E_Predicate_number2,F_Line_number_a2,Pred_or_line,H,I|All_predicate_numbers2],
+
+ /*cp_since_findall_start2(
+ %get_last_p_before_n(
+ B,
+ [_,Level
+ %2
+ ,_Predicate_number2,_Line_number_a2,Pred_or_line,_,_,All_predicate_numbers2],_,E1,CP_Vars1,CP_Vars2),
+ */
+
+ /*
+ (Pred_or_line="line"->
+ (All_predicate_numbers2=[_,_,_,_,_,
+ _,Vars2c],not(Vars2c=[]));
+ Pred_or_line="predicate"->
+ not(All_predicate_numbers2=[])),
+ */
+
+ Cp2=[_,_|Cp3]
+%)
+ /*
+%trace,
+%writeln1([list1,List1]),
+%trace,
+ get(curr_cp,N,CP_Vars1),
+ get_last_p_before_n1(List1,Cp1,N,Cp2),
+ Cp2=[_,_|Cp3]
+ */
+ .
+
+get_last_cp_before_n(List1,Cp1,Cp2,Cp3,CP_Vars1,CP_Vars1) :-
+
+ %writeln1("y for trace:"),(get_char(y)->trace;true),
+ %get(curr_cp,Curr_cp,CP_Vars1),%writeln([curr_cp,Curr_cp]),
+ (debug4(on)->writeln1(get_last_cp_before_n2(List1,Cp1,Cp2,Cp3,CP_Vars1,CP_Vars1));true),
+ (get_last_cp_before_n2(List1,Cp1,Cp2,Cp3,CP_Vars1,CP_Vars1)->true;false%(writeln([get_last_p_before_n2,abort]),abort)),
+ %writeln1(get_last_p_before_n2(List1,Cp1,Cp2,Cp3)
+ ),
+ %get(curr_cp,Curr_cp1,CP_Vars1),%writeln([curr_cp,Curr_cp1]),
+ (debug4(on)->writeln0([get_last_cp_before_n,Cp2,CP_Vars1,CP_Vars1]);true).
+ %notrace.
+
+get_last_cp_before_n2(List1,Cp1,Cp2,Cp3,CP_Vars1,CP_Vars1) :-
+/*
+ member([global_cp_trail,Global_cp_trail1],CP_Vars1),
+
+append(Global_cp_trail1,[[_,_,List1]],Global_cp_trail1a),
+
+ reverse(Global_cp_trail1a%List1
+ ,B1),
+*/
+ reverse(List1,B1),
+ %D1=[_Pred_id,Level,_Predicate_number,_Line_number_a,"findall",-|_],
+ %member([_,_|D1],Choice_point_trail1),
+
+ Cp1=[%A,B2,
+ C,D_Level
+ %2
+ ,E_Predicate_number2,F_Line_number_a2,Pred_or_line,H,I,All_predicate_numbers2],
+
+ %not(F_Line_number_a2=["returns to", _, "pred_id", _]),
+
+ %member([_,_,B11],B1),
+ %reverse(B11,B12),
+
+ member([A,B2,C,D_Level
+ %2
+ ,E_Predicate_number2,F_Line_number_a2,Pred_or_line,H,I,All_predicate_numbers2],B1),%B12),
+
+ Cp2=[A,B2,C,D_Level
+ %2
+ ,E_Predicate_number2,F_Line_number_a2,Pred_or_line,H,I,All_predicate_numbers2],
+
+ /*cp_since_findall_start2(
+ %get_last_p_before_n(
+ B,
+ [_,Level
+ %2
+ ,_Predicate_number2,_Line_number_a2,Pred_or_line,_,_,All_predicate_numbers2],_,E1,CP_Vars1,CP_Vars2),
+ */
+
+
+ (Pred_or_line="line"->
+ (All_predicate_numbers2=[_,_,_,_,_,
+ _,Vars2c],not(Vars2c=[]));
+ Pred_or_line="predicate"->
+ not(All_predicate_numbers2=[])),
+
+ Cp2=[_,_|Cp3]
+%)
+ /*
+%trace,
+%writeln1([list1,List1]),
+%trace,
+ get(curr_cp,N,CP_Vars1),
+ get_last_p_before_n1(List1,Cp1,N,Cp2),
+ Cp2=[_,_|Cp3]
+ */
+ .
+
+/*
+get_last_p_before_n1(List1,_Cp1,N,_Cp2) :-
+ (not(member([N,_|_],List1)),fail).
+get_last_p_before_n1(List1,Cp1,N,Cp2) :-
+ member([B,N|Cp1],List1),
+ %((Cp1=[_,_,_,["returns to",_]|_])->
+ %get_last_p_before_n1(List1,Cp1,B,Cp2);
+ Cp2=[B,N|Cp1].
+get_last_p_before_n1(List1,Cp1,N,Cp2) :-
+%trace,writeln1(List1),
+ member([N,B|Cp1],List1),
+ %((Cp1=[_,_,_,["returns to",_]|_])->
+ %fail%get_last_p_before_n1(List1,Cp1,B,Cp2)
+ %;
+ Cp2=[N,B|Cp1],!.
+get_last_p_before_n1(List1,Cp1,N,Cp2) :-
+ member([B,N|Cp3],List1),
+ not(Cp1=Cp3),
+ get_last_p_before_n1(List1,Cp1,B,Cp2).
+*/
+/*
+
+[debug] ?- get_later_cps_than_cp([[1,2,a],[2,3,b],[3,4,c]],[2,3,b],C). C = [[2, 3, b], [1, 2, a]].
+
+[debug] ?- get_later_cps_than_cp([[1,2,a],[2,3,b],[3,4,c]],[1,2,a],C).
+C = [[1, 2, a]].
+
+[debug] ?- get_later_cps_than_cp([[1,2,a],[2,3,b],[3,4,c]],[3,4,c],C).
+C = [[3, 4, c], [2, 3, b], [1, 2, a]].
+
+*/
+/*
+get_later_cps_than_cp(List1,Cp1,Cps) :-
+ %curr_cp(N),
+ Cp1=[_Cp_b,Cp_a|_Cp],
+ get_later_cps_than_cp(List1,Cp_a,[],Cps1),
+ sort(Cps1,Cps).
+ %Cp2=[_,_|Cp3].
+
+get_later_cps_than_cp(List1,Cp_a,Cps,Cps) :-
+ not(member([Cp_a,_|_],List1)),!.
+get_later_cps_than_cp(List1,Cp_a,Cps1,Cps2) :-
+ member([Cp_a,Cp_b|Cp3],List1),
+ append(Cps1,[[Cp_a,Cp_b|Cp3]],Cps3),
+ get_later_cps_than_cp(List1,Cp_b,Cps3,Cps2),!.
+*/
+set(A,B,CP_Vars1,CP_Vars2) :-
+ delete(CP_Vars1,[A,_],CP_Vars3),
+ append(CP_Vars3,[[A,B]],CP_Vars2),!.
+
+get(A,B,CP_Vars1) :-
+ member([A,B],CP_Vars1),!.
+
+/*
+
+[debug] ?- trace, delete_cp([[1,2,a],[2,3,b],[3,4,c]],[1,2,a],A, [[curr_cp_index,4],[min_cp,1],[max_cp,4],[curr_cp,3]],V).
+A = [[1, 2, b], [2, 3, c]],
+V = [[min_cp, 1], [max_cp, 3], [curr_cp, 1], [curr_cp_index, 3]].
+
+
+[debug] ?- trace, delete_cp([[1,2,a],[2,3,b],[3,4,c]],[2,3,b],A, [[curr_cp_index,4],[min_cp,1],[max_cp,4],[curr_cp,3]],V).
+A = [[1, 2, a], [2, 3, c]],
+V = [[min_cp, 1], [max_cp, 3], [curr_cp, 2], [curr_cp_index, 3]].
+
+
+[trace] ?- trace, delete_cp([[1,2,a],[2,3,b],[3,4,c]],[3,4,c],A, [[curr_cp_index,4],[min_cp,1],[max_cp,4],[curr_cp,3]],V).
+A = [[1, 2, a], [2, 3, b]],
+V = [[min_cp, 1], [max_cp, 3], [curr_cp, 3], [curr_cp_index, 3]].
+
+*/
+
+delete_cp(List1,CP,List5,CP_Vars1,CP_Vars2,Swaps) :-
+ %writeln1(delete_cp1(List1,CP,List5,CP_Vars1,CP_Vars2,Swaps)),
+ %trace,
+ get(curr_cp,Curr_cp,CP_Vars1),%writeln([curr_cp,Curr_cp]),
+ %trace,
+ (debug4(on)->writeln0([delete_cp,curr_cp,Curr_cp,CP,List1,List5,CP_Vars1,CP_Vars2,Swaps]);true),
+
+(delete_cp1(List1,CP,List5,CP_Vars1,CP_Vars2,Swaps)->true;(writeln0([delete_cp1,abort]),abort)),
+ %writeln1(delete_cp1(List1,CP,List5)),
+ get(curr_cp,Curr_cp1,CP_Vars1),%writeln([curr_cp,Curr_cp1]),
+ (debug4(on)->writeln0([delete_cp,curr_cp,Curr_cp,Curr_cp1,CP,List1,List5,CP_Vars1,CP_Vars2,Swaps]);true).
+ %notrace.
+
+delete_cp1(List1,CP,List5a,CP_Vars1,CP_Vars2a,Swaps) :-
+ CP=[A,B|CP2],
+
+ %writeln1([delete_cp1,[A,B|CP2]]),
+ (
+ (List1=[])->true;
+
+ (List1=[[A,B|CP2]],
+ List5=[],
+ set(curr_cp,0,CP_Vars1,CP_Vars3),
+ set(curr_cp_index,0,CP_Vars3,CP_Vars4),
+ set(min_cp,0,CP_Vars4,CP_Vars5),
+ set(max_cp,0,CP_Vars5,CP_Vars2)
+ )->true;
+
+ (member([A,B|CP2],List1),
+ not(member([_F,A|_],List1)),
+ delete(List1,[A,B|CP2],List5),
+ member([B,C|_CP3],List5),
+ %(B=23->(trace,writeln(here1));true),
+ %(curr_cp(A)->set(curr_cp,B);true)
+ set(curr_cp,C,CP_Vars1,CP_Vars3),
+ set(min_cp,B,CP_Vars3,CP_Vars2)
+ )->true;
+
+ (%trace,
+ member([A,B|CP2],List1),
+ not(member([B,_F|_],List1)),
+ delete(List1,[A,B|CP2],List5),
+ %member([C,A|_CP3],List5),
+ %(A=23->(trace
+ %,writeln(here2));true),
+ %(curr_cp(B)->set(curr_cp,A);true)
+ set(curr_cp,A,CP_Vars1,CP_Vars3),
+ set(max_cp,A,CP_Vars3,CP_Vars2)
+ %,notrace
+ )->true;
+
+ (
+ member([D,A|CP4],List1),
+ delete(List1,[D,A|CP4],List2),
+ member([B,_C|_CP3],List2),
+ member([A,B|CP2],List2),
+ delete(List2,[A,B|CP2],List4),
+ append(List4,[[D,B|CP4]],List5),
+
+ %(B=23->(trace,writeln(here3));true),
+
+ %(curr_cp(A)->set(curr_cp,B);true)
+ set(curr_cp,B,CP_Vars1,CP_Vars2)
+
+ )),
+
+ %trace,
+ get(max_cp,Max_cp,CP_Vars2),%writeln([curr_cp,Curr_cp]),
+ set(curr_cp,Max_cp,CP_Vars2,CP_Vars2b),
+ renumber_cps(List5,List5a,CP_Vars2b,CP_Vars2a,Swaps)
+ ,!.
+
+
+replace_cp(Choice_point_trail1e,Cp_a1,Cp_a2,D1,D2,Choice_point_trail1b,CP_Vars1,CP_Vars2) :-
+
+%trace,
+(member([Cp_a1,Cp_a2|D1],Choice_point_trail1e)->true;
+(writeln0("replace_cp abort"),abort)),
+ delete(Choice_point_trail1e,[Cp_a1,Cp_a2|D1],Choice_point_trail1f),
+ append(Choice_point_trail1f,[[Cp_a1,Cp_a2|D2]],Choice_point_trail1g),
+
+%writeln1(["*5", append(Choice_point_trail1f,[[Cp_a1,Cp_a2|D2]],Choice_point_trail1g)]),
+
+ set(curr_cp,Cp_a1,CP_Vars1,CP_Vars2),
+ sort(Choice_point_trail1g,Choice_point_trail1b).
+
+exit_findall_line(Pred_id1,Globals1,Predicate_number,Line_number_b,Functions,Line_number_c) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("true",Dbw_true1),Dbw_true1=Dbw_true,
+get_lang_word("findall_exit_function",Dbw_findall_exit_function1),Dbw_findall_exit_function1=Dbw_findall_exit_function,
+get_lang_word("exit_function",Dbw_exit_function1),Dbw_exit_function1=Dbw_exit_function,
+
+%trace,
+
+ member([Predicate_number,_F|Rest],Functions),
+(Rest=[_Args,":-",Lines]->true;
+(Rest=[_Args]->Lines=[[[Dbw_n,Dbw_true]]];
+(Rest=[":-",Lines];
+(Rest=[],Lines=[[[Dbw_n,Dbw_true]]])))),
+
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,
+
+((Line_number_b=[Dbw_findall_exit_function,C]->true;
+Line_number_b=[Dbw_exit_function,C])->
+(member([C,[Dbw_on_true,_A],[Dbw_go_after,B]|_Line],Lines),
+exit_findall_line(Pred_id1,Globals1,Predicate_number,B,Functions,Line_number_c));
+
+ %find_line_number(Line_number_c,E),
+ %member([[skip,Pred_id,E],Skip],Globals),
+
+
+%debug_exit(Skip,Line),
+
+(Line_number_c=Line_number_b%trace,member([Line_number_b,["on true",_A],["go after",Line_number_c]|_],Lines)
+)).
+
+%/*
+collect_connected_pred_ids(Pred_id,Pred_ids1,Pred_ids2,Predicate_number,Globals3) :-
+
+collect_connected_pred_ids1(Pred_id,Pred_ids1,Pred_ids3,Predicate_number,Globals3),
+
+%writeln1([*,Pred_ids3]),
+Pred_ids3=Pred_ids2,
+%findall(Pred_ids6,(member(Pred_id5,Pred_ids3),
+%collect_connected_pred_ids2(Pred_id5,[Pred_id5],Pred_ids6,Globals3)),
+%Pred_ids2),
+!.
+
+collect_connected_pred_ids1(Pred_id,Pred_ids1,Pred_ids2,Predicate_number,Globals3) :-
+
+ ((member([pred_id_chain,Prev_pred_id,Pred_id],Globals3),
+ not(member(Prev_pred_id,Pred_ids1)),
+ member([[pred_num,Prev_pred_id],Predicate_number],Globals3))->
+ (%trace,
+ append(Pred_ids1,[Prev_pred_id],Pred_ids3),
+ %findall(Pred_ids4, collect_connected_pred_ids2(Prev_pred_id,Pred_ids3,Pred_ids4,Globals3),Pred_ids5),
+ Pred_ids3=Pred_ids5,
+ collect_connected_pred_ids1(Prev_pred_id,Pred_ids5,Pred_ids2,Predicate_number,Globals3));
+ Pred_ids1=Pred_ids2).
+
+
+ /*collect_connected_pred_ids0(Pred_id,Pred_ids1,Pred_ids2,Predicate_number,Globals3) :-
+
+collect_connected_pred_ids01(Pred_id,Pred_ids1,Pred_ids3,Predicate_number,Globals3),
+
+%writeln1([*,Pred_ids3]),
+Pred_ids3=Pred_ids2,
+%findall(Pred_ids6,(member(Pred_id5,Pred_ids3),
+%collect_connected_pred_ids2(Pred_id5,[Pred_id5],Pred_ids6,Globals3)),
+%Pred_ids2),
+!.
+
+collect_connected_pred_ids01(Pred_id,Pred_ids1,Pred_ids2,Predicate_number,Globals3) :-
+
+ ((%member([pred_id_chain,Prev_pred_id,Pred_id],Globals3),
+ Prev_pred_id=Pred_id,
+ not(member(Prev_pred_id,Pred_ids1)),
+ member([[pred_num,Prev_pred_id],Predicate_number],Globals3))->
+ (%trace,
+ append(Pred_ids1,[Prev_pred_id],Pred_ids3),
+ %findall(Pred_ids4, collect_connected_pred_ids2(Prev_pred_id,Pred_ids3,Pred_ids4,Globals3),Pred_ids5),
+ Pred_ids3=Pred_ids5,
+ collect_connected_pred_ids01(Prev_pred_id,Pred_ids5,Pred_ids2,Predicate_number,Globals3));
+ Pred_ids1=Pred_ids2).
+
+collect_connected_pred_ids01(Pred_id,Pred_ids1,Pred_ids2,Predicate_number,Globals3) :-
+
+ ((member([pred_id_chain,Prev_pred_id,Pred_id],Globals3),
+ not(member(Prev_pred_id,Pred_ids1)),
+ member([[pred_num,Prev_pred_id],Predicate_number],Globals3))->
+ (%trace,
+ append(Pred_ids1,[Prev_pred_id],Pred_ids3),
+ %findall(Pred_ids4, collect_connected_pred_ids2(Prev_pred_id,Pred_ids3,Pred_ids4,Globals3),Pred_ids5),
+ Pred_ids3=Pred_ids5,
+ collect_connected_pred_ids01(Prev_pred_id,Pred_ids5,Pred_ids2,Predicate_number,Globals3));
+ Pred_ids1=Pred_ids2).
+ */
+%collect_connected_pred_ids2(Pred_id,Pred_ids1,Pred_ids1,_Globals3) :-
+
+ %not(member([pred_id_chain,Pred_id,Next_pred_id],Globals3)).
+/*
+collect_connected_pred_ids2(Pred_id,Pred_ids1,Pred_ids2,Globals3) :-
+
+ (findall([%Next_pred_id,
+ Next_pred_id1],(member([pred_id_chain,Pred_id,Next_pred_id],Globals3)),Next_pred_id1),
+ member(Next_pred_id2,Next_pred_id),
+ collect_connected_pred_ids2(Next_pred_id2,[Next_pred_id],Pred_ids2,Globals3)).%),Pred_ids2)).
+ */
+
+ collect_connected_pred_ids2(Pred_id,Pred_ids1,Pred_ids2,Globals3) :-
+ ((findall(Next_pred_id,member([pred_id_chain,Pred_id,Next_pred_id],Globals3),Next_pred_id),
+ %member(Next_pred_id,Next_pred_id1),
+ %not(member(Next_pred_id,Pred_ids1))
+ subtract(Next_pred_id,Pred_ids1,Next_pred_id1)
+ %member([[pred_num,Prev_pred_id],Predicate_number],Globals3)
+ )->
+ (%trace,
+ append(Pred_ids1,Next_pred_id1,Pred_ids3),
+ %findall(Pred_ids4, collect_connected_pred_ids2(Prev_pred_id,Pred_ids3,Pred_ids4,Globals3),Pred_ids5),
+ Pred_ids3=Pred_ids5,
+ findall(Pred_ids6,(member(Next_pred_id2,Next_pred_id1),collect_connected_pred_ids2(Next_pred_id2,Pred_ids5,Pred_ids6,Globals3)),Pred_ids7),
+ append([Pred_id,Pred_ids7],Next_pred_id1,Pred_ids2));
+ Pred_ids1=Pred_ids2).
+
+ /*
+ ->
+ (subtract(Next_pred_id1,[Pred_id],Pred_ids11),
+ append(Pred_ids1,[Pred_ids11],Pred_ids3));
+ Pred_ids1=Pred_ids3),
+ collect_connected_pred_ids2(Next_pred_id,Pred_ids3,Pred_ids2,Globals3).
+*/
+
+%*/
+/*
+collect_connected_pred_ids(Pred_id,Pred_ids1,Pred_ids2,Predicate_number,Globals3) :-
+
+ member([pred_id_chain,Pred_id,Next_pred_id],Globals3),
+ ((not(member(Next_pred_id,Pred_ids1)),
+ member([[pred_num,Next_pred_id],Predicate_number],Globals3))->
+ (append(Pred_ids1,[Next_pred_id],Pred_ids3),
+ collect_connected_pred_ids(Next_pred_id,Pred_ids3,Pred_ids2,Predicate_number,Globals3));
+ Pred_ids1=Pred_ids2),!.
+*/
+clear_cps(Choice_point_trail1a,Choice_point_trail1,CP_Vars1a,CP_Vars1) :-
+%trace,
+findall([A,B,C,D,E,L,M,F,H,J],
+(member([A,B,C,D,E,L,M,F,H,J],Choice_point_trail1a),(J=[]->true;J=[_Ab,_Bb,_Cb,_Db,_Eb,
+ _Fb,[]]),not(L= -1),not(L=["returns to", _, "pred_id", _]),not(L=[findall_exit_function,_]),not(M="findall")),K),
+delete_cps(Choice_point_trail1a,K,Choice_point_trail1,CP_Vars1a,CP_Vars1),!.
+
+% delete choicepoints in all clauses of current predicate x
+% find cps of same name, arity that have same previous pred_id x
+cut_cps(Choice_point_trail1a,Choice_point_trail2,CP_Vars1a,CP_Vars2,Pred_id,Predicate_number,Globals3) :-
+
+%trace, % collect pred ids connected by curr pred num
+
+
+% clear empty Cps
+
+%clear_cps(Choice_point_trail1a,Choice_point_trail1,CP_Vars1a,CP_Vars1),
+Choice_point_trail1a=Choice_point_trail1,
+CP_Vars1a=CP_Vars1,
+% (possibly not necessarily) collect connected pred ids
+
+findall(Pred_ids,collect_connected_pred_ids(Pred_id,[Pred_id],Pred_ids,Predicate_number,Globals3),Pred_ids1),
+
+flatten(Pred_ids1,Pred_ids1a),
+sort(Pred_ids1a,Pred_ids2),
+
+%writeln([1,Pred_ids2]),
+ % replace their cps with [] x
+
+
+/* member([pred_id_chain,Prev_pred_id,Pred_id],Globals3),
+ pred_numbers(Pred_numbers),
+ member([Function1,Arity1,Pred_numbers1],Pred_numbers),
+ member(Predicate_number,Pred_numbers1),
+
+ findall(Pred_id1,(member([pred_id_chain,Prev_pred_id,Pred_id1],Globals3),
+ member([Function1,Arity1,Pred_numbers2],Pred_numbers),
+ member([[pred_num,Pred_id1],Predicate_number1],Globals3),
+ member(Predicate_number1,Pred_numbers2)),
+ Pred_ids2),
+*/
+ findall(%[
+ E2%,E4
+ %]
+ ,(member(C,Pred_ids2),
+ E2=[_A,_B2,C,_D_Level,_E_Predicate_number2,_F_Line_number_a2,_Pred_or_line,_H,_I,_All_predicate_numbers2],
+ member(E2,Choice_point_trail1)
+
+ %E1=[C,D_Level,E_Predicate_number2,F_Line_number_a2,Pred_or_line,H,I,All_predicate_numbers2],
+
+/*
+ (Pred_or_line="line"->
+ (All_predicate_numbers2=[Ab,Bb,Cb,Db,Eb,
+ Fb,Vars2c],not(Vars2c=[]),
+ E4=[A,B2,C,D_Level,E_Predicate_number2,F_Line_number_a2,Pred_or_line,H,I,[Ab,Bb,Cb,Db,Eb,
+ Fb,[]]]);
+ Pred_or_line="predicate"->
+ not(All_predicate_numbers2=[]),
+ E4=[A,B2,C,D_Level,E_Predicate_number2,F_Line_number_a2,Pred_or_line,H,I,[]])
+*/
+ ),E3),
+
+ % * delete not replace []s, heap since first line needed for retry
+ % - delete rest of cps with pred_ids2
+
+%replace_cps(E3,B21,B23,B22),
+
+replace1(Choice_point_trail1,Pred_ids2,Choice_point_trail3,CP_Vars1,CP_Vars3),
+%trace,
+delete1(E3,Pred_ids2,E31),%,CP_Vars3,CP_Vars4),
+
+ %delete_cp2(Choice_point_trail1,E31,Choice_point_trail2,CP_Vars1,CP_Vars2).
+
+delete_cps(Choice_point_trail3,E31,Choice_point_trail2,CP_Vars3,CP_Vars2).
+
+%/*
+delete_cps(Choice_point_trail1,[],Choice_point_trail1,CP_Vars,CP_Vars) :- !.
+
+delete_cps(Choice_point_trail1,[E31|E32],Choice_point_trail2,CP_Vars1,CP_Vars2) :-
+E31=[_A,_B|E33],
+delete_cp(Choice_point_trail1,[_,_|E33],Choice_point_trail3,CP_Vars1,CP_Vars3,_),
+delete_cps(Choice_point_trail3,E32,Choice_point_trail2,CP_Vars3,CP_Vars2),!.
+%*/
+ %replace_cp2(Choice_point_trail1,E3,Choice_point_trail2,CP_Vars1,CP_Vars2).
+
+%/*
+replace1(E3,Pred_ids2,E31,CP_Vars1,CP_Vars1) :-
+
+findall(M,
+(member(N,E3),((N=[A,B,C,D,E,L,"predicate",F,H,_J],(L= -1->true;L=["returns to", _, "pred_id", _]),
+member(C,Pred_ids2))->
+M=[A,B,C,D,E,L,"predicate",F,H,[]];
+M=N)),E31),!.
+
+%*/
+
+delete1(E3,Pred_ids2,E31%,CP_Vars1,CP_Vars3
+) :-
+
+findall([A,B,C,D,E,L,"predicate",F,H,J],
+(member([A,B,C,D,E,L,"predicate",F,H,J],E3),(L= -1->true;L=["returns to", _, "pred_id", _]),
+member(C,Pred_ids2)),K),
+subtract(E3,K,E31%,CP_Vars1,CP_Vars3,_
+),!.
+
+delete1(E,_,E) :- !.
+
+ replace_cp2(Choice_point_trail,[],Choice_point_trail,CP_Vars,CP_Vars) :- !.
+ replace_cp2(Choice_point_trail1,E3,Choice_point_trail2,CP_Vars1,CP_Vars2) :-
+
+ E3=[[[A,B|E1],[A,B|E11]]|E2],
+replace_cp(Choice_point_trail1,A,B,E1,E11,Choice_point_trail3,CP_Vars1,CP_Vars3),
+replace_cp2(Choice_point_trail3,E2,Choice_point_trail2,CP_Vars3,CP_Vars2).
+
+ delete_cp_value(Choice_point_trail1,[Predicate_number_a1,"prev_pred_id",Prev_pred_id],Choice_point_trail31,CP_Vars1,CP_Vars21) :-
+ reverse(Choice_point_trail1,Choice_point_trail14),
+
+% [8, 9, 4, 3, [4, "prev_pred_id", 2], -1, "predicate", _51400588, _51400594, [[5, "prev_pred_id", 2], [6, "prev_pred_id", 2]]]
+ member([A1,A2,A_Pred_id,A_Level,A_Predicate_number,-1,"predicate",A4,A3,A5
+ ],Choice_point_trail14),
+ %D11=[A_Pred_id,A_Level,A_Predicate_number,-1,"predicate",A3,A4,A5],
+
+((member([Predicate_number_a1,"prev_pred_id",Prev_pred_id],A5),
+delete(A5,[Predicate_number_a1,"prev_pred_id",Prev_pred_id],A6),
+%A5=[A6|A7]->
+
+replace_cp(Choice_point_trail1,A1,A2,
+[A_Pred_id,A_Level,A_Predicate_number,-1,"predicate",A4,A3,A5],
+[A_Pred_id,A_Level,A_Predicate_number,-1,"predicate",A4,A3,A6],
+Choice_point_trail31,CP_Vars1,CP_Vars21))->true;
+(Choice_point_trail1=Choice_point_trail31,
+CP_Vars1=CP_Vars21)).
+
+
+find_retry_back_stack_n(N2) :-
+ retry_back_stack_n(N1),
+ N2 is N1+1,
+ retractall(retry_back_stack_n(_)),
+ assertz(retry_back_stack_n(N2)).
diff --git a/SSI/ssi_3preds5.pl b/SSI/ssi_3preds5.pl
new file mode 100644
index 0000000000000000000000000000000000000000..52358d46902bef348d0596e152c0b39a083116b4
--- /dev/null
+++ b/SSI/ssi_3preds5.pl
@@ -0,0 +1,676 @@
+/*
+interpretpart(read_string1,Variable1,Vars1,Vars2) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("read_string",Dbw_read_string),
+ getvalue(Variable1,Value1,Vars1),
+ debug_call(Skip,[[Dbw_n,Dbw_read_string],[variable]]),
+ ((read_string(user_input, "\n", "\r", _End1, Value1A),
+ val1emptyorvalsequal(Value1,Value1A),
+ putvalue(Variable1,Value1A,Vars1,Vars2))->
+ debug_exit(Skip,[[Dbw_n,Dbw_read_string],[Value1A]])
+; debug_fail(Skip,[[Dbw_n,Dbw_read_string],[variable]])),!.
+*/
+
+/*ssi_interpretpart(member,Variable1,Variable2,Vars1,Vars2,Vars2c) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("member",Dbw_member),
+ getvalues_equals4(Variable1,Variable2,Value1,Value2,Vars1),
+debug_call(Skip,[[Dbw_n,Dbw_member],[Value1,Value2]]),
+ %(((not(Value2=empty)->member(Value2,Value1),
+ ((findall([[Value1,Value3],Vars2b,Value3],(member(Value3,Value1),
+ putvalue_equals4(Variable2,Value3,Vars1,Vars2b)%%,Vars2=Vars1
+ ),Vars2a),Vars2a=[[_,Vars2,Value3]|Vars2d],
+ findall([[Value11,Value21],Vars2e],member([[Value11,Value21],Vars2e,Value31],Vars2d),Vars2c1),
+ Vars2c=[[[Dbw_n,Dbw_member],[Value1,Value2],Value3]|[Vars2c1]]
+ )->
+ debug_exit(Skip,[[Dbw_n,Dbw_member],[Value1,Value3]])
+; debug_fail(Skip,[[Dbw_n,Dbw_member],[Value1,Value2]])),!.
+*/
+
+ssi_interpretpart(member2,Dbw_member2,Variable1,Variable2,Vars1,Vars2,Vars2c) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+%get_lang_word("member2",Dbw_member21),Dbw_member21=Dbw_member2,
+get_lang_word("v",Dbw_v),
+
+ getvalues_equals4(Variable1,Variable2,Value1,Value2,Vars1),
+debug_call(Skip,[[Dbw_n,Dbw_member2],[Value2,Value1]]),
+ ((%Value2=empty,
+
+ matrix_member(Matrix),findall(X,(member(Y,[Value1,Value2]),(contains_var([Dbw_v,_],Y)->X=o;X=i)),Z),
+foldr(atom_concat,Z,'',W),(member(W,Matrix)->true;(writeln([incorrect,member2,modes,W]),abort)),
+
+(W=ii->
+(member(Value2,Value1)->
+
+ (Vars1=Vars2,
+ debug_exit(Skip,[[Dbw_n,Dbw_member2],[Value2,Value1]]));
+ (Vars1=Vars2,
+ debug_fail(Skip,[[Dbw_n,Dbw_member2],[Value2,Value1]])));
+
+(
+(W=io->
+((findall([Vars2b,[Value1,Value2a],Value2a],(member(Value2a,Value1),
+ putvalue_equals4(Variable2,Value2a,Vars1,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value2a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1),
+ Vars2c=[[Dbw_n,Dbw_member2],[Value1,Value2],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+
+ debug_exit(Skip,[[Dbw_n,Dbw_member2],[Value2a,Value1]])));
+
+
+
+(W=oi->
+
+(%trace,
+ command_n_sols(N),
+ findall([Vars2b,[Value1a,Value2],Value1a],(
+
+%replace_in_term([Value2,],_%'$VAR'(_)
+% ,empty,Value1A1),
+ findnsols(N,Value1A1,(member(Value2,Value1A),
+
+ %Value1A=[Value3A2|Value3A3],
+ %ValueIA1=[Value3A2,"|",Value3A3],
+
+ replace_in_term(Value1A,_%'$VAR'(_)
+ ,empty2,Value1A2),
+
+ convert_to_lp_pipe(Value1A2,Value1A3),
+
+ find_v_sys(V_sys),
+
+ replace_in_term(Value1A3,empty2%'$VAR'(_)
+ ,V_sys,Value1A1)
+
+ )
+ ,ValueA),!,
+
+
+ %val1emptyorvalsequal(Value3,Value3A),
+ %trace,
+ %Vars1=Vars2,
+ member(Value1a,ValueA),
+ putvalue_equals4(Variable1,Value1a,Vars1,Vars2b) ),Vars2a),
+ %trace,
+ Vars2a=[[Vars2,_,Value1a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1),
+ Vars2c=[[Dbw_n,Dbw_member2],[Value1,Value2],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1]
+
+ ,
+ debug_exit(Skip,[[Dbw_n,Dbw_member2],[Value2,Value1a]]));
+
+
+(W=oo->
+
+
+(%trace,
+command_n_sols(N),
+ findall([Vars2b,[Value1,Value2a],%Value1a,
+ Value2a],(findnsols(N,%[Value1A2,
+ Value2A2%]
+ ,(member(_Value1A,Value2A),
+ %replace_in_term(Value1A,_%'$VAR'(_)
+ %,empty,Value1A1),
+ replace_in_term(Value2A,_%'$VAR'(_)
+ ,empty2,Value2A1),
+
+ %convert_to_lp_pipe(Value1A1,Value1A2),
+ convert_to_lp_pipe(Value2A1,Value2A3),
+
+ find_v_sys(V_sys),
+
+ replace_in_term(Value2A3,empty2%'$VAR'(_)
+ ,V_sys,Value2A2)
+
+
+ )
+ ,ValueA),!,
+ %val1emptyorvalsequal(Value3,Value3A),
+ %trace,
+ %Vars1=Vars2,
+ member(%[Value1a,
+ Value2a%]
+ ,ValueA),
+ %putvalue_equals4(Variable1,Value1a,Vars1,Vars3),%)->
+ putvalue_equals4(Variable2,Value2a,Vars1,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,%Value1a,
+ Value2a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,%_,
+ _],Vars2d),Vars2c1),
+
+%trace,
+ Vars2c=[[Dbw_n,Dbw_member2],[Value1,Value2a],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_member2],[Value2a,Value1]])))))))) ->true;(%writeln1(fail-ssi_interpretpart(member2,Variable1,Variable2,Vars1,Vars2,Vars2c)),
+ fail)).
+
+
+
+
+ssi_interpretpart(stringconcat,Variable1,Variable2,Variable3,Vars1,Vars2,Vars2c) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("stringconcat",Dbw_stringconcat1),Dbw_stringconcat1=Dbw_stringconcat,
+%Vars1=Vars2,
+%trace,
+
+getvalues_equals4(Variable1,Variable2,Variable3,Value1z,Value2z,Value3z,Vars1),
+debug_call(Skip,[[Dbw_n,Dbw_stringconcat],[Value1z,Value2z,Value3z]]),
+
+matrix(Matrix),findall(X,(member(Y,[Value1z,Value2z,Value3z]),(is_empty(Y)->X=o;X=i)),Z),
+foldr(atom_concat,Z,'',W),(member(W,Matrix)->true;(writeln([incorrect,stringconcat,modes,W]),abort)),
+
+%findall(Item_u,(member(Item,[Value1z,Value2z,Value3z]),replace_empty_with_undefined(Item,Item_u)),[Value1,Value2,Value3]),
+[Value1z,Value2z,Value3z]=[Value1,Value2,Value3],
+
+(W=iii->
+(%findall([Vars2b,[Value1,Value2a],Value2a],(,*
+((string_concat(Value1,Value2,Value3)
+%,
+%replace_undefined_with_empty(Item,Item_e)
+)->
+(Vars1=Vars2,
+debug_exit(Skip,[[Dbw_n,Dbw_stringconcat],[Value1,Value2,Value3]]));
+(Vars1=Vars2,
+debug_fail(Skip,[[Dbw_n,Dbw_stringconcat],[Value1,Value2,Value3]]))),
+ %putvalue_equals4(Variable2,Value2a,Vars1,Vars2b)
+ %),Vars2a),Vars2a=[[Vars2,_,Value2a]|Vars2d],
+ %findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1)),
+
+ Vars2c=[[Dbw_n,Dbw_stringconcat],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ []]
+);
+
+%numbers(3,1,[],N),
+%findall(P,(member(N1,N),get_item_n(Z,N1,Z1),(Z1=i->get_item_n([Value1,Value2,Value3],N1,P));P=[v1,N1]%(Z1=o,get_item_n([Value1a,Value2a,Value3a],N1,P))
+%),P1),
+
+(W=iio->
+ (findall([Vars2b,[Value1,Value2,Value3a],Value3a],(string_concat(Value1,Value2,Value3a),
+ putvalue_equals4(Variable3,Value3a,Vars1,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value3a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1),
+
+ Vars2c=[[Dbw_n,Dbw_stringconcat],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_stringconcat],[Value1,Value2,Value3a]]));
+
+
+(W=ioi->
+ (findall([Vars2b,[Value1,Value2a,Value3],Value2a],(string_concat(Value1,Value2a,Value3),
+ putvalue_equals4(Variable2,Value2a,Vars1,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value2a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1),
+
+ Vars2c=[[Dbw_n,Dbw_stringconcat],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_stringconcat],[Value1,Value2a,Value3]]));
+
+
+/*
+(W=ioo->
+ (findall([Vars2b,[Value1,Value2a,Value3a],Value2a,Value3a],(string_concat*(Value1,Value2a,Value3a),
+ putvalue_equals4(Variable2,Value2a,Vars1,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value2a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1),
+
+ Vars2c=[[Dbw_n,Dbw_stringconcat],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_stringconcat],[Value1,Value2a,Value3]]));
+*/
+
+(W=oii->
+ (findall([Vars2b,[Value1a,Value2,Value3],Value1a],(string_concat(Value1a,Value2,Value3),
+ putvalue_equals4(Variable1,Value1a,Vars1,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value1a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1),
+
+ Vars2c=[[Dbw_n,Dbw_stringconcat],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_stringconcat],[Value1a,Value2,Value3]]));
+
+
+/*
+(W=oio->
+ (findall([Vars2b,[Value1a,Value2,Value3],Value1a],(string_concat(Value1a,Value2,Value3),
+ putvalue_equals4(Variable1,Value1a,Vars1,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value1a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1),
+
+ Vars2c=[[Dbw_n,Dbw_stringconcat],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_stringconcat],[Value1a,Value2,Value3]]));
+*/
+
+(W=ooi->
+ (%trace,
+ findall([Vars2b,[Value1a,Value2a,Value3],Value1a,Value2a],(string_concat(Value1a,Value2a,Value3),
+ putvalue_equals4(Variable1,Value1a,Vars1,Vars2ba),
+ putvalue_equals4(Variable2,Value2a,Vars2ba,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value1a,Value2a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_,_],Vars2d),Vars2c1),
+
+ Vars2c=[[Dbw_n,Dbw_stringconcat],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_stringconcat],[Value1a,Value2a,Value3]]))
+
+))))).
+
+
+
+ssi_interpretpart(append,Variable1,Variable2,Variable3,Vars1,Vars2,Vars2c) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("append",Dbw_append1),Dbw_append1=Dbw_append,
+get_lang_word("v",Dbw_v),
+
+%Vars1=Vars2,
+ getvalues_equals4(Variable1,Variable2,Variable3,Value1z,Value2z,Value3z,Vars1),
+debug_call(Skip,[[Dbw_n,Dbw_append],[Value1z,Value2z,Value3z]]),
+
+matrix(Matrix),findall(X,(member(Y,[Value1z,Value2z,Value3z]),(contains_var([Dbw_v,_],Y)->X=o;X=i)),Z),
+foldr(atom_concat,Z,'',W),(member(W,Matrix)->true;(writeln([incorrect,append,modes,W]),abort)),
+
+%findall(Item_u,(member(Item,[Value1z,Value2z,Value3z]),replace_empty_with_undefined(Item,Item_u)),[Value1,Value2,Value3]),
+[Value1z,Value2z,Value3z]=[Value1,Value2,Value3],
+
+(
+(W=iii->
+(%findall([Vars2b,[Value1,Value2a],Value2a],(,*
+((append(Value1,Value2,Value3)
+%,
+%replace_undefined_with_empty(Item,Item_e)
+)->
+(Vars1=Vars2,
+debug_exit(Skip,[[Dbw_n,Dbw_append],[Value1,Value2,Value3]]));
+(Vars1=Vars2,
+debug_fail(Skip,[[Dbw_n,Dbw_append],[Value1,Value2,Value3]]))),
+ %putvalue_equals4(Variable2,Value2a,Vars1,Vars2b)
+ %),Vars2a),Vars2a=[[Vars2,_,Value2a]|Vars2d],
+ %findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1)),
+
+ Vars2c=[[Dbw_n,Dbw_append],[Value1,Value2,Value3],W,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ []]
+);
+
+
+%numbers(3,1,[],N),
+%findall(P,(member(N1,N),get_item_n(Z,N1,Z1),(Z1=i->get_item_n([Value1,Value2,Value3],N1,P));P=[v1,N1]%(Z1=o,get_item_n([Value1a,Value2a,Value3a],N1,P))
+%),P1),
+
+(W=iio->
+ (findall([Vars2b,[Value1,Value2,Value3a],Value3a],(append(Value1,Value2,Value3a),
+ putvalue_equals4(Variable3,Value3a,Vars1,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value3a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1),
+
+ Vars2c=[[Dbw_n,Dbw_append],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_append],[Value1,Value2,Value3a]]));
+
+
+(W=ioi->
+ (findall([Vars2b,[Value1,Value2a,Value3],Value2a],(append(Value1,Value2a,Value3),
+ putvalue_equals4(Variable2,Value2a,Vars1,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value2a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1),
+
+ Vars2c=[[Dbw_n,Dbw_append],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_append],[Value1,Value2a,Value3]]));
+
+
+%/* % this is possible later x
+(W=ioo->
+
+
+
+findall([Vars2b,[Value1,Value2a,Value3a],Value3a],(
+
+ append1(Value1,_Value2A,Value3A),%ValueA),
+ find_v_sys(V_sys),
+
+ replace_in_term(Value3A,_%'$VAR'(_)
+ ,V_sys,Value3A1),
+ Value3A1=[Value3A2|Value3A3],
+ Value3A4=[Value3A2,"|",Value3A3],
+ %val1emptyorvalsequal(Value3,Value3A),
+ %trace,
+ %Vars1=Vars2,
+ %member([Value1A,Value3A],ValueA),
+ putvalue_equals4(Variable3,Value3A4,Vars1,Vars2b)%)->
+
+
+ %(findall([Vars2b,[Value1,Value2a,Value3a],Value2a,Value3a],(append*(Value1,Value2a,Value3a),
+ %putvalue_equals4(Variable2,Value2a,Vars1,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value3a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1),
+
+ Vars2c=[[Dbw_n,Dbw_append],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_append],[Value1,Value2,Value3a]]));
+%*/
+
+(W=oii->
+ (findall([Vars2b,[Value1a,Value2,Value3],Value1a],(append(Value1a,Value2,Value3),
+ putvalue_equals4(Variable1,Value1a,Vars1,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value1a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1),
+
+ Vars2c=[[Dbw_n,Dbw_append],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_append],[Value1a,Value2,Value3]]));
+
+
+%/* possible later x
+
+(W=oio->
+
+
+(command_n_sols(N),
+ findall([Vars2b,[Value1a,Value2,Value3a],Value1a,Value3a],(findnsols(N,[Value1A1,Value3A1],(append1(Value1A,Value2,Value3A),
+ find_v_sys(V_sys1),
+ replace_in_term(Value1A,_%'$VAR'(_)
+ ,V_sys1,Value1A1),
+ find_v_sys(V_sys2),
+ replace_in_term(Value3A,_%'$VAR'(_)
+ ,V_sys2,Value3A1))
+ ,ValueA),!,
+ %val1emptyorvalsequal(Value3,Value3A),
+ %trace,
+ %Vars1=Vars2,
+ member([Value1a,Value3a],ValueA),
+ putvalue_equals4(Variable1,Value1a,Vars1,Vars3),%)->
+ putvalue_equals4(Variable3,Value3a,Vars3,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value1a,Value3a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_,_],Vars2d),Vars2c1),
+
+ Vars2c=[[Dbw_n,Dbw_append],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_append],[Value1a,Value2,Value3a]]));
+%*/
+
+(W=ooi->
+ (%trace,
+ findall([Vars2b,[Value1a,Value2a,Value3],Value1a,Value2a],(append(Value1a,Value2a,Value3),
+ putvalue_equals4(Variable1,Value1a,Vars1,Vars2ba),
+ putvalue_equals4(Variable2,Value2a,Vars2ba,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value1a,Value2a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_,_],Vars2d),Vars2c1),
+
+ Vars2c=[[Dbw_n,Dbw_append],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_append],[Value1a,Value2a,Value3]]));
+
+(W=ooo->
+
+
+(%trace,
+command_n_sols(N),
+%N=3,
+%find_v_sys(V_sys),
+replace_in_term(Value2,[Dbw_v,_],%'$VAR'(_)
+ _,Value22), findall([Vars2b,[Value1a,%Value2a,
+ Value3a],Value1a,%Value2a,
+ Value3a],(findnsols(N,[Value1A1,%Value2A1,
+ Value3A1],(append1(Value1A,Value22,Value3A),
+ find_v_sys(V_sys1),
+ find_v_sys(V_sys2),
+ replace_in_term(Value1A,_%'$VAR'(_)
+ ,empty2,Value1A2),
+ %replace_in_term(Value2A,_%'$VAR'(_)
+ %,empty,Value2A1),
+ replace_in_term(Value3A,_%'$VAR'(_)
+ ,empty2,Value3A2),
+ convert_to_lp_pipe(Value1A2,Value1A3),
+ %convert_to_lp_pipe(Value2A2,Value2A1),
+ convert_to_lp_pipe(Value3A2,Value3A3),
+ replace_in_term(Value1A3,empty2%'$VAR'(_)
+ ,V_sys1,Value1A1),
+ replace_in_term(Value3A3,empty2%'$VAR'(_)
+ ,V_sys2,Value3A1)
+ )
+ ,ValueA),!,
+ %val1emptyorvalsequal(Value3,Value3A),
+ %trace,
+ %Vars1=Vars2,
+ member([Value1a,%Value2a,
+ Value3a],ValueA),
+ putvalue_equals4(Variable1,Value1a,Vars1,Vars3b),%)->
+ %putvalue_equals4(Variable2,Value2a,Vars3b,Vars3),%)->
+ putvalue_equals4(Variable3,Value3a,Vars3b,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value1a,%Value2a,
+ Value3a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_,_],Vars2d),Vars2c1),
+
+ Vars2c=[[Dbw_n,Dbw_append],[Value1,Value2,Value3],_,_,%,%Value2a
+ _,_,%[Value1,Value2a]
+ Vars2c1],
+
+ debug_exit(Skip,[[Dbw_n,Dbw_append],[Value1a,Value2a,Value3a]]))
+
+
+)))))))->true;(%writeln1(fail-ssi_interpretpart(append,Variable1,Variable2,Variable3,Vars1,Vars2,Vars2c)),
+fail)).
+
+
+
+
+ % writeln(Vars2c),trace.
+%%; %%debug_fail(Skip,[[n,member2],[Value1,Value2]])),!.
+%% ((debug(on)->(writeln1([fail,[[n,member2],[Value1,value]],"Press c."]),(leash1(on)->true;(not(get_single_char(97))->true;abort)));true),fail))))).
+
+ssi_interpretpart(member3,Variable2,Variable1,Vars1,Vars2,Vars2c) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("member3",Dbw_member31),Dbw_member31=Dbw_member3,
+ getvalues_equals4(Variable1,Variable2,Value1,Value2,Vars1),
+debug_call(Skip,[[Dbw_n,Dbw_member3],[Value1,Value2]]), ((%Value2=empty,
+ ((findall([Vars2b,[Value1,Value2a],Value2a],(member(Value2a,Value1),
+ putvalue_equals4(Variable2,Value2a,Vars1,Vars2b)
+ ),Vars2a),Vars2a=[[Vars2,_,Value2a]|Vars2d],
+ findall([Vars2e,Vals2g],member([Vars2e,Vals2g,_],Vars2d),Vars2c1),
+ Vars2c=[[Dbw_n,Dbw_member3],[Value1,Value2],_,_,%,[Value1,Value2a]
+ _,_,Vars2c1]
+
+ ))),
+ debug_exit(Skip,[[Dbw_n,Dbw_member3],[Value1,Value2a]])).
+
+%%%
+
+/*
+ssi_interpretpart(member,Variable1,Variable2,Vars1,Vars2,Vars2c,AC) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("member",Dbw_member),
+AC=[[_Dbw_n,_Dbw_member],[Value1,Value2],[Value1a,Value2a]],
+ %getvalues_equals4(Variable1,Variable2,Value1,Value2,Vars1),
+debug_call(Skip,[[Dbw_n,Dbw_member],[Value1,Value2]]),
+ %(((not(Value2=empty)->member(Value2,Value1),
+ %((findall([[Value1,Value3],Vars2b,Value3],(member(Value3,Value1),
+ %putvalue_equals4(Variable2,Value3,Vars1,Vars2b)%%,Vars2=Vars1
+ %),Vars2a),Vars2a=[[_,Vars2,Value3]|Vars2d],
+ %findall([[Value11,Value21],Vars2e],member([[Value11,Value21],Vars2e,Value31],Vars2d),Vars2c1),
+ %Vars2c=[[[Dbw_n,Dbw_member],[Value1,Value2],Value3]|[Vars2c1]]
+ %)->
+ debug_exit(Skip,[[Dbw_n,Dbw_member],[Value1,Value3]])
+%; debug_fail(Skip,[[Dbw_n,Dbw_member],[Value1,Value2]])),
+!.
+*/
+
+ssi_interpretpart(member2,Dbw_member2,_Variable1,_Variable2,_Vars1,Vars2,_Vars2c,AC) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+%get_lang_word("member2",Dbw_member21),Dbw_member21=Dbw_member2,
+%trace,
+AC=[[Dbw_n,Dbw_member2],Value1_Value2,Value1a_Value2a,Vars2|_],
+%writeln1(AC),
+%writeln1(AC),
+ %getvalues_equals4(Variable1,Variable2,Value1,Value2,Vars1),
+ Value1_Value2=[Value1_x,Value2_x],
+debug_call(Skip,[[Dbw_n,Dbw_member2],[Value2_x,Value1_x]]),
+ %((%Value2=empty,
+ %((findall([Vars2b,Value2a],(member(Value2a,Value1),
+ %putvalue_equals4(Variable2,Value2a,Vars1,Vars2b)
+ %),Vars2a),Vars2a=[[Vars2,Value2a]|Vars2d],
+ % findall(Vars2e,member([Vars2e,_],Vars2d),Vars2c)
+ %))),
+ Value1a_Value2a=[Value1a_x,Value2a_x],
+ debug_exit(Skip,[[Dbw_n,Dbw_member2],[Value2a_x,Value1a_x]])%)
+ .
+
+
+
+
+ssi_interpretpart(stringconcat,_Variable1,_Variable2,_Variable3,_Vars1,Vars2,_Vars2c,AC) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("stringconcat",Dbw_stringconcat1),Dbw_stringconcat1=Dbw_stringconcat,
+
+AC=[[Dbw_n,Dbw_stringconcat],Values,Values_a,Vars2|_],
+
+debug_call(Skip,[[Dbw_n,Dbw_stringconcat],Values]),
+
+ debug_exit(Skip,[[Dbw_n,Dbw_stringconcat],Values_a]).
+
+
+
+
+ssi_interpretpart(append,_Variable1,_Variable2,_Variable3,_Vars1,Vars2,_Vars2c,AC) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("append",Dbw_append1),Dbw_append1=Dbw_append,
+
+AC=[[Dbw_n,Dbw_append],Values,Values_a,Vars2|_],
+
+debug_call(Skip,[[Dbw_n,Dbw_append],Values]),
+
+ debug_exit(Skip,[[Dbw_n,Dbw_append],Values_a]).
+
+%%; %%debug_fail(Skip,[[n,member2],[Value1,Value2]])),!.
+%% ((debug(on)->(writeln1([fail,[[n,member2],[Value1,value]],"Press c."]),(leash1(on)->true;(not(get_single_char(97))->true;abort)));true),fail))))).
+
+/*
+ssi_interpretpart(member3,_Variable2,_Variable1,_Vars1,Vars2,_Vars2c,AC) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("member3",Dbw_member2),
+%trace,
+AC=[[_Dbw_n,_Dbw_member],[Value1,Value2],[Value1a,Value2a],Vars2|_],
+
+%getvalues_equals4(Variable1,Variable2,Value1,Value2,Vars1),
+debug_call(Skip,[[Dbw_n,Dbw_member2],[Value1,Value2]]), %((%Value2=empty,
+ %((findall([Vars2b,Value2a],(member(Value2a,Value1),
+ %putvalue_equals4(Variable2,Value2a,Vars1,Vars2b)
+ %),Vars2a),Vars2a=[[Vars2,Value2a]|Vars2d],
+ % findall(Vars2e,member([Vars2e,_],Vars2d),Vars2c)
+ %))),
+ debug_exit(Skip,[[Dbw_n,Dbw_member2],[Value1a,Value2a]]).
+*/
+/*
+ssi_interpretpart(stringconcat,Terminal,Phrase2,Phrase1,Vars1,Vars2,Vars2c) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("stringconcat",Dbw_stringconcat),
+ %%Variables1=[Terminal,Phrase1,Phrase2], %% terminal can be v or "a"
+ ((getvalues2([Terminal,Phrase1,Phrase2],
+ [],[TerminalValue1,Phrase1Value1,Phrase2Value1],Vars1,[],[Flag1,Flag2,_Flag3]), %% prolog vars, list of vars, [v]=[prolog var]
+ %%delete(Value1,Value2,Value3A),
+
+ (findall([Vars2b,TerminalValue1,TerminalValue3,Phrase1Value1,Phrase1Value3,Phrase2Value1],(
+ (Terminal=[_Value]->TerminalValue2=[TerminalValue1];TerminalValue2=TerminalValue1),
+
+
+(Terminal=""->(TerminalValue2="",
+
+string_concat(TerminalValue2,Phrase2Value1,Phrase1Value1))->true;
+ ((var(TerminalValue2)->(string_concat(TerminalValue2,Phrase2Value1,Phrase1Value1)),string_length(TerminalValue2,1)
+ );string_concat(TerminalValue2,Phrase2Value1,Phrase1Value1))),
+
+ putvalue(Terminal,TerminalValue2,Vars1,Vars3),
+ putvalue(Phrase2,Phrase2Value1,Vars3,Vars4),
+ putvalue(Phrase1,Phrase1Value1,Vars4,Vars2b)
+
+ ),Vars2a),Vars2a=[[Vars2,TerminalValue1,TerminalValue3,Phrase1Value1,Phrase1Value3,Phrase2Value1]|Vars2d],
+ findall(Vars2e,member([Vars2e,_],Vars2d),Vars2c)),
+ (Flag1=true->TerminalValue3=variable1;TerminalValue3=TerminalValue1),
+ (Flag2=true->Phrase1Value3=variable2;Phrase1Value3=Phrase1Value1))->
+
+(debug_call(Skip,[[Dbw_n,Dbw_stringconcat],[TerminalValue3,Phrase1Value3,Phrase2]]),
+
+debug_exit(Skip,[[Dbw_n,Dbw_stringconcat],[TerminalValue1,Phrase1Value1,Phrase2Value1]])
+ );
+
+ (debug_call(Skip,[[Dbw_n,Dbw_stringconcat],[variable1,variable2,variable3]]),
+ debug_fail(Skip,[[Dbw_n,Dbw_stringconcat],[variable1,variable2,variable3]])
+ )).%!.
+*/
+
+/*
+ssi_interpretpart(grammar_part,Variables1,Vars1,Vars2) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+%get_lang_word("grammar_part",Dbw_grammar_part),
+
+ Variables1=[Terminal,Phrase1,Phrase2], %% terminal can be v or "a"
+ %%terminal(Terminal),
+ getvalues2([Terminal,Phrase1,Phrase2],
+ [],[TerminalValue1,Phrase1Value1,Phrase2Value1],Vars1,[],[Flag1,Flag2,_Flag3]), %% prolog vars, list of vars, [v]=[prolog var]
+ %%delete(Value1,Value2,Value3A),
+ (( (Terminal=[_Value]->TerminalValue2=[TerminalValue1];TerminalValue2=TerminalValue1),
+
+
+
+((string(Phrase1Value1)->Phrase1Value1=Phrase1Value11;(number(Phrase1Value1)->number_string(Phrase1Value1,Phrase1Value11);Phrase1Value1=Phrase1Value11)),
+
+(Terminal=""->TerminalValue2="";true),
+
+(((var(TerminalValue2)->(string_concat(TerminalValue2,Phrase2Value1,Phrase1Value11)),string_length(TerminalValue2,1));string_concat(TerminalValue2,Phrase2Value1,Phrase1Value11))->true;
+
+string_concat(TerminalValue2,Phrase2Value1,Phrase1Value11))->true;
+
+
+
+((Phrase1Value1=[_ItemA|_ItemsA]),(Terminal=[]->(TerminalValue2=[],
+
+((var(TerminalValue2)->length(TerminalValue2,1);true),(append(TerminalValue2,Phrase2Value1,Phrase1Value1))))->true;
+
+(append(TerminalValue2,Phrase2Value1,Phrase1Value1)->true)))),
+
+ putvalue(Terminal,TerminalValue2,Vars1,Vars3),
+ putvalue(Phrase2,Phrase2Value1,Vars3,Vars4),
+ putvalue(Phrase1,Phrase1Value1,Vars4,Vars2),
+ (Flag1=true->TerminalValue3=variable1;TerminalValue3=TerminalValue1),
+ (Flag2=true->Phrase1Value3=variable2;Phrase1Value3=Phrase1Value1))->
+ (debug_call(Skip,[[Dbw_n,grammar_part],[TerminalValue3,Phrase1Value3,Phrase2]]),
+ debug_exit(Skip,[[Dbw_n,grammar_part],[TerminalValue1,Phrase1Value1,Phrase2Value1]]));
+
+% CAW requires input,input,output with "a","ab",[v,a] where [v,a]="b"
+ (debug_call(Skip,[[Dbw_n,grammar_part],[Terminal,Phrase1,Phrase2]]),
+ (debug_fail(Skip,[[Dbw_n,grammar_part],[Terminal,Phrase1,Phrase2]])))),!.
+
+*/
+
\ No newline at end of file
diff --git a/SSI/ssi_find_state_machine.pl b/SSI/ssi_find_state_machine.pl
new file mode 100644
index 0000000000000000000000000000000000000000..73053fafd04049b4a8c2295fcf74487eedfb0848
--- /dev/null
+++ b/SSI/ssi_find_state_machine.pl
@@ -0,0 +1,526 @@
+%% finds line number to go to in predicate if true or false
+%% record predicate number
+
+/**
+
+x: load lpi first
+['ssi2.pl'].
+['ssi_find_state_machine.pl'].
+['../../../GitHub/listprologinterpreter/lpiverify4.pl'].
+['../../../GitHub/listprologinterpreter/la_strings.pl'].
+
+test(33,_,A,_),add_line_numbers_to_algorithm1(A,A2),writeln1(A2). [[0,[n,downpipe],[[v,a],[v,a],[v,b]]],[1,[n,downpipe],[[v,a],[v,b],[v,c]],":-",[[0,[n,member2],[[v,c],[v,c1]]],[1,[n,equals1],[[v,c1]]],[2,[n,equals1],[[v,c12]]],[3,[n,"->"],[[4,[n,>],[[v,a],[v,c121]]],[5,[n,downpipe],[[v,c121],[v,b],[v,c]]],[6,[n,"->"],[[7,[n,>],[[v,a],[v,c122]]],[8,[n,downpipe],[[v,c122],[v,b],[v,c]]],[9,[n,fail]]]]]]]]]
+
+
+A=[[0,[n,downpipe],[[v,a],[v,a],[v,b]]],[1,[n,downpipe],[[v,a],[v,b],[v,c]],":-",[[0,[n,member2],[[v,c],[v,c1]]],[1,[n,equals1],[[v,c1]]],[2,[n,equals1],[[v,c12]]],[3,[n,"->"],[[4,[n,>],[[v,a],[v,c121]]],[5,[n,downpipe],[[v,c121],[v,b],[v,c]]],[6,[n,"->"],[[7,[n,>],[[v,a],[v,c122]]],[8,[n,downpipe],[[v,c122],[v,b],[v,c]]],[9,[n,fail]]]]]]]]], find_state_machine1(A,B),writeln1(B).
+
+[[0,[n,downpipe],[[v,a],[v,a],[v,b]]],[1,[n,downpipe],[[v,a],[v,b],[v,c]],":-",[[0,[n,member2],[[v,c],[v,c1]]],[1,[n,equals1],[[v,c1]]],[2,[n,equals1],[[v,c12]]],[3,[n,"->"],[[4,[n,>],[[v,a],[v,c121]]],[5,[n,downpipe],[[v,c121],[v,b],[v,c]]],[6,[n,"->"],[[7,[n,>],[[v,a],[v,c122]]],[8,[n,downpipe],[[v,c122],[v,b],[v,c]]],[9,[n,fail]]]]]]]]]
+A = B
+x
+
+B=[[0,[n,downpipe],[[v,a],[v,a],[v,b]]],[1,[n,downpipe],[[v,a],[v,b],[v,c]],":-",[[0,1,-,-3,[n,member2],[[v,c],[v,c1]]],[1,2,-,-3,[n,equals1],[[v,c1]]],[2,3,-,-3,[n,equals1],[[v,c12]]],[3,4,-2,-3,[n,"->"],[[4,5,-,6,[n,>],[[v,a],[v,c121]]],[5,[end_function,3],-,-3,[n,downpipe],[[v,c121],[v,b],[v,c]]],[6,7,[end_function,3],-3,[n,"->"],[[7,8,-,9,[n,>],[[v,a],[v,c122]]],[8,[end_function,6],-,-3,[n,downpipe],[[v,c122],[v,b],[v,c]]],[9,[end_function,6],-,-3,[n,fail]]]]]]]]]
+
+***
+
+A=[[0,[n,downpipe],[[v,a],[v,a],[v,b]]],[1,[n,downpipe],[[v,a],[v,b],[v,c]],":-",[[0,[n,member2],[[v,c],[v,c1]]],[1,[n,equals1],[[v,c1]]],[2,[n,equals1],[[v,c12]]],[3,[n,"->"],[[4,[n,>],[[v,a],[v,c121]]],[5,[n,downpipe],[[v,c121],[v,b],[v,c]]],[6,[n,"->"],[[7,[n,>],[[v,a],[v,c122]]],[8,[n,downpipe],[[v,c122],[v,b],[v,c]]],[9,[n,fail]]]]]]]]], find_state_machine1(A,B,[[[n, downpipe], 3, [0, 1]]]),writeln1(B).
+
+B=
+[[0,[n,downpipe],[[v,a],[v,a],[v,b]]],
+
+[1,[n,downpipe],[[v,a],[v,b],[v,c]],":-",
+[[0,["on true",1],["go after",-],["on false",-3],["go to predicates",-],[n,member2],[[v,c],[v,c1]]],
+[1,["on true",2],["go after",-],["on false",-3],["go to predicates",-],[n,equals1],[[v,c1]]],
+[2,["on true",3],["go after",-],["on false",-3],["go to predicates",-],[n,equals1],[[v,c12]]],
+[3,["on true",4],["go after",-2],["on false",-3],[n,"->"]],
+[4,["on true",5],["go after",-],["on false",6],["go to predicates",-],[n,>],[[v,a],[v,c121]]],
+[5,["on true",[end_function,3]],["go after",-],["on false",-3],["go to predicates",[0,1]],[n,downpipe],[[v,c121],[v,b],[v,c]]],
+[6,["on true",7],["go after",[end_function,3]],["on false",-3],[n,"->"]],
+[7,["on true",8],["go after",-],["on false",9],["go to predicates",-],[n,>],[[v,a],[v,c122]]],
+[8,["on true",[end_function,6]],["go after",-],["on false",-3],["go to predicates",[0,1]],[n,downpipe],[[v,c122],[v,b],[v,c]]],
+[9,["on true",[end_function,6]],["go after",-],["on false",-3],["go to predicates",-],[n,fail]]]]]
+
+***
+
+A=
+[
+ [[n,reverse],[[],[v,l],[v,l]]],
+ [[n,reverse],[[v,l],[v,m],[v,n]],":-",
+ [ [[n,head],[[v,l],[v,h]]],
+ [[n,tail],[[v,l],[v,t]]],
+ [[n,wrap],[[v,h],[v,h1]]],
+ [[n,append],[[v,h1],[v,m],[v,o]]],
+ [[n,reverse],[[v,t],[v,o],[v,n]]]
+ ]
+ ]
+],
+add_line_numbers_to_algorithm1(A,A2),writeln1(A2).
+
+A2=
+[[0,[n,reverse],[[],[v,l],[v,l]]],[1,[n,reverse],[[v,l],[v,m],[v,n]],":-",[[0,[n,head],[[v,l],[v,h]]],[1,[n,tail],[[v,l],[v,t]]],[2,[n,wrap],[[v,h],[v,h1]]],[3,[n,append],[[v,h1],[v,m],[v,o]]],[4,[n,reverse],[[v,t],[v,o],[v,n]]]]]]
+
+['find_pred_sm.pl'].
+find_pred_sm(Reserved_words1,_),writeln(Reserved_words1).
+[+,-,*,/,abort,any,append,atom,brackets,call,ceiling,code,creep,cut,date,delete,equals1,equals2,equals3,equals4,exit,fail,grammar,head,is,length,letters,list,member,member2,n,not,number,or,predicatename,random,round,skip,string,string_from_file,stringconcat,stringtonumber,sys,findall_sys,t,tail,true,unwrap,v,variable,vgp,wrap,input,output,string_length,sort,intersection,read_string,writeln,atom_string,trace,notrace,sqrt,notrace]
+
+A=
+[[0,[n,reverse],[[],[v,l],[v,l]]],[1,[n,reverse],[[v,l],[v,m],[v,n]],":-",[[0,[n,head],[[v,l],[v,h]]],[1,[n,tail],[[v,l],[v,t]]],[2,[n,wrap],[[v,h],[v,h1]]],[3,[n,append],[[v,h1],[v,m],[v,o]]],[4,[n,reverse],[[v,t],[v,o],[v,n]]]]]],
+find_state_machine1(A,B,_,[+,-,*,/,abort,any,append,atom,brackets,call,ceiling,code,creep,cut,date,delete,equals1,equals2,equals3,equals4,exit,fail,grammar,head,is,length,letters,list,member,member2,n,not,number,or,predicatename,random,round,skip,string,string_from_file,stringconcat,stringtonumber,sys,findall_sys,t,tail,true,unwrap,v,variable,vgp,wrap,input,output,string_length,sort,intersection,read_string,writeln,atom_string,trace,notrace,sqrt,notrace]),writeln1(B).
+
+B=
+[[0,[n,reverse],[[],[v,l],[v,l]]],[1,[n,reverse],[[v,l],[v,m],[v,n]],":-",[[0,["on true",1],["go after",-],["on false",-3],["go to predicates",-],[n,head],[[v,l],[v,h]]],[1,["on true",2],["go after",-],["on false",-3],["go to predicates",-],[n,tail],[[v,l],[v,t]]],[2,["on true",3],["go after",-],["on false",-3],["go to predicates",-],[n,wrap],[[v,h],[v,h1]]],[3,["on true",4],["go after",-],["on false",-3],["go to predicates",-],[n,append],[[v,h1],[v,m],[v,o]]],[4,["on true",-2],["go after",-],["on false",-3],["go to predicates",-],[n,reverse],[[v,t],[v,o],[v,n]]]]]]
+
+
+
+[debug] ?- test(77,_,C,_),add_line_numbers_to_algorithm1(C,D),writeln1(C),writeln1(D).
+C=[[[n,findall1],[[v,a],[v,b]],":-",[[[n,findall],[[v,a1],[[n,member2],[[v,a],[v,a1]]],[v,b]]]]]]
+D=[[0,[n,findall1],[[v,a],[v,b]],":-",[[0,[n,findall],[[v,a1],[v,b],[[1,[n,member2],[[v,a],[v,a1]]]]]]]]]
+
+[debug] ?- find_state_machine1([[0,[n,findall1],[[v,a],[v,b]],":-",[[0,[n,findall],[[v,a1],[v,b],[[1,[n,member2],[[v,a],[v,a1]]]]]]]]],F,["+","-","*","/","abort","any","append","atom","brackets","call","ceiling","code","creep","cut","date","delete","equals1","equals2","equals3","equals4","equals4_on","equals4_off","exit","fail","grammar","head","is","length","letters","list","member","member2","member3","n","not","number","or","predicatename","random","round","skip","string","string_from_file","stringconcat","stringtonumber","sys","findall_sys","t","tail","true","unwrap","v","variable","vgp","wrap","input","output","string_length","sort","intersection","read_string","writeln","atom_string","trace","notrace","sqrt","notrace","get_lang_word"]),writeln1(F).
+F=[[0,[n,findall1],[[v,a],[v,b]],":-",[[0,["on true",1],["go after",-2],["on false",-3],[n,findall],[[v,a1],[v,b]]],[1,["on true",[end_function,0]],["go after",-],["on false",-3],["go to predicates",-],[n,member2],[[v,a],[v,a1]]]]]]
+
+**/
+
+find_state_machine1(Algorithm1,Algorithm2,Pred_numbers) :-
+ find_state_machine2(Algorithm1,[],Algorithm2,Pred_numbers).
+
+find_state_machine2([],Algorithm,Algorithm,_) :- !.
+find_state_machine2(Algorithm1,Algorithm2,Algorithm3,Pred_numbers) :-
+ Algorithm1=[Function1|Functions],
+ ((Function1=[Number,Name,Arguments1,Symbol1,Body1],symbol(Symbol1,Symbol2),
+ findall(Arguments3,(member(Arguments2,Arguments1),slp2lp_variables(Arguments2,Arguments3)),Arguments4),
+ find_state_machine_body2(Body1,Body2,-2,-3,Pred_numbers),
+ append(Algorithm2,[[Number,Name,Arguments4,Symbol2,Body2]],Algorithm4))
+ /*->true;
+
+ ((Function1=[Number,Name,Symbol1,Body1],symbol(Symbol1,Symbol2),
+
+ find_state_machine_body2(Body1,Body2,-2,-3,Pred_numbers),
+ append(Algorithm2,[[Number,Name,[],Symbol2,Body2]],Algorithm4))->true;
+
+ ((Function1=[Number,Name,Arguments1],symbol(Symbol1,Symbol2),
+ findall(Arguments3,(member(Arguments2,Arguments1),slp2lp_variables(Arguments2,Arguments3)),Arguments4),
+ append(Algorithm2,[[Number,Name,Arguments4,Symbol2,[[[n,true]]]]],Algorithm4))->true;
+
+ (Function1=[Number,Name],symbol(Symbol1,Symbol2),
+ append(Algorithm2,[[Number,Name,[],Symbol2,[[[n,true]]]]],Algorithm4))))
+ */
+ ),
+ %%writeln1([Number,Name,Arguments4,Symbol2,Body2]),
+ %%trace,
+ find_state_machine2(Functions,Algorithm4,Algorithm3,Pred_numbers).
+
+ %%%****Delete these duplicate predicates
+symbol(Symbol,Symbol) :-!.
+
+%%slp2lp_variables(Name1,[v,Name1]) :- predicate_or_rule_name(Name1),!.
+slp2lp_variables(Name,Name) :- !.
+
+/**
+find_state_machine_body(Body1,Body2) :-
+ findall(*,(member(Statement1,Body1
+find_state_machine_body(Body1,[],Body2) :-
+
+**/
+
+%%predicate_or_rule_name([A,B]) :- atom(A),is_list(B),!.
+
+/**
+defined in grammar.pl
+predicate_or_rule_name([V_or_n,_Name]) :- (V_or_n=v->true;V_or_n=n),!.%%,atom(Name),!.
+**/
+
+%% x: predicate_or_rule_name(V_or_n) :- (V_or_n=v->true;V_or_n=n),fail,!.
+
+find_state_machine_body2([],[],_,_,_):-!.%%,Body3
+
+
+%%find_state_machine_body2([],Body,Body) :- !.
+find_state_machine_body2(Body1,Body2%%,Body3
+,Return_line_true,Return_line_false,Pred_numbers) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("exit_function",Dbw_exit_function1),Dbw_exit_function1=Dbw_exit_function,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+get_lang_word("fail_function",Dbw_fail_function1),Dbw_fail_function1=Dbw_fail_function,
+
+ Body1=[[Number,[Dbw_n,"[]"],[Statements1|Statements1a]]|Statements2
+ ],
+ not(predicate_or_rule_name(Statements1)),
+ not(number(Statements1)),
+ find_first_line_number(Statements1,Statements1_number),
+
+ (Statements1a=[]->Statements1a_number=[Dbw_exit_function,Number];
+ find_first_line_number(Statements1a,Statements1a_number)),
+
+ (Statements2=[]->Statements2_number=Return_line_true;
+ find_first_line_number(Statements2,Statements2_number)),
+
+
+ %%find_first_line_number(Statements2,Statements2_number),
+ find_state_machine_body2([Statements1],Body3,Statements1a_number,[Dbw_fail_function,Number],Pred_numbers), %% 2->1
+
+ find_state_machine_body2([Statements1a],Body4,[Dbw_exit_function,Number],[Dbw_fail_function,Number],Pred_numbers),
+ find_state_machine_body2([Statements2],Body5,Return_line_true,Return_line_false,Pred_numbers),
+
+ maplist(append,[[Body3,Body4,Body5]],[Body345]),
+
+ %% [A,B1,B2,C| - A - Line number, B1 - Line to go to if true,
+ %% B2 - Line to go to next
+ %% C - Line to go to if false
+
+Body6=[Number,[Dbw_on_true,Statements1_number],[Dbw_go_after,Statements2_number],[Dbw_on_false,Return_line_false],[Dbw_go_to_predicates,-],[Dbw_n,"[]"]%,Body34
+ ],
+ append([Body6],Body345,Body2),
+ !.
+
+
+%% make predicates into dcgs with bottom case, to give input at any line x doesn't need to go back to any matching line, needs a single line x dcg would allow traversing tree structure x give a return to number as goes
+
+%% if fails, back-tracks along track list x goes to return line in nested if thens
+%% returns to choice points when finishes predicates
+%% -3 if successfully finishes predicate x
+
+%%
+
+find_state_machine_body2(Body1,Body2,Return_line_true,Return_line_false,Pred_numbers) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+get_lang_word("exit_function",Dbw_exit_function1),Dbw_exit_function1=Dbw_exit_function,
+get_lang_word("fail_function",Dbw_fail_function1),Dbw_fail_function1=Dbw_fail_function,
+
+%%trace,
+ Body1=[[Number1,[Dbw_n,Dbw_not],Statement]|Statements2
+ ],
+ %trace,
+ find_first_line_number(Statement,Statement_number),
+ (Statements2=[]->Statements2_number=Return_line_true;
+ find_first_line_number(Statements2,Statements2_number)),
+ %%%% swap args 3,4 ?
+ find_state_machine_body2([Statement],Body3,[Dbw_exit_function,Number1],[Dbw_fail_function,Number1],Pred_numbers),
+
+ %writeln1(Body3),
+ find_state_machine_body2([Statements2],Body4,Return_line_true,Return_line_false,Pred_numbers),
+ %%Number2 is Number1+1,
+ %writeln1(Body4),
+ %%if_empty_list_then_return(Statements2,Number2,Number3),
+
+ maplist(append,[[Body3,Body4]],[Body34]),
+
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+
+ Body2a=[Number1,[Dbw_on_true,Statement_number],[Dbw_go_after,Return_line_false],
+ [Dbw_on_false,Statements2_number],[Dbw_go_to_predicates,-],
+ [Dbw_n,Dbw_not]],
+ append([Body2a],Body34,Body2),
+ %append([Body5],Body4
+ % ,Body2),
+
+ !.
+
+
+%% s1 and s2 may need separate line numbers for nondet for or
+%% find first line number in each of s1, s2
+%% account for brackets
+%% vars have separate list for nondet, splices existing lists
+find_state_machine_body2(Body1,Body2,Return_line_true,Return_line_false,Pred_numbers) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+get_lang_word("exit_function",Dbw_exit_function1),Dbw_exit_function1=Dbw_exit_function,
+ Body1=[[Number,[Dbw_n,Dbw_or],[Statements1,Statements2]]|Statements3],
+
+ find_first_line_number(Statements1,Statements1_number),
+ find_first_line_number(Statements2,Statements2_number),
+ (Statements3=[]->Statements3_number=Return_line_true;
+ find_first_line_number(Statements3,Statements3_number)),
+ find_state_machine_body2([Statements1],Body3,[Dbw_exit_function,Number],Statements2_number,Pred_numbers),
+ find_state_machine_body2([Statements2],Body4,[Dbw_exit_function,Number],Return_line_false,Pred_numbers),
+ find_state_machine_body2([Statements3],Body5,Return_line_true,Return_line_false,Pred_numbers),
+ %%Number2 is Number1+1,
+ %%if_empty_list_then_return(Statements3,Number2,Number3),
+ get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+
+
+
+ maplist(append,[[Body3,Body4,Body5]],[Body345]),
+ Body6=[Number,[Dbw_on_true,Statements1_number],[Dbw_go_after,Statements3_number],[Dbw_on_false,Return_line_false],[Dbw_go_to_predicates,-],[Dbw_n,Dbw_or]],%Body34
+ %],
+ append([Body6],Body345,Body2),
+ !.
+
+%% If true at end of section, return to next line
+
+find_state_machine_body2(Body1,Body2,Return_line_true,Return_line_false,Pred_numbers) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("exit_function",Dbw_exit_function1),Dbw_exit_function1=Dbw_exit_function,
+
+ get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+
+ Body1=[[Number,[Dbw_n,"->"],[Statements1,Statements2]]|Statements3],
+
+ find_first_line_number(Statements1,Statements1_number),
+ find_first_line_number(Statements2,Statements2_number),
+ (Statements3=[]->Statements3_number=Return_line_true;
+ find_first_line_number(Statements3,Statements3_number)),
+find_state_machine_body2([Statements1],Body3,Statements2_number,Return_line_false,Pred_numbers),
+ find_state_machine_body2([Statements2],Body4,[Dbw_exit_function,Number],Return_line_false,Pred_numbers),
+
+ find_state_machine_body2([Statements3],Body5,Return_line_true,Return_line_false,Pred_numbers),
+
+ maplist(append,[[Body3,Body4,Body5]],[Body345]),
+ %append(Body3,Body4,Body34),
+ Body6=[Number,[Dbw_on_true,Statements1_number],[Dbw_go_after,Statements3_number],[Dbw_on_false,Return_line_false],[Dbw_go_to_predicates,-],[Dbw_n,"->"]],
+ append([Body6],Body345,Body2),
+ %append(Body61,Body5,Body2),
+
+ !.
+
+
+
+
+find_state_machine_body2(Body1,Body2,Return_line_true,Return_line_false,Pred_numbers) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("exit_function",Dbw_exit_function1),Dbw_exit_function1=Dbw_exit_function,
+ get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+ Body1=[[Number,[Dbw_n,"->"],[Statements1,Statements2,Statements2a]]|Statements3],
+ %trace,
+
+ find_first_line_number(Statements1,Statements1_number),
+ find_first_line_number(Statements2,Statements2_number),
+ find_first_line_number(Statements2a,Statements2a_number),
+ %%trace,
+ (Statements3=[]->Statements3_number=Return_line_true;
+ find_first_line_number(Statements3,Statements3_number)),
+ find_state_machine_body2([Statements1],Body3,Statements2_number,Statements2a_number,Pred_numbers),
+ find_state_machine_body2([Statements2],Body4,[Dbw_exit_function,Number],Return_line_false,Pred_numbers),
+ %%trace,
+ find_state_machine_body2([Statements2a],Body5,[Dbw_exit_function,Number],Return_line_false,Pred_numbers),
+ find_state_machine_body2([Statements3],Body6,Return_line_true,Return_line_false,Pred_numbers),
+
+ maplist(append,[[Body3,Body4,Body5,Body6]],[Body3456]),
+ Body7=[Number,[Dbw_on_true,Statements1_number],[Dbw_go_after,Statements3_number],[Dbw_on_false,Return_line_false],[Dbw_go_to_predicates,-],[Dbw_n,"->"]],
+ append([Body7],Body3456,Body2),
+ %append(Body71,Body6,Body2),
+
+ !.
+
+
+find_state_machine_body2(Body1,Body2,Return_line_true,Return_line_false,Pred_numbers) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+get_lang_word("findall_exit_function",Dbw_findall_exit_function1),Dbw_findall_exit_function1=Dbw_findall_exit_function,
+get_lang_word("findall_fail_function",Dbw_findall_fail_function1),Dbw_findall_fail_function1=Dbw_findall_fail_function,
+ get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+
+Body1=[[Number,[Dbw_n,Dbw_findall],[Statements1,Statements2,Statements2a]]|Statements3],
+ %trace,
+
+ %find_first_line_number(Statements1,Statements1_number),
+ %find_first_line_number(Statements2,Statements2_number),
+ find_first_line_number(Statements2a,Statements2a_number),
+ %%trace,
+ (Statements3=[]->Statements3_number=Return_line_true;
+ find_first_line_number(Statements3,Statements3_number)),
+ %find_state_machine_body2([Statements1],Body3,Statements2_number,Statements2a_number,Pred_numbers),
+ %find_state_machine_body2([Statements2],Body4,[end_function,Number],Return_line_false,Pred_numbers),
+ %%trace,
+ find_state_machine_body2(Statements2a,Body5,[Dbw_findall_exit_function,Number],[Dbw_findall_fail_function,Number]%Return_line_false
+ ,Pred_numbers),
+ find_state_machine_body2(Statements3,Body6,Return_line_true,Return_line_false,Pred_numbers),
+
+ maplist(append,[[%Body3,Body4,
+ Body5,Body6]],[Body56]),
+ Body7=[Number,[Dbw_on_true,Statements2a_number],[Dbw_go_after,Statements3_number],[Dbw_on_false,Return_line_false],[Dbw_go_to_predicates,-],[Dbw_n,Dbw_findall],[Statements1,Statements2]],
+ append([Body7],Body56,Body2),
+ %append(Body71,Body6,Body2),
+
+ !.
+
+
+find_state_machine_body2(Body1,Body2,Return_line_true,Return_line_false,Pred_numbers) :-
+ Body1=[]->Body2=[];
+ (Body1=[Statement|Statements],
+ ((
+ (get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ Statement=[N,[Dbw_n,_]|_],number(N))->
+ (%not(predicate_or_rule_name(Statement)),
+ %not(number(Statement)),
+ (Statements=[]->Statements_number=Return_line_true;
+ find_first_line_number(Statements,Statements_number)),
+ find_state_machine_statement1(Statement,Result1,Statements_number,Return_line_false,Pred_numbers));
+
+find_state_machine_body2(Statement,Body2,Return_line_true,Return_line_false,Pred_numbers))),
+ find_state_machine_body2(Statements,Result2,Return_line_true,Return_line_false,Pred_numbers)),
+ append_list2([Result1,Result2],Body2),!.
+
+
+find_state_machine_body2(Body1,Body2,Return_line_true,Return_line_false,Pred_numbers) :-
+ Body1=[]->Body2=[];
+ (Body1=[Statement|Statements],
+ ((
+ (get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+ Statement=[N,[Dbw_v,_]|_],number(N))->
+ (%not(predicate_or_rule_name(Statement)),
+ %not(number(Statement)),
+ (Statements=[]->Statements_number=Return_line_true;
+ find_first_line_number(Statements,Statements_number)),
+ find_state_machine_statement1(Statement,Result1,Statements_number,Return_line_false,Pred_numbers));
+
+find_state_machine_body2(Statement,Body2,Return_line_true,Return_line_false,Pred_numbers))),
+ find_state_machine_body2(Statements,Result2,Return_line_true,Return_line_false,Pred_numbers)),
+ append_list2([Result1,Result2],Body2),!.
+
+ /*
+find_state_machine_body2(Body1,Body2,Return_line_true,Return_line_false,Pred_numbers) :-
+
+ Body1=[[Number,[n,maplist],[Statements1,Statements2,Statements2a,Statements2b]]|Statements3],
+ %trace,
+
+ %find_first_line_number(Statements1,Statements1_number),
+ %find_first_line_number(Statements2,Statements2_number),
+ find_first_line_number(Statements2a,Statements2a_number),
+ %%trace,
+ (Statements3=[]->Statements3_number=Return_line_true;
+ find_first_line_number(Statements3,Statements3_number)),
+ %find_state_machine_body2([Statements1],Body3,Statements2_number,Statements2a_number,Pred_numbers),
+ %find_state_machine_body2([Statements2],Body4,[end_function,Number],Return_line_false,Pred_numbers),
+ %%trace,
+ find_state_machine_body2(Statements2a,Body5,[end_function,Number],Return_line_false,Pred_numbers),
+ find_state_machine_body2(Statements3,Body6,Return_line_true,Return_line_false,Pred_numbers),
+
+ append_list2([%Body3,Body4,
+ Body5],Body345),
+ Body7=[Number,["on true",Statements2a_number],["go after",Statements3_number],["on false",Return_line_false],[n,findall],[Statements1,Statements2]],
+ append([Body7],Body345,Body71),
+ append(Body71,Body6,Body2),
+
+ !.
+ */
+ /**
+find_state_machine_statement1(Statement,Result1,Return_line_true,Return_line_false,Pred_numbers1) :-
+ ((Statement=[Number,[n,Name1],[Arguments1,Arguments2,Arguments3]],
+
+ Name1=findall,
+%trace,
+ length(Arguments,Arity1),
+
+ find_state_machine_body2(Arguments3,Result3,Return_line_true,Return_line_false,Pred_numbers1),
+
+ %atom_string(Name1,Name),
+ %(member(Name,Reserved_words)->Pred_numbers2=none;(member([[n,Name],Arity1,Pred_numbers2],Pred_numbers1))),
+ %(Name1=downpipe->trace;true),
+ %(member([[n,Name1],Arity1,Pred_numbers2a],Pred_numbers1)->Pred_numbers2=Pred_numbers2a;Pred_numbers2=(-)),
+
+ %Arguments=Result2,
+ %findall(Argument,(member(Argument,Arguments),(predicate_or_rule_name(Argument))),Result2),
+ Result1=[[Number,["on true",Return_line_true],["go after",-],["on false",Return_line_false],["go to predicates",-],[n,Name1],[Arguments1,Arguments2]]])),
+
+ append_list2([Result1,Result3],Result2),!.
+ **/
+
+find_state_machine_statement1(Statement,Result1,Return_line_true,Return_line_false,Pred_numbers1) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+ ((Statement=[Number,[Dbw_n,Name1],Arguments],
+
+ not(Name1=Dbw_findall),
+
+ length(Arguments,Arity1),
+ %atom_string(Name1,Name),
+ %(member(Name,Reserved_words)->Pred_numbers2=none;(member([[n,Name],Arity1,Pred_numbers2],Pred_numbers1))),
+ %(Name1=downpipe->trace;true),
+ (member([[Dbw_n,Name1],Arity1,Pred_numbers2a],Pred_numbers1)->Pred_numbers2=Pred_numbers2a;Pred_numbers2=(-)),
+
+ Arguments=Result2,
+ %findall(Argument,(member(Argument,Arguments),(predicate_or_rule_name(Argument))),Result2),
+
+ Result1=[[Number,[Dbw_on_true,Return_line_true],[Dbw_go_after,-],[Dbw_on_false,Return_line_false],[Dbw_go_to_predicates,Pred_numbers2],[Dbw_n,Name1],Result2]])->true;
+ (%%Statement=[_,[n,Name]],
+ %%trace,
+ Statement=[Number,[Dbw_n,Name1]],
+ length([],Arity1),
+ %atom_string(Name1,Name),
+%(member(Name,Reserved_words)->Pred_numbers2=none;(member([[n,Name],Arity1,Pred_numbers2],Pred_numbers1))),
+(member([[Dbw_n,Name1],Arity1,Pred_numbers2a],Pred_numbers1)->Pred_numbers2=Pred_numbers2a;Pred_numbers2=(-)),
+
+
+Result1=[[Number,[Dbw_on_true,Return_line_true],[Dbw_go_after,-],[Dbw_on_false,Return_line_false],[Dbw_go_to_predicates,Pred_numbers2],[Dbw_n,Name1]]])).
+
+
+
+ find_state_machine_statement1(Statement,Result1,Return_line_true,Return_line_false,_Pred_numbers1) :-
+get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+ ((Statement=[Number,[Dbw_v,Name1],Arguments],
+ %trace,
+
+ not(Name1=Dbw_findall),
+
+ %length(Arguments,Arity1),
+ %atom_string(Name1,Name),
+ %(member(Name,Reserved_words)->Pred_numbers2=none;(member([[n,Name],Arity1,Pred_numbers2],Pred_numbers1))),
+ %(Name1=downpipe->trace;true),
+ %(member([[v,Name1],Arity1,Pred_numbers2a],Pred_numbers1)->Pred_numbers2=Pred_numbers2a;Pred_numbers2=(-)),
+
+ Pred_numbers2=(*),
+
+ Arguments=Result2,
+ %findall(Argument,(member(Argument,Arguments),(predicate_or_rule_name(Argument))),Result2),
+ Result1=[[Number,[Dbw_on_true,Return_line_true],[Dbw_go_after,-],[Dbw_on_false,Return_line_false],[Dbw_go_to_predicates,Pred_numbers2],[Dbw_v,Name1],Result2]])->true;
+ (%%Statement=[_,[n,Name]],
+ %%trace,
+ Statement=[Number,[Dbw_v,Name1]],
+ %length([],Arity1),
+ %atom_string(Name1,Name),
+%(member(Name,Reserved_words)->Pred_numbers2=none;(member([[n,Name],Arity1,Pred_numbers2],Pred_numbers1))),
+%(member([[v,Name1],Arity1,Pred_numbers2a],Pred_numbers1)->Pred_numbers2=Pred_numbers2a;Pred_numbers2=(-)),
+ Pred_numbers2=(*),
+
+Result1=[[Number,[Dbw_on_true,Return_line_true],[Dbw_go_after,-],[Dbw_on_false,Return_line_false],[Dbw_go_to_predicates,Pred_numbers2],[Dbw_v,Name1]]])).
+ %%writeln([[Number,Return_line_true,Return_line_false,[n,Name],Result2]]).
+
+%%if_empty_list_then_return([],_Number,-3) :- !.
+%%if _empty_list_then_return(Statements,Number,Number) :-
+%% not(Statements=[]),!.
+
+find_first_line_number([],-2) :- !.
+find_first_line_number(Number,Number) :- number(Number),!.
+find_first_line_number([[Number|_]|_],Number) :- number(Number),!.
+find_first_line_number([Statement|_],Number) :-
+%%trace,
+ not((Statement=[Number|_],number(Number))),
+ find_first_line_number(Statement,Number),!.
+
+/**
+ Result1=[[Number,Return_line_true,-,Return_line_false,[n,Name]]])).
+
+ Result1=[[Number,Return_line_true,-,Return_line_false,[n,Name],Result2]])->true;
+
+**/
\ No newline at end of file
diff --git a/SSI/ssi_listrecursion4.pl b/SSI/ssi_listrecursion4.pl
new file mode 100644
index 0000000000000000000000000000000000000000..5ec6ef2af8fe2000bfdbd82e498ad97d00471423
--- /dev/null
+++ b/SSI/ssi_listrecursion4.pl
@@ -0,0 +1,490 @@
+/*
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_member],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("member",Dbw_member1),Dbw_member1=Dbw_member,
+%%writeln1(8),
+ ssi_interpretpart(member,Variable1,Variable2,Vars1,Vars2).
+*/
+
+
+
+
+
+interpretstatement1(ssi,_Functions0,_Functions,Query1,Vars1,Vars8,true,nocut,_) :-
+%writeln1([*,_Functions0,_Functions]),
+get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("call",Dbw_call1),Dbw_call1=Dbw_call,
+
+%%writeln1("h1/10"),
+%trace,
+%find_pred_sm(Reserved_words1),
+ ((Query1=[[Dbw_n,Dbw_call],[[lang,Lang1],Debug1,[Function,Arguments],Functions%,Result
+ ]],Tm=off%,
+ %not(member(Dbw_call,Reserved_words1))
+ )->true;
+ (Query1=[[Dbw_n,Dbw_call],[[lang,Lang1],Debug1,[Function,Arguments],Types,Modes,Functions%,Result
+ ]],Tm=on)),
+
+ %trace,
+
+ lang(Lang2a),
+ types(Types2a),
+ (Types2a=on->(typestatements(TypeStatements2a),
+ modestatements(ModeStatements2a));true),
+
+ (Lang1=same->lang(Lang2);Lang2=Lang1),
+ (Debug1=same->debug(Debug2);Debug2=Debug1),
+
+ %%not(Function=[n,grammar]->true;Function=[n,grammar_part]), ****
+%%writeln1(["Arguments",Arguments,"Vars1",Vars1]),
+ %%***writeln1(substitutevarsA1(Arguments,Vars1,[],Vars3,[],FirstArgs)),
+ ((Function=[Dbw_v,Function2],
+ not(reserved_word2(Function2)))->
+ (append([Function],Arguments,Arguments1),
+ substitutevarsA1(Arguments1,Vars1,[],Vars3,[],FirstArgs),
+ Vars3=[Function1|Vars31],
+ Query2=[Function1,Vars31]);
+ (substitutevarsA1(Arguments,Vars1,[],Vars3,[],FirstArgs),
+ %simplify(Vars32,Vars3), %%% var to value, after updatevars: more vars to values, and select argument vars from latest vars
+%%writeln1([substitutevarsA1,arguments,Arguments,vars1,Vars1,vars3,Vars3,firstargs,FirstArgs]),
+ Query2=[Function,Vars3])), %% Bodyvars2?
+%% debug(on)->writeln1([call,[Function,[Vars3]]]),
+%%writeln1(["Query2",Query2,"Functions0",Functions0]),
+
+
+ %interpret2(Query2,Functions0,Functions0,Result1),
+
+ remember_and_turn_off_debug(Debug),
+
+
+
+
+ %trace,
+
+ query_box(Query2,_Query3,Functions,Functions1),
+ convert_to_grammar_part1(Functions1,[],Functions2,_),
+ %insert_cuts(Functions2a,Functions2),
+%Functions1=Functions2,
+ %writeln1(convert_to_grammar_part1(Functions1,[],Functions2,_)), %trace,
+ %writeln1(Functions2),
+ %%pp3(Functions2),
+ %%writeln1(lucianpl11(Debug,Query,Functions2,Functions2,Result)),
+ %findall(Result1,
+
+ %trace,
+ add_line_numbers_to_algorithm1(Functions2,Functions2a),
+%Functions2=Functions2a,
+ %writeln1(add_line_numbers_to_algorithm1(Functions2,Functions2a)),
+ %writeln1(Functions2a),
+%append(Functions2a,Functions1a,Functions2b),
+
+ pred_numbers(Pred_numbers0),
+
+ %find_pred_sm(Reserved_words),%,"en"),
+find_pred_numbers(Functions2a,[],%Reserved_words,
+Pred_numbers),
+
+ retractall(pred_numbers(_)),
+ assertz(pred_numbers(Pred_numbers)),
+%trace,
+
+ find_state_machine1(Functions2a,Functions3a,Pred_numbers),
+
+
+
+
+
+ %trace,
+ ((Tm=off->international_lucianpl1([lang,Lang2],%off,%
+ Debug2,
+ Query2,Functions3a,Result1a)
+ %international_interpret([lang,Lang2],off,%Debug2,
+%Query2,Functions,Result1a)
+;
+
+international_lucianpl1([lang,Lang2],%off,%
+Debug2,
+Query2,Types,Modes,Functions3a,Result1a) %international_interpret([lang,Lang2],off,%Debug2
+ %Query2,Types,Modes,Functions,Result1a)
+ )->true;(turn_back_debug(Debug),false)),
+
+ turn_back_debug(Debug),
+
+
+ member(Result1,Result1a),
+
+ retractall(pred_numbers(_)),
+ assertz(pred_numbers(Pred_numbers0)),
+
+ retractall(lang(_)),
+ assertz(lang(Lang2a)),
+
+ retractall(types(_)),
+ assertz(types(Types2a)),
+
+ (Types2a=on->(
+ retractall(typestatements(_)),
+ %findall([A,C],(member([A,B],TypeStatements2a),expand_types(B,[],C)),TypeStatements2a1),
+
+assertz(typestatements(TypeStatements2a)),
+ retractall(modestatements(_)),
+ assertz(modestatements(ModeStatements2a)));true),
+
+
+ updatevars2(FirstArgs,Result1,[],Vars5),
+ updatevars3(Vars1,Vars5,Vars6),
+ reverse(Vars6,[],Vars7),
+ ((not(Vars7=[])->
+ %%Vars7=[Var71|Vars72],
+ (%trace,
+ unique1(Vars7,[],Vars8)%,notrace
+ )
+);(
+%%writeln1(here1),
+ Vars8=[])).
+
+
+
+
+interpretstatement1(ssi,Functions0,_Functions,Query1,Vars1,Vars8,true,nocut,_) :-
+
+ %trace,
+ %writeln(interpretstatement1(ssi,Functions0,_Functions,Query1,Vars1,Vars8,true,nocut)),
+
+get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("call",Dbw_call1),Dbw_call1=Dbw_call,
+
+%%writeln1("h1/10"),
+%trace,
+%writeln([Functions0,Functions0]),
+%find_pred_sm(Reserved_words1),
+
+ %trace,
+ ((Query1=[[Dbw_n,Dbw_call],[Function,Arguments]]%, not_reserved_word(Function,Reserved_words1)
+ )->true;
+(Query1=[Function,Arguments],
+Function=[Dbw_v,_Function2]
+%not(reserved_word2(Function2))
+))%,Function=[Dbw_n1,Function_a],atom_string(Function_a,Function_s),
+%,not_reserved_word(Function,Reserved_words1))
+%)
+,
+
+%trace,
+ %%not(Function=[n,grammar]->true;Function=[n,grammar_part]), ****
+%%writeln1(["Arguments",Arguments,"Vars1",Vars1]),
+ %%***writeln1(substitutevarsA1(Arguments,Vars1,[],Vars3,[],FirstArgs)),
+ ((Function=[Dbw_v,Function2],
+ not(reserved_word2(Function2)))->
+ (%trace,
+ append([Function],Arguments,Arguments1),
+ %trace,
+ substitutevarsA1(Arguments1,Vars1,[],Vars3,[],FirstArgs),
+ Vars3=[Function1|Vars31],
+ Query2=[Function1,Vars31]);
+ (%trace,
+ substitutevarsA1(Arguments,Vars1,[],Vars3,[],FirstArgs),
+ %simplify(Vars32,Vars3), %%% var to value, after updatevars: more vars to values, and select argument vars from latest vars
+%writeln1([substitutevarsA1,arguments,Arguments,vars1,Vars1,vars3,Vars3,firstargs,FirstArgs]),
+ Query2=[Function,Vars3])), %% Bodyvars2?
+%(Function=[n,compound213]->%true
+%trace
+%;true),
+ %trace,
+%% debug(on)->writeln1([call,[Function,[Vars3]]]),
+%%writeln1(["Query2",Query2,"Functions0",Functions0]),
+%trace,
+%writeln1(interpret2(Query2,Functions0,Functions0,Result1)),
+
+ remember_and_turn_off_debug(Debug),
+ turndebug(off), %trace,
+ (lucianpl1(off,%,off,%Debug,
+ Query2,Functions0,Result1a)%interpret2(Query2,Functions0,Functions0,Result1)
+ ->true;(turn_back_debug(Debug),false)),
+
+ turn_back_debug(Debug),
+
+ %trace,
+ member(Result1,Result1a),
+ %writeln1(interpret2(Query2,Functions0,Functions0,Result1)),
+ %writeln1(updatevars2(FirstArgs,Result1,[],Vars5)),
+
+ updatevars2(FirstArgs,Result1,[],Vars5),
+ updatevars3(Vars1,Vars5,Vars6),
+ reverse(Vars6,[],Vars7),
+ ((not(Vars7=[])->
+ %%Vars7=[Var71|Vars72],
+ (%trace,
+ unique1(Vars7,[],Vars8)%,notrace
+ )
+);(
+%%writeln1(here1),
+ Vars8=[])).
+%%**** reverse and take first instance of each variable.
+ %%findresult3(Arguments,Vars6,[],Result2)
+%%writeln1(["FirstArgs",FirstArgs,"Result1",Result1,"Vars5",Vars5,"Vars4",Vars4]),
+%%writeln1(["Vars1:",Vars1,"Vars4:",Vars4]),
+%% debug(on)->writeln1([exit,[Function,[Result2]]]).
+/*
+interpretstatement1(ssi,Functions0,_Functions,Query,Vars,Vars,true,nocut,_) :-
+find_pred_sm(Reserved_words1),
+
+ Query=[Function],
+ %trace,
+ not_reserved_word(Function,Reserved_words1),
+%debug_call(Skip,[Function]),
+
+ remember_and_turn_off_debug(Debug),
+ turndebug(off), %trace,
+ (lucianpl1(off,%Debug,
+ Query,Functions0,_Result1)%interpret2(Query,Functions0,Functions0,_Result1)
+ ->true;(turn_back_debug(Debug),false)),
+
+ turn_back_debug(Debug)
+
+
+
+
+,!.
+
+*/
+
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_stringconcat],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut,Vars2c) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+%trace,
+((get_lang_word("stringconcat",Dbw_stringconcat1),Dbw_stringconcat1=Dbw_stringconcat)->true;
+Dbw_stringconcat=string_concat),
+%%writeln1(8),
+
+ ssi_interpretpart(stringconcat,Variable1,Variable2,Variable3,Vars1,Vars2,Vars2c).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_append],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut,Vars2c) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+%trace,
+get_lang_word("append",Dbw_append1),Dbw_append1=Dbw_append,
+%%writeln1(8),
+
+ ssi_interpretpart(append,Variable1,Variable2,Variable3,Vars1,Vars2,Vars2c).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_member2],[Variable2,Variable1]],Vars1,Vars2,true,nocut,Vars2c) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+%trace,
+((get_lang_word("member2",Dbw_member21),
+Dbw_member21=Dbw_member2)-> ssi_interpretpart(member2,Dbw_member2,Variable2,Variable1,Vars1,Vars2,Vars2c);
+(get_lang_word("member",Dbw_member22),
+Dbw_member22=Dbw_member2,
+%%writeln1(8),
+%trace,
+ ssi_interpretpart(member2,Dbw_member2,Variable1,Variable2,Vars1,Vars2,Vars2c))).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_member3],[Variable1,Variable2]],Vars1,Vars2,true,nocut,Vars2c) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+%trace,
+get_lang_word("member3",Dbw_member31),Dbw_member31=Dbw_member3,
+%%writeln1(8),
+ ssi_interpretpart(member3,Variable1,Variable2,Vars1,Vars2,Vars2c).
+
+/*
+interpretstatement4(ssi,_F0,_Functions,[[Dbw_n,Dbw_member],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[],AC) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("member",Dbw_member1),Dbw_member1=Dbw_member,
+%%writeln1(8),
+ ssi_interpretpart(member,Variable1,Variable2,Vars1,Vars2,AC).
+*/
+interpretstatement4(ssi,_F0,_Functions,[[Dbw_n,Dbw_member2],[Variable1,Variable2]],Vars1,Vars2,true,nocut,Vars2c,AC) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+%trace,
+((get_lang_word("member2",Dbw_member21),
+Dbw_member21=Dbw_member2)->true;
+(get_lang_word("member",Dbw_member22),
+Dbw_member22=Dbw_member2)),
+
+%%writeln1(8),
+
+ ssi_interpretpart(member2,Dbw_member2,Variable1,Variable2,Vars1,Vars2,Vars2c,AC).
+
+
+
+
+
+interpretstatement4(ssi,_F0,_Functions,[[Dbw_n,Dbw_stringconcat],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut,Vars2c,AC) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+%trace,
+((get_lang_word("stringconcat",Dbw_stringconcat1),Dbw_stringconcat1=Dbw_stringconcat)->true;
+Dbw_stringconcat=string_concat),
+%%writeln1(8),
+
+ ssi_interpretpart(stringconcat,Variable1,Variable2,Variable3,Vars1,Vars2,Vars2c,AC).
+
+interpretstatement4(ssi,_F0,_Functions,[[Dbw_n,Dbw_append],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut,Vars2c,AC) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+%trace,
+get_lang_word("append",Dbw_append1),Dbw_append1=Dbw_append,
+%%writeln1(8),
+
+ ssi_interpretpart(append,Variable1,Variable2,Variable3,Vars1,Vars2,Vars2c,AC).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_member3],[Variable1,Variable2]],Vars1,Vars2,true,nocut,Vars2c,AC) :-
+get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+%trace,
+get_lang_word("member3",Dbw_member31),Dbw_member31=Dbw_member3,
+%%writeln1(8),
+ ssi_interpretpart(member3,Variable1,Variable2,Vars1,Vars2,Vars2c,AC).
+
+
+interpretstatement1(ssi,F0,Functions,[[Dbw_n,Dbw_name]|Args],Vars1,Vars2,T,C,[]) :- %writeln(here),
+interpretstatement1(ssi,F0,Functions,[[Dbw_n,Dbw_name]|Args],Vars1,Vars2,T,C).
+
+%%%%
+
+
+/*
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_equals4_on]|_],Vars,Vars,true,nocut,[]) :- %writeln(here),
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_equals4_on]|_],Vars,Vars,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_equals4_off]|_],Vars,Vars,true,nocut,[]) :- %writeln(here),
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_equals4_off]|_],Vars,Vars,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[n,trace2]|_],Vars,Vars,true,nocut,[]) :- %writeln(here),
+interpretstatement1(non-ssi,_F0,_Functions,[[n,trace2]|_],Vars,Vars,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_trace]|_],Vars,Vars,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_trace]|_],Vars,Vars,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_notrace]|_],Vars,Vars,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_notrace]|_],Vars,Vars,true,nocut).
+
+% * Different in ssi
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_cut]|_],Vars,Vars,true,cut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_cut]|_],Vars,Vars,true,cut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_true]|_],Vars,Vars,_,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_true]|_],Vars,Vars,_,nocut).
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_fail]|_],Vars,Vars,_,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_fail]|_],Vars,Vars,_,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_atom],[Variable]],Vars,Vars,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_atom],[Variable]],Vars,Vars,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_string],[Variable]],Vars,Vars,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_string],[Variable]],Vars,Vars,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_number],[Variable]],Vars,Vars,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_number],[Variable]],Vars,Vars,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_letters],[Variable]],Vars,Vars,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_letters],[Variable]],Vars,Vars,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_variable],[Variable]],Vars,Vars,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_variable],[Variable]],Vars,Vars,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Operator],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Operator],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Operator],[Variable2,Variable3,Variable1]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Operator],[Variable2,Variable3,Variable1]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Operator],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Operator],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_equals1],[Variable1,[Variable2,Variable3]]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_equals1],[Variable1,[Variable2,Variable3]]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_equals2],[Variable1,[Variable2,Variable3]]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_equals2],[Variable1,[Variable2,Variable3]]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_equals3],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_equals3],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_equals4],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_equals4],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_wrap],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_wrap],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_unwrap],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_unwrap],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_head],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_head],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_tail],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_tail],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_delete],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_delete],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut).
+%%** all in form f,[1,1,etc], including + with 0,1
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_append],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_append],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut).
+%get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+%get_lang_word("append",Dbw_append1),Dbw_append1=Dbw_append,
+%%writeln1(9),
+ %ssi_interpretpart(append,Variable1,Variable2,Variable3,Vars1,Vars2).
+
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_stringconcat],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_stringconcat],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut).
+
+%get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+%get_lang_word("stringconcat",Dbw_stringconcat1),Dbw_stringconcat1=Dbw_stringconcat,
+
+%ssi_interpretpart(stringconcat,Variable1,Variable2,Variable3,Vars1,Vars2).
+
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_stringtonumber],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_stringtonumber],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_random],[Variable1]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_random],[Variable1]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_length],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_length],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_ceiling],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_ceiling],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_date],[Year,Month,Day,Hour,Minute,Seconds]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_date],[Year,Month,Day,Hour,Minute,Seconds]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_round],[N1,N2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_round],[N1,N2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_Grammar,_Grammar2,[[Dbw_n,grammar_part],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_Grammar,_Grammar2,[[Dbw_n,grammar_part],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut).
+
+
+interpretstatement1(ssi,_Functions0,_Functions,[[Dbw_n,Dbw_string_from_file],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_Functions0,_Functions,[[Dbw_n,Dbw_string_from_file],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,Functions0,Functions,[[Dbw_n,Dbw_maplist],[Variable1,Variable2,Variable3,Variable4]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,Functions0,Functions,[[Dbw_n,Dbw_maplist],[Variable1,Variable2,Variable3,Variable4]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_string_length],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_string_length],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_sort],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_sort],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_intersection],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_intersection],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_read_string],[Variable1]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_read_string],[Variable1]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_writeln],[Variable1]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_writeln],[Variable1]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_atom_string],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_atom_string],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+interpretstatement1(ssi,_F0,_Functions,[[Dbw_n,Dbw_get_lang_word],[Variable1,Variable2]],Vars1,Vars2,true,nocut,[]) :-
+interpretstatement1(non-ssi,_F0,_Functions,[[Dbw_n,Dbw_get_lang_word],[Variable1,Variable2]],Vars1,Vars2,true,nocut).
+
+*/
\ No newline at end of file
diff --git a/SSI/ssi_verify4.pl b/SSI/ssi_verify4.pl
new file mode 100644
index 0000000000000000000000000000000000000000..01e771671d519eca7e12e2baca41adddeecee5ee
--- /dev/null
+++ b/SSI/ssi_verify4.pl
@@ -0,0 +1,26 @@
+%% ssi_test(Debug[on/off],Total,Score).
+
+%%:- use_module(library(time)).
+
+%% ssi_test cases, Debug=trace=on or off, NTotal=output=total cases, Score=output=result
+
+ssi_test(Debug,NTotal,Score) :- ssi_test(Debug,0,NTotal,0,Score),!.
+ssi_test(_Debug,NTotal,NTotal,Score,Score) :- NTotal=249, !.
+ssi_test(Debug,NTotal1,NTotal2,Score1,Score2) :-
+ NTotal3 is NTotal1+1,
+ test(NTotal3,Query,Functions,Result),
+ ((international_lucianpl([lang,"en"],Debug,Query,Functions,Result1)
+ %,writeln1([Result,Result1])
+ ,Result=Result1)
+ ->(Score3 is Score1+1,writeln0([ssi_test,NTotal3,passed]));(Score3=Score1,writeln0([ssi_test,NTotal3,failed]))),
+ writeln0(""),
+ ssi_test(Debug,NTotal3,NTotal2,Score3,Score2),!.
+
+%% ssi_test individual cases, Debug=trace=on or off, N=case number, Passed=output=result
+
+ssi_test1(Debug,N,Passed) :-
+ test(N,Query,Functions,Result),
+ ((international_lucianpl([lang,"en"],Debug,Query,Functions,Result1),
+ %writeln1([result1,Result1]),
+ Result=Result1
+ )->(Passed=passed,writeln0([ssi_test,N,passed]));(Passed=failed,writeln0([ssi_test,N,failed]))),!.
diff --git a/SSI/ssi_verify4_open.pl b/SSI/ssi_verify4_open.pl
new file mode 100644
index 0000000000000000000000000000000000000000..eead4036fbd432c8743fd19ac8cb8e07399a386d
--- /dev/null
+++ b/SSI/ssi_verify4_open.pl
@@ -0,0 +1,14 @@
+%% ssi_test cases, Debug=trace=on or off, N=output=result
+ssi_testopen(Debug,NTotal) :- ssi_testopen(Debug,0,NTotal),!.
+ssi_testopen(_Debug,NTotal,NTotal) :- NTotal=3, !.
+ssi_testopen(Debug,NTotal1,NTotal2) :-
+ NTotal3 is NTotal1+1,
+ testopen_cases(NTotal3,Query,Functions),
+ ((international_lucianpl([lang,"en"],Debug,Query,Functions,Result),not(Result=[]))->(writeln0([ssi_test,NTotal3,result,Result]),writeln0([ssi_test,NTotal3,passed]));(writeln0([ssi_test,NTotal3,failed]))),
+ writeln0(""),
+ ssi_testopen(Debug,NTotal3,NTotal2),!.
+
+%% ssi_test individual cases, Debug=trace=on or off, N=case number
+ssi_testopen1(Debug,N) :-
+ testopen_cases(N,Query,Functions),
+((international_lucianpl([lang,"en"],Debug,Query,Functions,Result),not(Result=[]))->(writeln0([ssi_test,N,result,Result]),writeln0([ssi_test,N,passed]));(writeln0([ssi_test,N,failed]))),!.
diff --git a/SSI/ssi_verify4_open_types.pl b/SSI/ssi_verify4_open_types.pl
new file mode 100644
index 0000000000000000000000000000000000000000..295d21cda29ab34d792e658d0376361ba2d18500
--- /dev/null
+++ b/SSI/ssi_verify4_open_types.pl
@@ -0,0 +1,23 @@
+%% ssi_test_open_types(Debug[on/off],Total,Score).
+
+%%:- use_module(library(time)).
+
+%% ssi_test cases, Debug=trace=on or off, NTotal=output=total cases, Score=output=result
+
+ssi_test_open_types(Debug,NTotal,Score) :- ssi_test_open_types(Debug,0,NTotal,0,Score),!.
+ssi_test_open_types(_Debug,NTotal,NTotal,Score,Score) :- NTotal=24, !.
+ssi_test_open_types(Debug,NTotal1,NTotal2,Score1,Score2) :-
+ NTotal3 is NTotal1+1,
+ test_open_types_cases(NTotal3,Query,Types,Modes,Functions),
+ ((international_lucianpl([lang,"en"],Debug,Query,Types,Modes,Functions,Result),not(Result=[]))->(Score3 is Score1+1,writeln0([ssi_test_open_types,NTotal3,result,Result]),writeln0([ssi_test_open_types,NTotal3,passed]));(Score3=Score1,writeln0([ssi_test_open_types,NTotal3,failed]))),
+ writeln0(""),
+ ssi_test_open_types(Debug,NTotal3,NTotal2,Score3,Score2),!.
+
+%% ssi_test individual cases, Debug=trace=on or off, N=case number, Passed=output=result
+
+ssi_test_open_types1(Debug,N,Passed) :-
+ test_open_types_cases(N,Query,Types,Modes,Functions),
+ (((international_lucianpl([lang,"en"],Debug,Query,Types,Modes,Functions,Result),not(Result=[]))%%writeln(Result1),
+ %%Result=Result1
+ )->(Passed=passed,writeln0([ssi_test_open_types,N,result,Result]),writeln0([ssi_test_open_types,N,passed]));(Passed=failed,writeln0([ssi_test_open_types,N,failed]))),!.
+
diff --git a/SSI/ssi_verify4_test_bt_lang_all.pl b/SSI/ssi_verify4_test_bt_lang_all.pl
new file mode 100644
index 0000000000000000000000000000000000000000..3c65201e1eeebd4df7d430130ae6d1beaa190d29
--- /dev/null
+++ b/SSI/ssi_verify4_test_bt_lang_all.pl
@@ -0,0 +1,145 @@
+%:-include('../Languages/make_docs.pl').
+
+%:-include('ssi_verify4.pl').
+%:-include('ssi_verify4_types.pl').
+%:-include('ssi_verify4_open.pl').
+%:-include('ssi_verify4_open_types.pl').
+
+% ssi_test (NTotal3,Query,Functions,Result)
+% ssi_test_types_cases (NTotal3,Query,Types,Modes,Functions,Result)
+% ssi_testopen_cases (N, Query,Functions)
+% ssi_test_open_types (NTotal3,Query,Types,Modes,Functions)
+
+%% ssi_test_all_bt00("en2",off,NTotal,Score).
+
+ssi_test_all_bt00(Lang,Debug,NTotal,Score) :-
+ retractall(lang(_)),
+ assertz(lang(Lang)),
+
+ ssi_test_all_bt0(test,4,Lang,Debug,NT1,S1),
+ writeln0([ssi_verify4,S1,/,NT1,passed]),
+ writeln0(""), writeln0(""),
+
+ ssi_test_all_bt0(test_types_cases,6,Lang,Debug,NT2,S2),
+ writeln0([ssi_verify4_types,S2,/,NT2,passed]),
+ writeln0(""), writeln0(""),
+
+ ssi_test_all_bt0(testopen_cases,3,Lang,Debug,NT3,S3),
+ writeln0([ssi_verify4_open,S3,/,NT3,passed]),
+ writeln0(""), writeln0(""),
+
+ ssi_test_all_bt0(test_open_types_cases,5,Lang,Debug,NT4,S4),
+ writeln0([ssi_verify4_open_types,S4,/,NT4,passed]),
+ writeln0(""), writeln0(""),
+
+ NTotal is NT1+NT2+NT3+NT4,
+ Score is S1+S2+S3+S4.
+
+ssi_test_all_bt0(Ssi_test,Arity,Lang,Debug,NTotal,Score) :-
+ functor(Ssi_test2,Ssi_test,Arity),
+ findall(ssi_test2,(Ssi_test2),B),length(B,NTotal1),
+ssi_test_all_bt0(Ssi_test,Arity,Lang,Debug,0,NTotal,0,Score,NTotal1),!.
+ssi_test_all_bt0(_Ssi_test,_Arity,_Lang,_Debug,NTotal,NTotal,Score,Score,NTotal) :-
+%NTotal=105,
+ !.
+ssi_test_all_bt0(Ssi_test,Arity,Lang,Debug,NTotal1,NTotal2,Score1,Score2,NTotal4) :-
+ NTotal3 is NTotal1+1,
+ ssi_test_all_bt000(Ssi_test,Debug,NTotal3,Score1,Score3,Lang),
+ writeln0(""),
+ ssi_test_all_bt0(Ssi_test,Arity,Lang,Debug,NTotal3,NTotal2,Score3,Score2,NTotal4),!.
+
+%% ssi_test_all_bt01 individual cases, Debug=trace=on or off, N=case number, Passed=output=result
+
+%% ssi_test_all_bt01(ssi_test, 4,"en2",off,1,Passed).
+%% ssi_test_all_bt01(ssi_test_types_cases,6,"en2",off,1,Passed).
+%% ssi_test_all_bt01(ssi_testopen_cases, 3,"en2",off,1,Passed).
+%% ssi_test_all_bt01(ssi_test_open_types, 5,"en2",off,1,Passed).
+
+ssi_test_all_bt01(test,_Arity,Lang,Debug,NTotal3,Passed) :-
+ ssi_test_all_bt000(test,Debug,NTotal3,0,Passed1,Lang),
+ (Passed1=1->Passed=passed;Passed=failed),
+ /**
+ ((international_lucianpl([lang,"en"],Debug,Query,Functions,Result1),%%writeln(Result1),
+ Result=Result1
+ )->(Passed=passed,writeln([ssi_test_all_bt0,N,passed]));(Passed=failed,writeln([ssi_test_all_bt0,N,failed]))),
+**/
+ !.
+
+ssi_test_all_bt000(test,Debug,NTotal3,Score1,Score3,Lang) :-
+ test(NTotal3,Query,Functions,Result),
+ trans_alg1(Query,"en",Lang,Query1),
+ (Query=Query1->true%writeln("Query=Query1")
+ ;(writeln0("not(Query=Query1)"),abort)),
+ trans_alg1(Functions,"en",Lang,Functions1),
+ (Debug=on->writeln1(Functions);true),
+ (Debug=on->writeln1(Functions1);true),
+ (Functions=Functions1->true%writeln("Functions=Functions1")
+ ;(writeln0("not(Functions=Functions1)"),abort)),
+ trans_alg1(Result,"en",Lang,Result1),
+ (Result1=_Result11->true%writeln("Result1=Result11")
+ ;(writeln0("not(Result1=Result11)"),abort)),
+ (international_lucianpl([lang,"en"],Debug,Query1,Functions1,Result1)
+ %%writeln1(Result2
+ ->(Score3 is Score1+1,writeln0([ssi_test,NTotal3,passed]));(Score3=Score1,writeln0([ssi_test,NTotal3,failed]))).
+
+ssi_test_all_bt000(test_types_cases,Debug,NTotal3,Score1,Score3,Lang) :-
+
+test_types_cases(NTotal3,Query,Types,Modes,Functions,Result),
+
+ trans_alg1(Query,"en",Lang,Query1),
+ %trans_alg1(Types,"en",Lang,Types1),
+
+ findall([F1|Types00],(member([F1|Types003],Types),
+
+ expand_types1(Types003,[],Types00)),Types004),
+
+ %Types004=[[[n, find_record], [[t, brackets], [[[t, list], [[t, number], [t, string]]], [t, number], [t, string]]]]],
+
+ trans_alg1(Types004,"en",Lang,Types005),%,expand_types1(Types002,[],Types003),simplify_types(Types003,[],Types00)
+ %),Types1),
+
+ %simplify_types(Types01,[],Types1),%findall
+ findall([F|Types100],(member([F|Types101],Types005),simplify_types(Types101,[],Types100)),Types1),
+
+
+ trans_alg1(Modes,"en",Lang,Modes1),
+ trans_alg1(Functions,"en",Lang,Functions1),
+ (Debug=on->writeln1(Functions1);true),
+ trans_alg1(Result,"en",Lang,Result1),
+
+(international_lucianpl([lang,"en"],Debug,Query1,Types1,Modes1,Functions1,Result1)->(Score3 is Score1+1,writeln0([ssi_test_types,NTotal3,passed]));(Score3=Score1,writeln0([ssi_test_types,NTotal3,failed]))).
+
+ssi_test_all_bt000(testopen_cases,Debug,NTotal3,Score1,Score3,Lang) :-
+ testopen_cases(NTotal3,Query,Functions),
+ trans_alg1(Query,"en",Lang,Query1),
+ trans_alg1(Functions,"en",Lang,Functions1),
+ (Debug=on->writeln1(Functions1);true),
+ ((international_lucianpl([lang,"en"],Debug,Query1,Functions1,Result),not(Result=[]))->(Score3 is Score1+1,writeln0([ssi_testopen,NTotal3,result,Result]),writeln0([ssi_test,NTotal3,passed]));(Score3=Score1,writeln0([ssi_testopen,NTotal3,failed]))).
+
+ssi_test_all_bt000(test_open_types_cases,Debug,NTotal3,Score1,Score3,Lang) :-
+ test_open_types_cases(NTotal3,Query,Types,Modes,Functions),
+ trans_alg1(Query,"en",Lang,Query1),
+ %trans_alg1(Types,"en",Lang,Types1),
+
+ findall([F1|Types00],(member([F1|Types003],Types),
+
+ expand_types1(Types003,[],Types00)),Types004),
+
+ %Types004=[[[n, find_record], [[t, brackets], [[[t, list], [[t, number], [t, string]]], [t, number], [t, string]]]]],
+
+ trans_alg1(Types004,"en",Lang,Types005),%,expand_types1(Types002,[],Types003),simplify_types(Types003,[],Types00)
+ %),Types1),
+
+ %simplify_types(Types01,[],Types1),%findall
+ findall([F|Types100],(member([F|Types101],Types005),simplify_types(Types101,[],Types100)),Types1),
+
+ trans_alg1(Modes,"en",Lang,Modes1),
+ trans_alg1(Functions,"en",Lang,Functions1),
+ (Debug=on->writeln1(Functions1);true),
+
+
+((international_lucianpl([lang,"en"],Debug,Query1,Types1,Modes1,Functions1,Result),not(Result=[]))->(Score3 is Score1+1,writeln0([ssi_test_open_types,NTotal3,result,Result]),writeln0([ssi_test_open_types,NTotal3,passed]));(Score3=Score1,writeln0([ssi_test_open_types,NTotal3,failed]))).
+
+trans_alg1(Query,"en",Lang,Query1) :-
+ trans_alg(Query,"en",Lang,Query2),
+ trans_alg(Query2,Lang,"en",Query1).
diff --git a/SSI/ssi_verify4_test_lang_all.pl b/SSI/ssi_verify4_test_lang_all.pl
new file mode 100644
index 0000000000000000000000000000000000000000..a0d58ea5a4b538b1bd584c2e763dc86da02893a2
--- /dev/null
+++ b/SSI/ssi_verify4_test_lang_all.pl
@@ -0,0 +1,135 @@
+%:-include('../Languages/make_docs.pl').
+
+%:-include('ssi_verify4.pl').
+%:-include('ssi_verify4_types.pl').
+%:-include('ssi_verify4_open.pl').
+%:-include('ssi_verify4_open_types.pl').
+
+%% ssi_test_all00("en",off,NTotal,Score).
+
+%% ssi_test_all0(test,4,"en",off,A,B).
+
+%% ssi_test_all01(test,_,"en",off,1,Passed).
+
+ssi_test_all00(Lang,Debug,NTotal,Score) :-
+ retractall(lang(_)),
+ assertz(lang(Lang)),
+
+ ssi_test_all0(test,4,Lang,Debug,NT1,S1),
+ writeln0([ssi_verify4,S1,/,NT1,passed]),
+ writeln0(""), writeln0(""),
+
+ ssi_test_all0(test_types_cases,6,Lang,Debug,NT2,S2),
+ writeln0([ssi_verify4_types,S2,/,NT2,passed]),
+ writeln0(""), writeln0(""),
+
+ ssi_test_all0(testopen_cases,3,Lang,Debug,NT3,S3),
+ writeln0([ssi_verify4_open,S3,/,NT3,passed]),
+ writeln0(""), writeln0(""),
+
+ ssi_test_all0(test_open_types_cases,5,Lang,Debug,NT4,S4),
+ writeln0([ssi_verify4_open_types,S4,/,NT4,passed]),
+ writeln0(""), writeln0(""),
+
+ NTotal is NT1+NT2+NT3+NT4,
+ Score is S1+S2+S3+S4.
+
+ssi_test_all0(Test,Arity,Lang,Debug,NTotal,Score) :-
+ functor(Test2,Test,Arity),
+ findall(Test2,(Test2),B),length(B,NTotal1),
+ssi_test_all0(Test,Arity,Lang,Debug,0,NTotal,0,Score,NTotal1),!.
+ssi_test_all0(_Test,_Arity,_Lang,_Debug,NTotal,NTotal,Score,Score,NTotal) :-
+%NTotal=105,
+ !.
+ssi_test_all0(Test,Arity,Lang,Debug,NTotal1,NTotal2,Score1,Score2,NTotal4) :-
+ NTotal3 is NTotal1+1,
+ ssi_test_all000(Test,Debug,NTotal3,Score1,Score3,Lang),
+ writeln0(""),
+ ssi_test_all0(Test,Arity,Lang,Debug,NTotal3,NTotal2,Score3,Score2,NTotal4),!.
+
+%% ssi_test_all01 individual cases, Debug=trace=on or off, N=case number, Passed=output=result
+
+%% ssi_test_all01(test, 4,"en2",off,1,Passed).
+%% ssi_test_all01(test_types_cases,6,"en2",off,1,Passed).
+%% ssi_test_all01(testopen_cases, 3,"en2",off,1,Passed).
+%% ssi_test_all01(test_open_types, 5,"en2",off,1,Passed).
+
+ssi_test_all01(Test,_Arity,Lang,Debug,NTotal3,Passed) :-
+ ssi_test_all000(Test,Debug,NTotal3,0,Passed1,Lang),
+ (Passed1=1->Passed=passed;Passed=failed),
+ /**
+ ((international_lucianpl([lang,"en"],Debug,Query,Functions,Result1),%%writeln(Result1),
+ Result=Result1
+ )->(Passed=passed,writeln([ssi_test_all0,N,passed]));(Passed=failed,writeln([ssi_test_all0,N,failed]))),
+**/
+ !.
+
+ssi_test_all000(test,Debug,NTotal3,Score1,Score3,Lang) :-
+ test(NTotal3,Query,Functions,Result),
+ trans_alg(Query,"en",Lang,Query1),
+ trans_alg(Functions,"en",Lang,Functions1),
+ (Debug=on->writeln1(Functions);true),
+ (Debug=on->writeln1(Functions1);true),
+ trans_alg(Result,"en",Lang,Result1),
+
+
+ ((
+catch(call_with_time_limit(800,international_lucianpl([lang,Lang],Debug,Query1,Functions1,Result1)),_,false) %,writeln1(Result2)
+ )
+ ->(Score3 is Score1+1,writeln0([ssi_test,NTotal3,passed]));(Score3=Score1,writeln0([ssi_test,NTotal3,failed]))).
+
+ssi_test_all000(test_types_cases,Debug,NTotal3,Score1,Score3,Lang) :-
+
+test_types_cases(NTotal3,Query,Types,Modes,Functions,Result),
+
+ trans_alg(Query,"en",Lang,Query1),
+
+ retractall(lang(_)),
+ assertz(lang("en")),
+
+ %/*
+ findall([F1|Types00],(member([F1|Types003],Types),
+
+
+ expand_types1(Types003,[],Types00)),Types004),
+
+ %Types004=[[[n, find_record], [[t, brackets], [[[t, list], [[t, number], [t, string]]], [t, number], [t, string]]]]],
+
+ trans_alg(Types004,"en",Lang,Types005),%,expand_types1(Types002,[],Types003),simplify_types(Types003,[],Types00)
+ %),Types1),
+
+ %simplify_types(Types01,[],Types1),%findall
+ findall([F|Types100],(member([F|Types101],Types005),
+
+ %retractall(lang(_)),
+ %assertz(lang("en")),
+
+ simplify_types(Types101,[],Types100)),Types1),
+ %*/
+ %trans_alg(Types,"en",Lang,Types1),
+ trans_alg(Modes,"en",Lang,Modes1),
+ trans_alg(Functions,"en",Lang,Functions1),
+ (Debug=on->writeln1(Functions1);true),
+ trans_alg(Result,"en",Lang,Result1),
+
+(catch(call_with_time_limit(800,international_lucianpl([lang,Lang],Debug,Query1,Types1,Modes1,Functions1,Result1)),_,false) %,writeln1(Result2)
+->(Score3 is Score1+1,writeln0([ssi_test_types,NTotal3,passed]));(Score3=Score1,writeln0([ssi_test_types,NTotal3,failed]))).
+
+ssi_test_all000(testopen_cases,Debug,NTotal3,Score1,Score3,Lang) :-
+ testopen_cases(NTotal3,Query,Functions),
+ trans_alg(Query,"en",Lang,Query1),
+ trans_alg(Functions,"en",Lang,Functions1),
+ (Debug=on->writeln1(Functions1);true),
+ ((international_lucianpl([lang,Lang],Debug,Query1,Functions1,Result),not(Result=[]))->(Score3 is Score1+1,writeln0([ssi_testopen,NTotal3,result,Result]),writeln0([ssi_test,NTotal3,passed]));(Score3=Score1,writeln0([ssi_testopen,NTotal3,failed]))).
+
+ssi_test_all000(test_open_types_cases,Debug,NTotal3,Score1,Score3,Lang) :-
+ test_open_types_cases(NTotal3,Query,Types,Modes,Functions),
+ trans_alg(Query,"en",Lang,Query1),
+ trans_alg(Types,"en",Lang,Types1),
+ trans_alg(Modes,"en",Lang,Modes1),
+ trans_alg(Functions,"en",Lang,Functions1),
+ (Debug=on->writeln1(Functions1);true),
+
+
+((international_lucianpl([lang,Lang],Debug,Query1,Types1,Modes1,Functions1,Result),not(Result=[]))->(Score3 is Score1+1,writeln0([ssi_test_open_types,NTotal3,result,Result]),writeln0([ssi_test_open_types,NTotal3,passed]));(Score3=Score1,writeln0([ssi_test_open_types,NTotal3,failed]))).
+
diff --git a/SSI/ssi_verify4_types.pl b/SSI/ssi_verify4_types.pl
new file mode 100644
index 0000000000000000000000000000000000000000..65683031a5ae44d590b2ad3737b15e8e38df86cd
--- /dev/null
+++ b/SSI/ssi_verify4_types.pl
@@ -0,0 +1,23 @@
+%% ssi_test_types(Debug[on/off],Total,Score).
+
+%%:- use_module(library(time)).
+
+%% ssi_test cases, Debug=trace=on or off, NTotal=output=total cases, Score=output=result
+
+ssi_test_types(Debug,NTotal,Score) :- ssi_test_types(Debug,0,NTotal,0,Score),!.
+ssi_test_types(_Debug,NTotal,NTotal,Score,Score) :- NTotal=58, !.
+ssi_test_types(Debug,NTotal1,NTotal2,Score1,Score2) :-
+ NTotal3 is NTotal1+1,
+ test_types_cases(NTotal3,Query,Types,Modes,Functions,Result),
+ (international_lucianpl([lang,"en"],Debug,Query,Types,Modes,Functions,Result)->(Score3 is Score1+1,writeln0([ssi_test_types,NTotal3,passed]));(Score3=Score1,writeln0([ssi_test_types,NTotal3,failed]))),
+ writeln0(""),
+ ssi_test_types(Debug,NTotal3,NTotal2,Score3,Score2),!.
+
+%% ssi_test individual cases, Debug=trace=on or off, N=case number, Passed=output=result
+
+ssi_test_types1(Debug,N,Passed) :-
+ test_types_cases(N,Query,Types,Modes,Functions,Result),
+ ((international_lucianpl([lang,"en"],Debug,Query,Types,Modes,Functions,Result1),%writeln(Result1),
+ Result=Result1
+ )->(Passed=passed,writeln0([ssi_test_types,N,passed]));(Passed=failed,writeln0([ssi_test_types,N,failed]))),!.
+
diff --git a/SSI/ssi_verify_pl.pl b/SSI/ssi_verify_pl.pl
new file mode 100644
index 0000000000000000000000000000000000000000..aacedb8a56e4d41b0645bd33eb262eda80f7ce6b
--- /dev/null
+++ b/SSI/ssi_verify_pl.pl
@@ -0,0 +1,32 @@
+%% ssi_test_pl(Debug[on/off],Total,Score).
+
+%%:- use_module(library(time)).
+
+%% ssi_test_pl cases, Debug=trace=on or off, NTotal=output=total cases, Score=output=result
+
+ssi_test_pl(Debug,NTotal,Score) :- ssi_test_pl(Debug,0,NTotal,0,Score),!.
+ssi_test_pl(_Debug,NTotal,NTotal,Score,Score) :- NTotal=1, !.
+ssi_test_pl(Debug,NTotal1,NTotal2,Score1,Score2) :-
+ NTotal3 is NTotal1+1,
+ test_pl(NTotal3,Query,Functions,Result),
+ p2lpconverter_command([string,Query],Query1),
+ p2lpconverter([string,Functions],Functions1),
+ p2lpconverter_term([string,Result],Result2),
+ ((international_lucianpl([lang,"en"],Debug,Query1,Functions1,Result1),
+ %writeln1([result1,Result1]),
+ Result2=Result1
+ )->(Score3 is Score1+1,writeln0([ssi_test_pl,NTotal3,passed]));(Score3=Score1,writeln0([ssi_test_pl,NTotal3,failed]))),
+ writeln0(""),
+ ssi_test_pl(Debug,NTotal3,NTotal2,Score3,Score2),!.
+
+%% ssi_test_pl individual cases, Debug=trace=on or off, N=case number, Passed=output=result
+
+ssi_test_pl1(Debug,N,Passed) :-
+ test_pl(N,Query,Functions,Result),
+ p2lpconverter_command([string,Query],Query1),
+ p2lpconverter([string,Functions],Functions1),
+ p2lpconverter_term([string,Result],Result2),
+ ((international_lucianpl([lang,"en"],Debug,Query1,Functions1,Result1),
+ %writeln1([result1,Result1]),
+ Result2=Result1
+ )->(Passed=passed,writeln0([ssi_test_pl,N,passed]));(Passed=failed,writeln0([ssi_test_pl,N,failed]))),!.
diff --git a/SSI/used_by_call_command.pl b/SSI/used_by_call_command.pl
new file mode 100644
index 0000000000000000000000000000000000000000..c5813010d8f8b1942f79db8a2892c5de6a96a197
--- /dev/null
+++ b/SSI/used_by_call_command.pl
@@ -0,0 +1,119 @@
+% used by call command
+
+lucianpl1(Debug,Query,Functions1,Result) :-
+ lang(Lang1),
+ international_lucianpl1([lang,Lang1],
+ Debug,Query,Functions1,Result).
+
+international_lucianpl1([lang,Lang],Debug,Query,Functions1,Result) :-
+ retractall(lang(_)),
+ assertz(lang(Lang)),
+ lucianpl1_1(Debug,Query,Functions1,Result).
+
+international_lucianpl1([lang,Lang],Debug,Query,TypeStatements,ModeStatements,Functions1,Result) :-
+ retractall(lang(_)),
+ assertz(lang(Lang)),
+ lucianpl1_1(Debug,Query,TypeStatements,ModeStatements,Functions1,Result).
+
+
+lucianpl1_1(Debug,Query,Functions1,Result) :-
+ retractall(types(_)),
+ assertz(types(off)),
+lucianpl111(Debug,Query,Functions1,Result),!.
+
+lucianpl1_1(Debug,Query,TypeStatements,ModeStatements,Functions1,Result) :-
+ retractall(types(_)),
+ assertz(types(on)),
+ retractall(typestatements(_)),
+ findall([A,C],(member([A,B],TypeStatements),expand_types(B,[],C)),TypeStatements1),
+
+assertz(typestatements(TypeStatements1)),
+ retractall(modestatements(_)),
+ assertz(modestatements(ModeStatements)),
+lucianpl111(Debug,Query,Functions1,Result).
+
+lucianpl111(Debug,Query,Functions,Result) :-
+ /*
+ ((not(lang(_Lang1))
+ %var(Lang1)
+ )->
+ (retractall(lang(_)),
+ assertz(lang("en")));
+ true),
+ load_lang_db,
+ */
+%trace,
+ query_box(Query,Query1,[],Functions1),
+
+%get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+
+delete(Functions,[0|_],Functions1a), % delete query box
+
+ %writeln1(query_box(Query,Query1,Functions,Functions1)),
+%%writeln1([i1]),
+ %%writeln1(convert_to_grammar_part1(Functions1,[],Functions2,_)),
+ convert_to_grammar_part1(Functions1,[],Functions2,_),
+ %insert_cuts(Functions2a,Functions2),
+%Functions1=Functions2,
+ %writeln1(convert_to_grammar_part1(Functions1,[],Functions2,_)), %trace,
+ %writeln1(Functions2),
+ %%pp3(Functions2),
+ %%writeln1(lucianpl11(Debug,Query,Functions2,Functions2,Result)),
+ %findall(Result1,
+
+ %trace,
+ add_line_numbers_to_algorithm1(Functions2,Functions2a),
+%Functions2=Functions2a,
+ %writeln1(add_line_numbers_to_algorithm1(Functions2,Functions2a)),
+ %writeln1(Functions2a),
+append(Functions2a,Functions1a,Functions2b),
+
+ %find_pred_sm(Reserved_words),%,"en"),
+find_pred_numbers(Functions2b,[]%Reserved_words
+,Pred_numbers),
+
+%pred_numbers(Pred_numbers0),
+%writeln([pred_numbers0,Pred_numbers0]),
+ retractall(pred_numbers(_)),
+ assertz(pred_numbers(Pred_numbers)),
+%trace,
+%writeln([pred_numbers1,Pred_numbers]),
+
+ find_state_machine1(Functions2a,Functions3a,Pred_numbers),
+ append(Functions3a,Functions1a,Functions3b),
+
+%Functions2a=Functions3,
+%writeln1(find_state_machine1(Functions2a,Functions3,Pred_numbers)),
+ % find first predicate
+%trace,
+ %writeln1([functions3a,Functions3a]),
+ prep_predicate_call(Query1,Functions3b,
+ All_predicate_numbers),
+
+ lucianpl1(Debug),
+
+ % ssi1([Level, % Trace level
+ % All_predicate_numbers1 % List of instances of this predicate left to call
+ % Predicate_or_line_number, % predicate nor line number in predicate
+ % Destination, % "predicate" or "line"
+ % Query, % Query when Destination="predicate"
+ % Vars, % Input Vars
+ % All_predicate_numbers], % predicates remaining to try at current level - saved in cp trail
+ % End_result, % Result of predicate
+ % Functions, % functions in algorithm
+ % Vars2, % output vars
+ % Result1, Result2, % Initial and cumulative lists of non-deterministic results
+ % Globals1, Globals2, % Initial and cumulative lists of assertz globals
+ % Choice_point_trail1, % Initial and cumulative lists of choice points
+ % Choice_point_trail2, Cpv1, Cpv2)
+ %trace,
+ %trace,
+ findall([All_predicate_numbers0,"prev_pred_id",0],member(All_predicate_numbers0,All_predicate_numbers),All_predicate_numbers01),
+ All_predicate_numbers01=[[All_predicate_numbers1,"prev_pred_id",Prev_pred_id]|All_predicate_numbers2],
+ %trace,
+ ssi1([["prev_pred_id",Prev_pred_id],1,All_predicate_numbers1,-1,"predicate",Query1,[],
+ All_predicate_numbers2],_End_result,Functions3b,_Vars2,[],Result1,
+ [],_Globals2,
+ [], _Choice_point_trail2,
+ [[curr_cp,0],[curr_cp_index,0]],_),
+ Result=Result1.
\ No newline at end of file
diff --git a/Simple-List-Prolog-to-List-Prolog/LICENSE b/Simple-List-Prolog-to-List-Prolog/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..d925e8c4aa63a274f76a5c22de79d0ada99b0da7
--- /dev/null
+++ b/Simple-List-Prolog-to-List-Prolog/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2019, Lucian Green
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Simple-List-Prolog-to-List-Prolog/README.md b/Simple-List-Prolog-to-List-Prolog/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..6924cb7ec00edd9b8398838ca1243b4539a36cdf
--- /dev/null
+++ b/Simple-List-Prolog-to-List-Prolog/README.md
@@ -0,0 +1,39 @@
+# Simple-List-Prolog-to-List-Prolog
+
+Converts Simple List Prolog algorithms to List Prolog algorithms
+
+# Prerequisites
+
+* Please download and install SWI-Prolog for your machine at `https://www.swi-prolog.org/build/`.
+
+# 1. Install manually
+
+Download this repository.
+
+# 2. Or Install from List Prolog Package Manager (LPPM)
+
+* Download the LPPM Repository:
+
+```
+mkdir GitHub
+cd GitHub/
+git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
+cd List-Prolog-Package-Manager
+swipl
+['lppm'].
+lppm_install("luciangreen","Simple-List-Prolog-to-List-Prolog").
+halt
+```
+
+# Running
+
+* In Shell:
+`cd Simple-List-Prolog-to-List-Prolog`
+`swipl`
+`['slp2lp.pl'].`
+
+* Convert Simple List Prolog code to List Prolog code by running:
+```
+?- slp2lp([[f1,[a,b,c,d,e],(:-),[[+,[a,b,f]],[+,[c,f,g]],[+,[d,g,h]],[=,[h,e]]]]],Algorithm2),writeln(Algorithm2).
+Algorithm2=[[[n,f1],[[v,a],[v,b],[v,c],[v,d],[v,e]],":-",[[[n,+],[[v,a],[v,b],[v,f]]],[[n,+],[[v,c],[v,f],[v,g]]],[[n,+],[[v,d],[v,g],[v,h]]],[[n,=],[[v,h],[v,e]]]]]]
+```
diff --git a/Simple-List-Prolog-to-List-Prolog/la_strings.pl b/Simple-List-Prolog-to-List-Prolog/la_strings.pl
new file mode 100644
index 0000000000000000000000000000000000000000..b163083f2c576fd216a2c465dc15a722d9e62d6e
--- /dev/null
+++ b/Simple-List-Prolog-to-List-Prolog/la_strings.pl
@@ -0,0 +1,31 @@
+%% la_strings.pl
+
+use_module(library(pio)).
+use_module(library(dcg/basics)).
+
+open_s(File,Mode,Stream) :-
+ atom_string(File1,File),
+ open(File1,Mode,Stream),!.
+
+string_atom(String,Atom) :-
+ atom_string(Atom,String),!.
+
+phrase_from_file_s(string(Output), String) :-
+ atom_string(String1,String),
+ phrase_from_file(string(Output), String1),!.
+
+append_list2([],[]):-!.
+append_list2(A1,B):-
+ A1=[A|List],
+ append_list2(A,List,B),!.
+
+append_list2(A,[],A):-!.
+append_list2(A,List,B) :-
+ List=[Item|Items],
+ append(A,Item,C),
+ append_list2(C,Items,B).
+
+writeln1(Term) :-
+ term_to_atom(Term,Atom),
+ writeln(Atom),!.
+
diff --git a/Simple-List-Prolog-to-List-Prolog/slp2lp.pl b/Simple-List-Prolog-to-List-Prolog/slp2lp.pl
new file mode 100644
index 0000000000000000000000000000000000000000..cdf26db36cdcaa218411d84c3756d47b7793e349
--- /dev/null
+++ b/Simple-List-Prolog-to-List-Prolog/slp2lp.pl
@@ -0,0 +1,129 @@
+%% slp2lp.pl
+
+/**
+slp2lp([[f1,[a,b,c,d,e],(:-),[[+,[a,b,f]],[+,[c,f,g]],[+,[d,g,h]],[=,[h,e]]]]],Algorithm2).
+
+Algorithm2= [[[n,f1],[[v,a],[v,b],[v,c],[v,d],[v,e]],":-",[[[n,+],[[v,a],[v,b],[v,f]]],[[n,+],[[v,c],[v,f],[v,g]]],[[n,+],[[v,d],[v,g],[v,h]]],[[n,=],[[v,h],[v,e]]]]]]
+
+**/
+
+:- include('la_strings.pl').
+
+slp2lp(Algorithm1,Algorithm2) :-
+ findall([[n,Name],Arguments4,Symbol2,Body2],(member(Function1,Algorithm1),Function1=[Name,Arguments1,Symbol1,Body1],symbol(Symbol1,Symbol2),
+ findall(Arguments3,(member(Arguments2,Arguments1),slp2lp_variables(Arguments2,Arguments3)),Arguments4),
+ process_body2(Body1,Body2)),Algorithm2).
+
+
+symbol((:-),":-"):-!.
+symbol(Symbol,Symbol) :-!.
+
+slp2lp_variables(Name1,[v,Name1]) :- predicate_or_rule_name(Name1),!.
+slp2lp_variables(Name,Name) :- !.
+
+/**
+process_body(Body1,Body2) :-
+ findall(*,(member(Statement1,Body1
+process_body(Body1,[],Body2) :-
+
+**/
+
+%%predicate_or_rule_name([A,B]) :- atom(A),is_list(B),!.
+predicate_or_rule_name(A) :- atom(A),!.
+
+
+process_body2([],[]):-!.%%,Body3
+
+
+%%process_body2([],Body,Body) :- !.
+process_body2(Body1,Body2%%,Body3
+) :-
+ Body1=[[Statements1|Statements1a]|Statements2
+ ],
+
+ not(predicate_or_rule_name(Statements1)),
+ process_body2([Statements1],Body3), %% 2->1
+
+ process_body2(Statements1a,Body4),
+ process_body2(Statements2,Body5),
+
+ append([Body3,Body4],Body6),
+ append([[Body6],Body5],Body2),
+ !.
+
+
+
+
+process_body2(Body1,Body2) :-
+ Body1=[[not,[Statement]]|Statements2
+ ],
+
+ process_body2([Statement],Body3),
+ process_body2(Statements2,Body4),
+ append([[n,not]],Body3,Body5),
+ append([Body5],Body4
+ ,Body2),
+
+ !.
+
+
+
+
+process_body2(Body1,Body2) :-
+ Body1=[[or,[Statements1,Statements2]]|Statements3],
+ process_body2([Statements1],Body3),
+ process_body2([Statements2],Body4),
+ process_body2(Statements3,Body5),
+ append(Body3,Body4,Body34),
+ Body6=[[n,or],Body34
+ ],
+ append([Body6],Body5,Body2),
+ !.
+
+
+process_body2(Body1,Body2) :-
+ Body1=[["->",[Statements1,Statements2]]|Statements3],
+ process_body2([Statements1],Body3),
+ process_body2([Statements2],Body4),
+
+ process_body2(Statements3,Body5),
+ append(Body3,Body4,Body34),
+ Body6=[[n,"->"],Body34
+ ],
+ append([Body6],Body5,Body2),
+
+ !.
+
+
+
+
+process_body2(Body1,Body2) :-
+ Body1=[["->",[Statements1,Statements2,Statements2a]]|Statements3],
+ process_body2([Statements1],Body3),
+ process_body2([Statements2],Body4),
+ process_body2([Statements2a],Body5),
+ process_body2(Statements3,Body6),
+ append_list2([Body3,Body4,Body5],Body345),
+ Body7=[[n,"->"],Body345],
+ append([Body7],Body6,Body2),
+
+ !.
+
+
+process_body2(Body1,Body2) :-
+ Body1=[Statement|Statements],
+ not(predicate_or_rule_name(Statement)),
+ process_statement1(Statement,Result1),
+ process_body2(Statements,Result2),
+ append_list2([Result1,Result2],Body2),!.
+
+
+process_statement1(Statement,Result1) :-
+ ((Statement=[Name,Arguments],
+ findall(Name2,(member(Argument,Arguments),
+ (predicate_or_rule_name(Argument)->Name2=[v,Argument];
+ Name2=Argument)),Result2),
+ Result1=[[[n,Name],Result2]])->true;
+ ((Statement=[Name],
+ Result1=[[[n,Name]]]))).
+
\ No newline at end of file
diff --git a/Split-on-Phrases/LICENSE b/Split-on-Phrases/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..d925e8c4aa63a274f76a5c22de79d0ada99b0da7
--- /dev/null
+++ b/Split-on-Phrases/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2019, Lucian Green
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Split-on-Phrases/README.md b/Split-on-Phrases/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..e7a4733a85fd460541d937928f8e5e892505ccff
--- /dev/null
+++ b/Split-on-Phrases/README.md
@@ -0,0 +1,198 @@
+# Split-on-Phrases
+Splits text files into groups of files. It was initially written to break m multiple chapters per file (with paragraph numbers up to about 42) into 15 minute-speakable files for YouTube. It splits on every 10 paragraphs.
+
+# Prerequisites
+
+* Please download and install SWI-Prolog for your machine at `https://www.swi-prolog.org/build/`.
+
+* You may need to install gawk using Homebrew.
+
+* Install Translation Shell on Mac, etc.
+Change line in
+```
+culturaltranslationtool/ctt2.pl
+trans_location("../../../gawk/trans").
+```
+to correct location of trans.
+
+# 1. Install manually
+
+Download this repository, the List Prolog Interpreter repository, the Languages repository and Cultural Translation Tool.
+
+# 2. Or Install from List Prolog Package Manager (LPPM)
+
+* Download the LPPM Repository:
+
+```
+mkdir GitHub
+cd GitHub/
+git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
+cd List-Prolog-Package-Manager
+swipl
+['lppm'].
+lppm_install("luciangreen","Split-on-Phrases").
+halt
+```
+
+# What it does
+
+* Takes an input file, e.g.:
+
+```
+title1
+
+1. a
+2. a2
+10. b
+11. b
+19. c
+20. d
+21. e
+29. c
+
+title2
+
+1. a
+2. a2
+10. b
+11. b
+19. c
+20. d
+21. e
+29. c
+30. d
+31. e
+39. c
+40. d
+41. e
+42. f
+
+eof
+```
+
+* and the phrases file:
+
+```
+title1
+title2
+```
+
+* and produces the files:
+
+`grand title by Lucian Green title1 1 of 4.txt`
+```
+grand title
+by Lucian Green
+title1 1 of 4
+
+1. a
+2. a2
+10. b
+```
+
+`grand title by Lucian Green title1 2 of 4.txt`
+```
+grand title
+by Lucian Green
+title1 2 of 4
+
+11. b
+19. c
+20. d
+```
+
+`grand title by Lucian Green title1 3 of 4.txt`
+```
+grand title
+by Lucian Green
+title1 3 of 4
+
+21. e
+29. c
+```
+
+`grand title by Lucian Green title2 1 of 4.txt`
+```
+grand title
+by Lucian Green
+title2 1 of 4
+
+1. a
+2. a2
+10. b
+```
+
+`grand title by Lucian Green title2 2 of 4.txt`
+```
+grand title
+by Lucian Green
+title2 2 of 4
+
+11. b
+19. c
+20. d
+```
+
+`grand title by Lucian Green title2 3 of 4.txt`
+```
+grand title
+by Lucian Green
+title2 3 of 4
+
+21. e
+29. c
+30. d
+```
+
+`grand title by Lucian Green title2 4 of 4.txt`
+```
+grand title
+by Lucian Green
+title2 4 of 4
+
+31. e
+39. c
+40. d
+41. e
+42. f
+```
+
+# Running
+
+* In Shell:
+`cd Split-on-Phrases`
+`swipl`
+`['../listprologinterpreter/listprolog'].`
+
+* Load the Split on Phrases program by typing:
+`['split_on_phrases'].`
+
+* The algorithm is called in the form:
+`split_on_phrases1("grand title","phrasesfile.txt","inputfile.txt").`
+
+Where:
+grand title - the title at the start of each file.
+phrasesfile.txt - the file with the phrases to split the file on.
+inputfile.txt - the file with the entitled list of paragraphs to split.
+
+# Append EOF
+
+* Append EOF (for Mac Terminal) appends EOF (the string, not the symbol) to each text file in the Data folder that appendeof.sh is in the same folder with, to the Out folder.
+
+* The Shell script is called in the form:
+`./appendeof.sh`
+
+# Text to AIFF
+
+* Text to AIFF (for Mac Terminal) converts text files in the Data folder that t2aiff.sh is in the same folder with, to AIFF files, which can be converted to MP3s, which can be sound tracks added to YouTube.
+
+* The Shell script is called in the form:
+`./t2aiff.sh`
+
+# Authors
+
+Lucian Green - Initial programmer - Lucian Academy
+
+# License
+
+I licensed this project under the BSD3 License - see the LICENSE.md file for details
diff --git a/Split-on-Phrases/appendeof.sh b/Split-on-Phrases/appendeof.sh
new file mode 100644
index 0000000000000000000000000000000000000000..70ed323645f45ad38ab74e1bfffa25698d24dee8
--- /dev/null
+++ b/Split-on-Phrases/appendeof.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+for filename in Data/*.txt; do
+ cat "$filename" "eof.txt">"Out/$(basename "$filename" .txt)-eof.txt"
+done
\ No newline at end of file
diff --git a/Split-on-Phrases/eof.txt b/Split-on-Phrases/eof.txt
new file mode 100644
index 0000000000000000000000000000000000000000..2285a781856c2e258bd3bdf1d7d15095c9bb0cde
--- /dev/null
+++ b/Split-on-Phrases/eof.txt
@@ -0,0 +1,2 @@
+
+eof
\ No newline at end of file
diff --git a/Split-on-Phrases/inputfile.txt b/Split-on-Phrases/inputfile.txt
new file mode 100644
index 0000000000000000000000000000000000000000..f76b4b1110b8be98e7425b33357e05bd33379efd
--- /dev/null
+++ b/Split-on-Phrases/inputfile.txt
@@ -0,0 +1,29 @@
+title1
+
+1. a
+2. a2
+10. b
+11. b
+19. c
+20. d
+21. e
+29. c
+
+title2
+
+1. a
+2. a2
+10. b
+11. b
+19. c
+20. d
+21. e
+29. c
+30. d
+31. e
+39. c
+40. d
+41. e
+42. f
+
+eof
\ No newline at end of file
diff --git a/Split-on-Phrases/phrasesfile.txt b/Split-on-Phrases/phrasesfile.txt
new file mode 100644
index 0000000000000000000000000000000000000000..0c2454b462451b7c9fb158450efcaaee2cdcedd5
--- /dev/null
+++ b/Split-on-Phrases/phrasesfile.txt
@@ -0,0 +1,2 @@
+title1
+title2
\ No newline at end of file
diff --git a/Split-on-Phrases/split_on_phrases.pl b/Split-on-Phrases/split_on_phrases.pl
new file mode 100644
index 0000000000000000000000000000000000000000..5c730c9b1601803a5761aadd1641b63feaa1e9e2
--- /dev/null
+++ b/Split-on-Phrases/split_on_phrases.pl
@@ -0,0 +1,298 @@
+use_module(library(pio)).
+:- include('../listprologinterpreter/la_strings').
+
+%% split_on_phrases1("grand title","phrasesfile.txt","inputfile.txt").
+
+split_on_phrases1(Title,PhrasesFile,InputFile) :-
+ get_phrases(PhrasesFile,Phrases),
+ split_on_phrases2(Phrases,InputFile,Text,Title),
+ write_files(Text),!.
+
+get_phrases(PhrasesFile,Phrases) :-
+ SepandPad="\n",
+ phrase_from_file_s(string(String00), PhrasesFile),
+ split_string(String00,SepandPad,SepandPad,List1),
+ delete(List1,"",Phrases1),
+ findall(Text6,(member(Text7,Phrases1),
+ string_codes(Text6,Text7)),Phrases).
+
+split_on_phrases2(Phrases2,InputFile,Text4,Title) :-
+ phrase_from_file_s(string(Text2), InputFile),
+ %%string_codes(Phrases1,Phrases2),
+ %%string_codes(Text2,Text1),
+ split_on_phrases3(Phrases2,Text2,[],Text3,Title),
+ %%term_to_atom([split_on_phrases3(Phrases2,Text2,[],Text3,Title)],AA),
+ %%writeln1(AA),
+ %%findall(Text4a,(member(Text7,Text3),
+ findall([A1,B1],(member(Text8,Text3),Text8=[A,B],
+ string_codes(A,A1),string_codes(B,B1)),Text4).%%),Text4).
+
+split_on_phrases3([],_Text1,Text2,Text2,_Title) :- !.
+%%split_on_phrases3(_Phrases1,[],Text2,Text2,_Title) :- !.
+%% Phrases1=[Phrase2],
+
+split_on_phrases3(Phrases1,Text1,Text2,Text3,Title) :-
+ (Phrases1=[Phrase2b,Phrase2a|Phrases3]->true;
+ (Phrases1=[Phrase2b],
+ Phrase2a="eof",Phrases3=[])),
+ length(Phrases1,Phrases1L),
+ writeln(Phrase2b),
+split_on_phrases3a(Phrase2b,Text1,Text2,Title,Phrase2a,E14,Phrases4,Phrases1L),
+(Phrase2a="eof"->(%%writeln([phrases3,Phrases3]),
+Phrases3=Phrases3a);
+(%%writeln(append([Phrase2a],Phrases3,Phrases3a)),
+ append([Phrase2a],Phrases3,Phrases3a))),
+ split_on_phrases3(Phrases3a,E14,Phrases4,Text3,Title).
+
+split_on_phrases3a(Phrase2b,Text1,Text2,Title,Phrase2a,E14,Phrases4,Phrases1L) :-
+ %%string_concat(Phrase2b,"\n",Phrase2c),
+ %%string_codes(Phrase2c,Phrase2),
+ string_codes(Phrase2b,Phrase22),
+ string_codes("1.",String1),
+ string_codes("11.",String11),
+ string_codes("21.",String21),
+ string_codes("31.",String31),
+ string_codes(Phrase2a,Phrase2aa),
+ string_codes("eof",EofC),
+
+ (
+ (%%Phrases1L=1->
+ %%split_on_phrases4(Text1,E11,Text2,Text4,
+ %%String1,Phrase22,EofC,Title,1)
+ %%;
+ split_on_phrases41(Text1,E11,Text2,Text4,
+ String1,Phrase22,String11,Title,1,Phrase2aa),
+ writeln("11")
+ )->
+ ((%Phrases1L=1->
+ %%split_on_phrases4(E11,E12,Text4,Text5,
+ %%String11,Phrase22,EofC,Title,2)
+ %%;
+ split_on_phrases41(E11,E12,Text4,Text5,
+ String11,Phrase22,String21,Title,2,Phrase2aa),
+ writeln("21")
+ )->
+ ((%%Phrases1L=1->
+ %%split_on_phrases4(E12,E13,Text5,Text6,
+ %%String21,Phrase22,EofC,Title,3)
+ %%;
+ split_on_phrases41(E12,E13,Text5,Text6,
+ String21,Phrase22,String31,Title,3,Phrase2aa),
+ writeln("31")
+ )->
+ (
+ ((Phrases1L=1->
+ ((split_on_phrases4(E13,E14,Text6,Phrases4,
+ String31,Phrase22,EofC,Title,4),
+ writeln("eof"))->
+ true;(writeln("Error: No eof."),abort)
+ )
+ ;
+ (%%writeln("here"),
+ %%writeln(split_on_phrases4(E13,E14,Text6,Phrases4,
+ %%String31,Phrase22,Phrase2aa,Title,4)),
+ %%(
+ (split_on_phrases42(E13,E14,Text6,Phrases4,
+ String31,Phrase22,_Empty,Title,4,Phrase2aa),
+ writeln("-"))%%->
+ %%true;(E13=E14,Text6=Phrases4)
+ )
+ )
+ )
+ )
+ ;
+ (Phrases1L=1->
+ (split_on_phrases4(E12,E14,Text5,Phrases4,
+ String21,Phrase22,EofC,Title,3),
+ writeln("eof"))
+ ;
+ (split_on_phrases41(E12,E14,Text5,Phrases4,
+ String21,Phrase22,String31,Title,3,Phrase2aa),%%->
+ %%true;(E12=E14,Text5=Phrases4)
+ writeln("31"))
+ ))
+ ;
+ (Phrases1L=1->
+ (split_on_phrases4(E11,E14,Text4,Phrases4,
+ String11,Phrase22,EofC,Title,2),
+ writeln("eof"))
+ ;
+ (split_on_phrases41(E11,E14,Text4,Phrases4,
+ String11,Phrase22,String21,Title,2,Phrase2aa),%%->
+ %%true;(E11=E14,Text4=Phrases4)
+ writeln("21"))
+ ))
+ ;
+ (Phrases1L=1->
+ (split_on_phrases4(Text1,E14,Text2,Phrases4,
+ String1,Phrase22,EofC,Title,1),
+ writeln("eof"))
+ ;
+ (split_on_phrases41(Text1,E14,Text2,Phrases4,
+ String1,Phrase22,String11,Title,1,Phrase2aa),%%->
+ %%true;(Text1=E14,Text2=Phrases4)
+ writeln("11"))
+ )
+ ).
+ %%append_list([Text4,Text5,Text6,Text7],Phrases4).
+
+split_on_phrases4(Text1,E11,Text2,Text4,Phrase2,Phrase22,Phrase2a,Title,N) :-
+ split_on_phrases4a(Text1,_C1,D1,Phrase2,_E1),
+ %%string_codes(C,C1),
+ %%string_codes(D,D1),
+ string_codes(Phrase20,Phrase2),
+ string_codes(Phrase202,Phrase22),
+ split_on_phrases4b(D1,Phrase2a,E11,C11,_),
+ string_codes(C110,C11),
+ concat_list([Phrase20,C110],C12),
+ string_codes(C10,C12),
+ number_string(N,NS),
+ concat_list([Title," ","by Lucian Green"," ",Phrase202," ",NS," of 4.txt"],E101),
+ concat_list([Title,"\n","by Lucian Green","\n",Phrase202," ",NS," of 4\n\n",C10],C122),
+ append(Text2,[[E101,C122]],Text4).
+
+split_on_phrases4a(Text1,C1,D1,Phrase2,E1) :-
+ append(C1,E1,Text1),
+ append(Phrase2,D1,E1).
+split_on_phrases4b(D1,Phrase2a,E11,C11,D10) :-
+ append(C11,E11,D1),
+ %%writeln1(append(Phrase2a,D10,E11)),
+ append(Phrase2a,D10,E11).
+
+split_on_phrases41(Text1,E11,Text2,Text4,Phrase2,Phrase22,Phrase2a,Title,N,Phrase2aa) :-
+
+string_codes(Text1z,Text1),
+%%*string_codes(E11z,E11),
+%%string_codes(Text2z,Text2),
+%%*string_codes(Text4z,Text4),
+string_codes(Phrase2z,Phrase2),
+string_codes(Phrase22z,Phrase22),
+string_codes(Phrase2az,Phrase2a),
+string_codes(Titlez,Title),
+%%*string_codes(Nz,N),
+string_codes(Phrase2aaz,Phrase2aa),
+%%writeln1(split_on_phrases41(Text1z,_E11z,Text2,_Text4z,Phrase2z,Phrase22z,Phrase2az,Titlez,N,Phrase2aaz)),
+
+
+%%string_codes(Text1z,Text1),writeln([text1,Text1z]),
+ %%writeln(split_on_phrases4b(Text1,Phrase2aa,E11x,Text1a,D100)),
+ split_on_phrases4b(Text1,Phrase2aa,E11x,Text1a,D100),
+
+string_codes(Text1z,Text1),
+string_codes(Phrase2aaz,Phrase2aa),
+string_codes(E11xz,E11x),
+string_codes(Text1az,Text1a),
+string_codes(D100z,D100),
+
+%%writeln1( split_on_phrases4b(Text1z,Phrase2aaz,E11xz,Text1az,D100z)),
+
+%%writeln1( split_on_phrases4a(Text1a,_C1,D1,Phrase2,_E1)),
+ split_on_phrases4a(Text1a,C1,D1,Phrase2,E1),
+
+string_codes(C1z,C1),
+string_codes(D1z,D1),
+string_codes(E1z,E1),
+ %%writeln(split_on_phrases4a(Text1a,C1z,D1z,Phrase2z,E1z)),
+
+ %%string_codes(C,C1),
+ %%string_codes(D,D1),
+ %%string_codes(Phrase20,Phrase2),
+ string_codes(Phrase202,Phrase22),
+
+ %%writeln1( split_on_phrases4b(Text1a,Phrase2a,_,_,_)),
+ (split_on_phrases4b(Text1a,Phrase2a,_E11q,_C11q,_D10q)-> %% D1->Text1a
+
+ ((split_on_phrases4b(Text1,Phrase22,_,_,C11r)->true;
+ C11r=Text1), %% old
+ split_on_phrases4b(C11r,Phrase2a,E11,C11,_D102));
+ %%split_on_phrases4b(Text1a,Phrase2,_E11q,_C11q,_D10q));
+ (C11=Text1a,E11=E11x)), %% old
+
+%%writeln1(split_on_phrases4b(D1,Phrase2aa,_F112,G11)),
+ %%split_on_phrases4b(D10,Phrase2aa,_F11,G11,H),
+ %%()split_on_phrases4b(D1,Phrase2a,E11,C11),
+
+ %%split_on_phrases4b(G11,Phrase2a,E11,C11),
+ string_codes(C110,C11),
+ concat_list([%%Phrase20,
+ C110%%,E11
+ ],C12),
+ string_codes(C10,C12),
+ number_string(N,NS),
+ concat_list([Title," ","by Lucian Green"," ",Phrase202," ",NS," of 4.txt"],E101),
+ concat_list([Title,"\n","by Lucian Green","\n",Phrase202," ",NS," of 4\n\n",C10],C122),
+ append(Text2,[[E101,C122]],Text4).
+
+split_on_phrases42(Text1,E11,Text2,Text4,_Phrase2,Phrase22,_Phrase2a,Title,N,Phrase2aa) :-
+
+string_codes(Text1z,Text1),
+%%string_codes(E11z,E11),
+%%string_codes(Text2z,Text2),
+%%string_codes(Text4z,Text4),
+%%string_codes(Phrase2z,Phrase2),
+%%string_codes(Phrase22z,Phrase22),
+%%string_codes(Phrase2az,Phrase2a),
+%%string_codes(Titlez,Title),
+%%string_codes(Nz,N),
+string_codes(Phrase2aaz,Phrase2aa),
+%%writeln1(split_on_phrases41(Text1z,E11z,Text2z,Text4z,Phrase2z,Phrase22z,Phrase2az,Titlez,N,Phrase2aaz)),
+%%string_codes(Text1z,Text1),%%writeln([text1,Text1z]),
+ split_on_phrases4b(Text1,Phrase2aa,E11,C11,E11x),
+ string_codes(E11z,E11),
+string_codes(C11z,C11),
+string_codes(E11xz,E11x),
+%%***writeln1(split_on_phrases4b_42here(Text1z,Phrase2aaz,E11z,C11z,E11xz)),
+(C11=[]->Text4=Text2;(
+%%string_codes(Text1z,Text1),
+%%string_codes(Phrase2aaz,Phrase2aa),
+%%string_codes(Text1az,Text1a),
+%%string_codes(D100z,D100),
+
+%%writeln1( split_on_phrases4b(Text1z,Phrase2aaz,E11z,Text1az,D100z)),
+
+%%writeln1( split_on_phrases4a(Text1a,_C1,D1,Phrase2,_E1)),
+ %%*split_on_phrases4a(Text1a,_C1,_D1,Phrase2,_E1),
+ %%string_codes(C,C1),
+ %%string_codes(D,D1),
+ %%string_codes(Phrase20,Phrase2),
+ string_codes(Phrase202,Phrase22),
+
+ %%*writeln1( split_on_phrases4b(Text1a,Phrase2a,E11,C11,_D10)),
+ %%*(split_on_phrases4b(Text1a,Phrase2a,_E11q,_C11q,_D10q)-> %% D1->Text1a
+/**
+ ((split_on_phrases4b(Text1,Phrase22,_,_,C11r)->true;
+ C11r=Text1), %% old
+ split_on_phrases4b(C11r,Phrase2a,E11,C11,_D102));
+ %%split_on_phrases4b(Text1a,Phrase2,_E11q,_C11q,_D10q));
+ (C11=Text1a,E11=E11x)), %% old
+**/
+%%writeln1(split_on_phrases4b(D1,Phrase2aa,_F112,G11)),
+ %%split_on_phrases4b(D10,Phrase2aa,_F11,G11,H),
+ %%()split_on_phrases4b(D1,Phrase2a,E11,C11),
+
+ %%split_on_phrases4b(G11,Phrase2a,E11,C11),
+ string_codes(C110,C11),
+ concat_list([%%Phrase20,
+ C110%%,E11
+ ],C12),
+ string_codes(C10,C12),
+ number_string(N,NS),
+ concat_list([Title," ","by Lucian Green"," ",Phrase202," ",NS," of 4.txt"],E101),
+ concat_list([Title,"\n","by Lucian Green","\n",Phrase202," ",NS," of 4\n\n",C10],C122),
+ append(Text2,[[E101,C122]],Text4))).
+ %%writeln([e11,E11]).
+
+write_files(Text1) :-
+ findall(_,(member(Text2,Text1),%%member(Text2,Text3),%%member(Text2,Text4),
+ Text2=[Title1,Contents1],string_codes(Title2,Title1),string_codes(Contents2,Contents1),
+ write_file(Title2,Contents2)),_).
+
+write_file(File,String) :-
+ open_s(File,write,Stream),
+ write(Stream,String),
+ close(Stream).
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
diff --git a/Split-on-Phrases/t2aiff.sh b/Split-on-Phrases/t2aiff.sh
new file mode 100644
index 0000000000000000000000000000000000000000..33da3e544a736755fca78a23dc11c4f9cd877745
--- /dev/null
+++ b/Split-on-Phrases/t2aiff.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+for filename in Data/*.txt; do
+ Say -v Fred -o "Data/$(basename "$filename" .txt).aiff" -f "$filename"
+done
\ No newline at end of file
diff --git a/State-Machine-to-List-Prolog/.DS_Store b/State-Machine-to-List-Prolog/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..bfdba582b92992d6d1f244dee138d2c86c4dcc98
Binary files /dev/null and b/State-Machine-to-List-Prolog/.DS_Store differ
diff --git a/State-Machine-to-List-Prolog/LICENSE b/State-Machine-to-List-Prolog/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..cbee26b2a100ccce61cfcd80f0ab2580494d4795
--- /dev/null
+++ b/State-Machine-to-List-Prolog/LICENSE
@@ -0,0 +1,28 @@
+BSD 3-Clause License
+
+Copyright (c) 2022, Lucian Green
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/State-Machine-to-List-Prolog/README.md b/State-Machine-to-List-Prolog/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..b70249e95c17cc87000cceac2dab4c84df26628f
--- /dev/null
+++ b/State-Machine-to-List-Prolog/README.md
@@ -0,0 +1,110 @@
+# State Machine to List Prolog
+
+* Convert State Saving Interpreter State Machines to List Prolog algorithms.
+
+
+# Getting Started
+
+Please read the following instructions on how to install the project on your computer for converting algorithms.
+
+# Prerequisites
+
+* Please download and install SWI-Prolog for your machine at `https://www.swi-prolog.org/build/`.
+
+* You may need to install gawk using Homebrew.
+
+* Install Translation Shell on Mac, etc.
+Change line in
+```
+culturaltranslationtool/ctt2.pl
+trans_location("../../../gawk/trans").
+```
+to correct location of trans.
+
+# 1. Install manually
+
+* Download:
+* this repository.
+* State Saving Interpreter. (Note: see SSI's page for additional repositories needed.)
+
+# 2. Or Install from List Prolog Package Manager (LPPM)
+
+* Download the LPPM Repository:
+
+```
+mkdir GitHub
+cd GitHub/
+git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
+cd List-Prolog-Package-Manager
+swipl
+['lppm'].
+lppm_install("luciangreen","State-Machine-to-List-Prolog").
+halt
+```
+
+# Running
+
+* In Shell:
+`cd State-Machine-to-List-Prolog`
+`swipl`
+`['sm_to_lp.pl'].`
+
+* For example, convert a List Prolog test algorithm to SM form and back to LP form and test they have the same result. (Replace `3` in `numbers(3,1,[],A)` with the maximum test number below.)
+
+```
+?- numbers(10,1,[],A),findall(B,(Debug=off,member(B,A),test(B,Q,F,R),query_box(Q,Query1,F,Functions1),convert_to_grammar_part1(Functions1,[],Functions2,_),add_line_numbers_to_algorithm1(Functions2,Functions2a),find_pred_numbers(Functions2a,[],Pred_numbers),find_state_machine1(Functions2a,Functions3,Pred_numbers),sm_to_lp(Functions3,Functions2b),lucianpl(Debug,Q,F,R1),Functions2b=[[_|_]|Functions2c],lucianpl(off,Q,Functions2c,R2),(R1=R2->Result=success;Result=fail),writeln([B,Result])),C),sort(C,C1),writeln(C1).
+
+[[1,success],[2,success],[3,success],[4,success],[5,success],[6,success],[7,success],[8,success],[9,success],[10,success]]
+```
+
+* The original and converted algorithm have the same results, showing the converter has worked.
+
+* To pretty print the converted List Prolog for a test number:
+
+```
+A=[250],findall(B,(member(B,A),test(B,Q,F,R),query_box(Q,Query1,F,Functions1),convert_to_grammar_part1(Functions1,[],Functions2,_),add_line_numbers_to_algorithm1(Functions2,Functions2a),find_pred_numbers(Functions2a,[],Pred_numbers),find_state_machine1(Functions2a,Functions3,Pred_numbers),sm_to_lp(Functions3,Functions2b),pp0(Functions2,Functions21),writeln(Functions21),pp0(Functions2b,Functions2b1),writeln(Functions2b1)),C).
+
+[
+[[n,query_box_1],[[v,b]],":-",
+[
+ [[n,a],[[v,b]]]
+]],
+[[n,a],[[v,b]],":-",
+[
+ [[n,"->"],
+ [
+ [
+ [[n,c],[[v,c]]]
+ ],
+
+ [
+ [[n,c],[[v,c]]]
+ ],
+
+ [[n,"->"],
+ [
+ [
+ [[n,c],[[v,c]]]
+ ],
+
+ [
+ [[n,c],[[v,c]]]
+ ],
+
+ [
+ [[n,c],[[v,c]]]
+ ]
+ ]]
+ ]]
+]]
+]
+```
+
+# Authors
+
+Lucian Green - Initial programmer - Lucian Academy
+
+# License
+
+I licensed this project under the BSD3 License - see the LICENSE.md file for details
+
diff --git a/State-Machine-to-List-Prolog/file.txt b/State-Machine-to-List-Prolog/file.txt
new file mode 100644
index 0000000000000000000000000000000000000000..a4689b2db1dea7f0796358691e489cbe73a7fd78
--- /dev/null
+++ b/State-Machine-to-List-Prolog/file.txt
@@ -0,0 +1 @@
+["Name","61"].
\ No newline at end of file
diff --git a/State-Machine-to-List-Prolog/sm_to_lp.pl b/State-Machine-to-List-Prolog/sm_to_lp.pl
new file mode 100644
index 0000000000000000000000000000000000000000..c93739a1d63dccdbaeb336102fa7e54ab844cccb
--- /dev/null
+++ b/State-Machine-to-List-Prolog/sm_to_lp.pl
@@ -0,0 +1,853 @@
+:-include('../SSI/ssi.pl').
+
+sm_to_lp(Algorithm1,Algorithm2) :-
+ sm_to_lp(Algorithm1,[],Algorithm2),!.
+
+sm_to_lp([],Algorithm,Algorithm) :- !.
+sm_to_lp(Algorithm1,Algorithm2,Algorithm3) :-
+ Algorithm1=[Function1|Functions],
+ (Function1=[_Number,Name,Arguments1,Symbol1,Body1]
+ ->%symbol(Symbol1,Symbol2),
+ (
+ get_up_to_next_chunk(Body1,%Body2,
+ [],Body2),
+ (false->%Arguments1=[]->
+ append(Algorithm2,[[%Number,
+ Name,Symbol1,Body2]],Algorithm4);
+ append(Algorithm2,[[%Number,
+ Name,Arguments1,Symbol1,Body2]],Algorithm4)
+
+ )
+ )
+ /*;
+ (trace,Function1=[_Number,Name|Arguments1],
+
+ %get_up_to_next_chunk(Body1,%Body2,
+ %[],Body2),
+ (Arguments1=[]->
+ append(Algorithm2,[[%Number,
+ Name]],Algorithm4);
+ append(Algorithm2,[[%Number,
+ Name,Arguments1]],Algorithm4)
+ )
+ )
+ */),
+ %writeln1([Name,Arguments1,Symbol1,Body2]),
+%catch(call_with_time_limit(2,sm_to_lp(Functions,Algorithm4,Algorithm3)),_,false).
+
+ sm_to_lp(Functions,Algorithm4,Algorithm3).
+
+
+ %gets next chunk (section) including up to a chunk, then goes over it and searches for more chunks *
+
+% get_up_to_next_chunk(B,[],Commands).
+
+get_up_to_next_chunk([],C,C) :- !.
+get_up_to_next_chunk(B,C1,C2) :-
+
+ get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+
+
+ append(A,C,B),
+
+C=[C111|D],
+
+C111=[_Number,[Dbw_on_true,_Statements1_number],[Dbw_go_after,_Statements2_number],[Dbw_on_false,_Return_line_false],[Dbw_go_to_predicates,_Predicates],[Dbw_n_or_v1,F]|_Arguments],
+(Dbw_n_or_v1=Dbw_n->true;Dbw_n_or_v1=Dbw_v),
+%trace,
+(
+(F="[]"->true;(F=Dbw_not->true;(F=Dbw_or->true;(F="->"->true;(F=Dbw_findall)))))
+->
+(
+convert_chunk(A,E),
+append(C1,E,C3),
+%* append E
+%trace,
+append(C,[],CD),
+get_chunks(CD,[],C22),
+append(C3,C22,C2)
+)
+;
+(
+%trace,
+%not((
+%(F="[]"->true;(F=Dbw_not->true;(F=Dbw_or->true;(F="->"->true;(F=Dbw_findall))))))),
+
+%trace,
+/*convert_chunk(B,E),
+*/
+%trace,
+append(A,[C111],AC),
+convert_chunk(AC,E),
+append(C1,E,C3),
+%* append E
+%trace,
+%append(C,[],CD),
+get_up_to_next_chunk(D,[],C22),
+append(C3,C22,C2)
+
+))
+,!
+.
+
+/*
+get_up_to_next_chunk2([],C,C) :- !.
+get_up_to_next_chunk2(B,C1,C2) :-
+
+ get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+
+
+ %append(A,C,B),
+
+%C=[C111|D],
+
+%C111=[_Number,[Dbw_on_true,_Statements1_number],[Dbw_go_after,_Statements2_number],[Dbw_on_false,_Return_line_false],[Dbw_go_to_predicates,_Predicates],[Dbw_n_or_v1,F]|_Arguments],
+%(Dbw_n_or_v1=Dbw_n->true;Dbw_n_or_v1=Dbw_v),
+%trace,
+
+(
+forall(member([_Number,[Dbw_on_true,_Statements1_number],[Dbw_go_after,_Statements2_number],[Dbw_on_false,_Return_line_false],[Dbw_go_to_predicates,_Predicates],[Dbw_n_or_v1,F]|_Arguments],B),not((F="[]"->true;(F=Dbw_not->true;(F=Dbw_or->true;(F="->"->true;(F=Dbw_findall)))))))
+
+->
+
+
+(convert_chunk(B,E),
+append(C1,E,C2))
+;
+
+get_up_to_next_chunk(B,C1,C2))
+,!
+.
+*/
+
+
+get_chunks([],C,C) :- !.
+
+get_chunks(CD,C1,C2) :-
+
+ get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+ %get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+%get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+%get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+
+CD=[[Number,[Dbw_on_true,_Statements1_number],[Dbw_go_after,_Statements2_number],[Dbw_on_false,_Return_line_false],[Dbw_go_to_predicates,_Predicates],[Dbw_n_or_v1,F]|Arguments]|D],
+
+(Dbw_n_or_v1=Dbw_n->true;Dbw_n_or_v1=Dbw_v),
+%F="[]",
+%trace,
+%(F=findall->trace;true),
+
+ get(F,Number,D,E,[],C4,Arguments,wrap),
+
+
+append(C1,C4,C6),
+%trace,
+get_up_to_next_chunk(E,[],C5),
+append(C6,C5,C2)
+,!
+.
+
+
+
+convert_chunk([],[]) :- !.
+convert_chunk(A,B) :-
+
+ get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+
+findall(A1,(member([_Number,[Dbw_on_true,_Statements1_number],[Dbw_go_after,_Statements2_number],[Dbw_on_false,_Return_line_false],[Dbw_go_to_predicates,_Predicates],[Dbw_n_or_v,F],Arguments],A),(Dbw_n_or_v=Dbw_n->true;Dbw_n_or_v=Dbw_v),
+%trace,
+(Arguments=[]->A1=[[Dbw_n_or_v,F]];A1=[[Dbw_n_or_v,F],Arguments])
+),B).
+
+
+
+get(F,Number,D,E2,C1,C4,[[Argument1,Argument2]],Wrap) :-
+
+ get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+
+(F="[]"->true;(F=Dbw_not->true;(F=Dbw_findall))),
+
+%trace,
+
+(Wrap=nowrap->append([_],D1,D);D1=D),
+
+ %append(A,C,D1),
+
+%(false%Wrap=nowrap
+%->not(A=[]);true),
+%trace,
+get_last_line(Number,D1,C111,A,E,Number2,F2,C,Arguments2),
+
+%reverse(C,CR),
+% CR=[C111|_],
+ %*C111=[Number2,[Dbw_on_true,A3],[Dbw_go_after,B],[Dbw_on_false,_],[Dbw_go_to_predicates,_],[Dbw_n_or_v1,F2]|Arguments2],
+
+%(Dbw_n_or_v1=Dbw_n->true;Dbw_n_or_v1=Dbw_v),
+
+
+%(A3=[Fail_or_exit,Number]->true;B=[Fail_or_exit,Number]),
+%(Fail_or_exit=exit_function->true;Fail_or_exit=fail_function),
+
+%trace,
+%append(Ay,C11y,C),
+%C=[C111|E],
+%C11y=[C111|E],
+%append(A,Ay,Az),
+/*
+%convert_chunk
+%trace,
+append(A,[C111],AC),
+get_up_to_next_chunk(AC,[],C31),
+*/
+
+
+/*
+get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+*/
+
+%trace,
+
+((F2="[]"->true;(F2=Dbw_not->true;(F2=Dbw_or->true;(F2="->"->true;(F2=Dbw_findall)))))->
+
+
+ (%append(A,[C111],AC),
+ %trace,
+ get_up_to_next_chunk(A,[],Ax1),
+ get(F2,Number2,C%AC%E E*
+ ,E2,[],C32,Arguments2,nowrap),
+ append(Ax1
+ ,C32,C31));
+
+(
+%convert_chunk
+%trace,
+append(A,[C111],AC),
+%trace,
+get_up_to_next_chunk(AC,[],C31),
+E=E2
+)),
+
+
+((F="[]",
+(true%Wrap=wrap
+->
+C3=[C31];
+C3=
+C31
+))->true;
+
+((F=Dbw_not,
+(true%Wrap=wrap
+->
+C3=[[[Dbw_n,F],C31]];
+C3=[[Dbw_n,F],C31])
+)->true;
+
+(F=Dbw_findall,
+foldr(append,[[Argument1],C31,[Argument2]],Arguments3),
+(true%Wrap=wrap
+->
+C3=[[[Dbw_n,F],Arguments3]];
+C3=[[Dbw_n,F],Arguments3])
+)))
+
+
+, % "[]"
+
+append(C1,C3,C4).
+
+/*
+get(Dbw_not,Number,D,E2,_C1,C3,_,Wrap) :-
+
+F=Dbw_not,
+
+
+ get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+*/
+/*
+ get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+
+%trace,
+(Wrap=nowrap->append([_],D1,D);D1=D),
+
+ append(A,C,D1),
+(false%Wrap=nowrap
+->not(A=[]);true),
+
+ C=[C112|E],
+
+C112=[Number2,[Dbw_on_true,A3],[Dbw_go_after,A4],[Dbw_on_false,_%[fail_function,Number]
+],[Dbw_go_to_predicates,_],[Dbw_n_or_v1,F2]|Arguments2],
+
+(Dbw_n_or_v1=Dbw_n->true;Dbw_n_or_v1=Dbw_v),
+
+(A3=[Fail_or_exit,Number]->true;A4=[Fail_or_exit,Number]),
+
+(Fail_or_exit=exit_function->true;Fail_or_exit=fail_function),
+
+%convert_chunk
+%trace,
+
+
+
+get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+
+%trace,
+
+((F2="[]"->true;(F2=Dbw_not->true;(F2=Dbw_or->true;(F2="->"->true;(F2=Dbw_findall)))))->
+
+
+ (%append(A,[C111],AC),
+ %trace,
+ get_up_to_next_chunk(A,[],Ax1),
+
+ get(F2,Number2,C%AC%E E*
+ ,E2,[],C32,Arguments2,nowrap),
+ append(Ax1
+ ,C32,C31));
+
+(
+%convert_chunk
+%trace,
+append(A,[C112],AC),
+%trace,
+get_up_to_next_chunk(AC,[],C31),
+E=E2
+)),
+
+(true%Wrap=wrap
+->
+C3=[[[Dbw_n,F],C31]];
+C3=[[Dbw_n,F],C31]).
+*/
+
+
+%->,3
+get(F,Number,D,E5,_C1,C3,_,Wrap) :-
+
+ get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+
+F="->",
+%trace,
+/* get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+*/
+%trace,
+(Wrap=nowrap->append([_],D1,D);D1=D),
+
+get_last_line(Number,D1,C111,A,E,Number2,F2,C,Arguments2),
+
+% append(A,C,D1),
+%(false%Wrap=nowrap
+%->not(A=[]);true),
+
+ %C=[C111|E],
+
+%trace,
+ %C111=[Number2,[Dbw_on_true,_N1],[Dbw_go_after,_],[Dbw_on_false,_Number3],[Dbw_go_to_predicates,_],[Dbw_n_or_v1,F2]|Arguments2],
+
+%(Dbw_n_or_v1=Dbw_n->true;Dbw_n_or_v1=Dbw_v),
+
+%trace,
+%get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+%get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+%get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+
+%trace,
+
+((F2="[]"->true;(F2=Dbw_not->true;(F2=Dbw_or->true;(F2="->"->true;(F2=Dbw_findall)))))->
+
+
+ (%append(A,[C111],AC),
+ %trace,
+ get_up_to_next_chunk(A,[],Ax1),
+ get(F2,Number2,C%AC%E E*
+ ,E2,[],C32,Arguments2,nowrap),
+ append(Ax1
+ ,C32,C31));
+
+(
+%convert_chunk
+%trace,
+append(A,[C111],AC),
+%trace,
+get_up_to_next_chunk(AC,[],C31),
+E=E2
+)),
+
+%trace,
+%(Wrap=nowrap->append([_],E21,E2);E21=E2),
+
+get_last_line(Number,E2,C112,A1,E1x,Number31,F3,C11,Arguments3),
+
+ %append(A1,C11,E2),
+
+ %C11=[C112|E1x],
+
+ %trace,
+ %C112=[Number31,[Dbw_on_true,A3],[Dbw_go_after,B],[Dbw_on_false,_Number4],[Dbw_go_to_predicates,_],[Dbw_n_or_v2,F3]|Arguments3],
+
+%(Dbw_n_or_v2=Dbw_n->true;Dbw_n_or_v2=Dbw_v),
+
+%(A3=[Fail_or_exit,Number]->true;B=[Fail_or_exit,Number]),
+
+ %(Fail_or_exit=exit_function->true;Fail_or_exit=fail_function),
+
+((F3="[]"->true;(F3=Dbw_not->true;(F3=Dbw_or->true;(F3="->"->true;(F3=Dbw_findall)))))->
+
+
+ (%append(A1,[C112],AC1),
+ get_up_to_next_chunk(A1,[],Ax),
+ get(F3,Number31,%E1%
+ C11%,AC1%E*
+ ,E3,[]%C1
+ ,C311x,Arguments3,nowrap),
+ append(Ax,C311x,C311));
+
+(
+
+%convert_chunk
+%trace,
+append(A1,[C112],AC1),
+get_up_to_next_chunk(AC1,[],C311)
+,E1x=E3
+)),
+
+%(Wrap=nowrap->append([_],E31,E3);E31=E3),
+
+get_last_line(Number,E3,C1131,A13,E4,Number41,F33,C113,Arguments33),
+
+ %append(A13,C113,E3),
+
+ %C113=[C1131|E4],
+
+ %trace,
+ %C1131=[Number41,[Dbw_on_true,A33],[Dbw_go_after,B3],[Dbw_on_false,_Number43],[Dbw_go_to_predicates,_],[Dbw_n_or_v3,F33]|Arguments33],
+
+%(Dbw_n_or_v3=Dbw_n->true;Dbw_n_or_v3=Dbw_v),
+
+%(A33=[Fail_or_exit2,Number]->true;B3=[Fail_or_exit2,Number]),
+
+ %(Fail_or_exit2=exit_function->true;Fail_or_exit2=fail_function),
+
+((F33="[]"->true;(F33=Dbw_not->true;(F33=Dbw_or->true;(F33="->"->true;(F33=Dbw_findall)))))->
+
+
+ (%append(A1,[C112],AC1),
+ get_up_to_next_chunk(A13,[],A13x),
+ get(F33,Number41,%E1%
+ C113%,AC1%E*
+ ,E5,[]%C1
+ ,C3131,Arguments33,nowrap),
+ append(A13x,C3131,C313)
+ % eliminate ->,2
+ %here1
+ );
+
+(
+
+%convert_chunk
+%trace,
+append(A13,[C1131],AC13),
+get_up_to_next_chunk(AC13,[],C313)
+,E4=E5
+)),
+
+%trace,
+foldr(append,[C31,C311,C313],C314),
+
+(true%Wrap=wrap
+->
+C3=[[[Dbw_n,F],C314]];
+C3=[[Dbw_n,F],C314]).
+
+
+get(F,Number,D,E3,_C1,C3,_,Wrap) :-
+
+ get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+
+(F=Dbw_or->true;F="->"), % ->,2
+
+/*
+ get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+*/
+
+%trace,
+(Wrap=nowrap->append([_],D1,D);D1=D),
+
+get_last_line(Number,D1,C111,A,E,Number2,F2,C,Arguments2),
+
+%append(A,C,D1),
+%(false%Wrap=nowrap
+%->not(A=[]);true),
+
+ %C=[C111|E],
+
+ %C111=[Number2,[Dbw_on_true,[Fail_or_exit,Number]],[Dbw_go_after,_],[Dbw_on_false,_Number3],[Dbw_go_to_predicates,_],[Dbw_n_or_v1,F2]|Arguments2],
+
+ %(Fail_or_exit=exit_function->true;Fail_or_exit=fail_function),
+
+
+%(Dbw_n_or_v1=Dbw_n->true;Dbw_n_or_v1=Dbw_v),
+
+
+
+/*
+%convert_chunk
+%trace,
+append(A,[C111],AC),
+%trace,
+get_up_to_next_chunk(AC,[],C31),
+
+
+ append(A1,C11,E),
+
+ C11=[C112|E1],
+
+ C112=[_Number31,[Dbw_on_true,[exit_function,Number]],[Dbw_go_after,_],[Dbw_on_false,_Number4],[Dbw_go_to_predicates,_],[Dbw_n,_F3]|_Arguments3],
+
+%convert_chunk
+%trace,
+append(A1,[C112],AC1),
+get_up_to_next_chunk(AC1,[],C311),
+*/
+
+
+
+
+
+/*
+get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+*/
+%trace,
+
+((F2="[]"->true;(F2=Dbw_not->true;(F2=Dbw_or->true;(F2="->"->true;(F2=Dbw_findall)))))->
+
+
+ (%append(A,[C111],AC),
+ %trace,
+ get_up_to_next_chunk(A,[],Ax1),
+ get(F2,Number2,C%AC%E E*
+ ,E2,[],C32,Arguments2,nowrap),
+ append(Ax1
+ ,C32,C31));
+
+(
+%convert_chunk
+%trace,
+append(A,[C111],AC),
+%trace,
+get_up_to_next_chunk(AC,[],C31),
+E=E2
+)),
+
+
+%(Wrap=nowrap->append([_],E21,E2);E21=E2),
+
+get_last_line(Number,E2,C112,A1,E1,Number31,F3,C11,Arguments3),
+
+ %append(A1,C11,E2),
+
+ %C11=[C112|E1],
+
+ %C112=[Number31,[Dbw_on_true,[Fail_or_exit2,Number]],[Dbw_go_after,_],[Dbw_on_false,_Number4],[Dbw_go_to_predicates,_],[Dbw_n_or_v2,F3]|Arguments3],
+
+ %(Fail_or_exit2=exit_function->true;Fail_or_exit2=fail_function),
+
+ %(Dbw_n_or_v2=Dbw_n->true;Dbw_n_or_v2=Dbw_v),
+
+((F3="[]"->true;(F3=Dbw_not->true;(F3=Dbw_or->true;(F3="->"->true;(F3=Dbw_findall)))))->
+
+
+ (%append(A1,[C112],AC1),
+ get_up_to_next_chunk(A1,[],Ax),
+ get(F3,Number31,%E1%
+ C11%,AC1%E*
+ ,E3,[]%C1
+ ,C3111,Arguments3,nowrap),
+ append(Ax,C3111,C311));
+
+(
+
+%convert_chunk
+%trace,
+append(A1,[C112],AC1),
+get_up_to_next_chunk(AC1,[],C311)
+,E1=E3
+)),
+
+
+%trace,
+foldr(append,[C31,C311],C313),
+
+(true%Wrap=wrap
+->
+C3=[[[Dbw_n,F],C313]];
+C3=[[Dbw_n,F],C313]).
+
+/*
+
+%->,2
+get("->",Number,D,E3,_C1,C3,_,Wrap) :-
+
+F="->",
+ get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+
+(Wrap=nowrap->append([_],D1,D);D1=D),
+
+ append(A,C,D1),
+(false%Wrap=nowrap
+->not(A=[]);true),
+
+ C=[C111|E],
+
+%trace,
+ C111=[Number2,[Dbw_on_true,_N1],[Dbw_go_after,_],[Dbw_on_false,_Number3],[Dbw_go_to_predicates,_],[Dbw_n_or_v1,F2]|Arguments2],
+%trace,
+
+(Dbw_n_or_v1=Dbw_n->true;Dbw_n_or_v1=Dbw_v),
+
+((F2="[]"->true;(F2=Dbw_not->true;(F2=Dbw_or->true;(F2="->"->true;(F2=Dbw_findall)))))->
+
+
+ (%append(A,[C111],AC),
+ %trace,
+ get_up_to_next_chunk(A,[],Ax1),
+ get(F2,Number2,C%AC%E E*
+ ,E2,[],C32,Arguments2,nowrap),
+ append(Ax1
+ ,C32,C31));
+
+(
+%convert_chunk
+%trace,
+append(A,[C111],AC),
+%trace,
+get_up_to_next_chunk(AC,[],C31),
+E=E2
+)),
+
+%(Wrap=nowrap->append([_],E21,E2);E21=E2),
+
+ append(A1,C11,E2),
+
+ C11=[C112|E1],
+
+ %trace,
+ C112=[Number31,[Dbw_on_true,A3],[Dbw_go_after,B],[Dbw_on_false,_Number4],[Dbw_go_to_predicates,_],[Dbw_n_or_v2,F3]|Arguments3],
+
+(Dbw_n_or_v2=Dbw_n->true;Dbw_n_or_v2=Dbw_v),
+
+(A3=[Fail_or_exit3,Number]->true;B=[Fail_or_exit3,Number]),
+
+ (Fail_or_exit3=exit_function->true;Fail_or_exit3=fail_function),
+
+((F3="[]"->true;(F3=Dbw_not->true;(F3=Dbw_or->true;(F3="->"->true;(F3=Dbw_findall)))))->
+
+
+ (%append(A1,[C112],AC1),
+ get_up_to_next_chunk(A1,[],Ax),
+ get(F3,Number31,%E1%
+ C11%,AC1%E*
+ ,E3,[]%C1
+ ,C3111,Arguments3,nowrap),
+ append(Ax,C3111,C311));
+
+(
+
+%convert_chunk
+%trace,
+append(A1,[C112],AC1),
+get_up_to_next_chunk(AC1,[],C311)
+,E1=E3
+)),
+
+%trace,
+foldr(append,[C31,C311],C313),
+
+(true%Wrap=wrap
+->
+C3=[[[Dbw_n,F],C313]];
+C3=[[Dbw_n,F],C313]).
+*/
+
+/*
+get(Dbw_findall,Number,D,E2,_C1,C3,[Argument1,Argument2],Wrap) :-
+
+F=Dbw_findall,
+
+ get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+
+%get_lang_word("findall_exit_function",Dbw_findall_exit_function1),Dbw_findall_exit_function1=Dbw_findall_exit_function,
+%get_lang_word("findall_fail_function",Dbw_findall_fail_function1),Dbw_findall_fail_function1=Dbw_findall_fail_function,
+
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+
+(Wrap=nowrap->append([_],D1,D);D1=D),
+
+ append(A,C,D1),
+(false%Wrap=nowrap
+->not(A=[]);true),
+
+ C=[C111|E],
+
+ C111=[Number2,[Dbw_on_true,[Fail_or_exit1,Number]],[Dbw_go_after,_],[Dbw_on_false,[Fail_or_exit2,Number]],[Dbw_go_to_predicates,_],[Dbw_n_or_v1,F2]|Arguments2],
+
+ (Fail_or_exit1=exit_function->true;Fail_or_exit1=fail_function),
+ (Fail_or_exit2=exit_function->true;Fail_or_exit2=fail_function),
+
+(Dbw_n_or_v1=Dbw_n->true;Dbw_n_or_v1=Dbw_v),
+
+%convert_chunk
+%trace,
+
+
+
+get_lang_word("not",Dbw_not1),Dbw_not1=Dbw_not,
+get_lang_word("or",Dbw_or1),Dbw_or1=Dbw_or,
+get_lang_word("findall",Dbw_findall1),Dbw_findall1=Dbw_findall,
+
+%trace,
+
+((F2="[]"->true;(F2=Dbw_not->true;(F2=Dbw_or->true;(F2="->"->true;(F2=Dbw_findall)))))->
+
+
+ (%append(A,[C111],AC),
+ %trace,
+ get_up_to_next_chunk(A,[],Ax1),
+ get(F2,Number2,C%AC%E E*
+ ,E2,[],C32,Arguments2,nowrap),
+ append(Ax1
+ ,C32,C31));
+
+(
+%convert_chunk
+%trace,
+append(A,[C111],AC),
+%trace,
+get_up_to_next_chunk(AC,[],C31),
+E=E2
+)),
+
+
+%C3=[C31], % "[]"
+foldr(append,[[Argument1],C31,[Argument2]],Arguments3),
+
+(true%Wrap=wrap
+->
+C3=[[[Dbw_n,F],Arguments3]];
+C3=[[Dbw_n,F],Arguments3]).
+
+*/
+
+/*
+ get_lang_word("n",Dbw_n1),Dbw_n1=Dbw_n,
+ get_lang_word("v",Dbw_v1),Dbw_v1=Dbw_v,
+get_lang_word("on_true",Dbw_on_true1),Dbw_on_true1=Dbw_on_true,
+get_lang_word("on_false",Dbw_on_false1),Dbw_on_false1=Dbw_on_false,
+get_lang_word("go_after",Dbw_go_after1),Dbw_go_after1=Dbw_go_after,get_lang_word("go_to_predicates",Dbw_go_to_predicates1),Dbw_go_to_predicates1=Dbw_go_to_predicates,
+
+
+*/
+
+% if exit or fail fn is in go after, find deepest extent of curr fn, through true, false, the same rule as above
+% otherwise, use furthest last end line
+% this works for all fns
+
+get_last_line(Number,D,CL,A,E,Number2,F2,C,Arguments2) :-
+get_last_line2(Number,D,CL),
+CL=[Number2,[_Dbw_on_true,_],[_Dbw_go_after,_],[_Dbw_on_false,_],[_Dbw_go_to_predicates,_],[_Dbw_n_or_v1,F2]|Arguments2],
+append(A,C,D),
+C=[CL|E].
+
+
+get_last_line2(Number,C,CL) :-
+
+ ((reverse(C,CR),member([Number2,[_Dbw_on_true,_],[_Dbw_go_after,B],[_Dbw_on_false,_],[_Dbw_go_to_predicates,_],[_Dbw_n_or_v1,_F2]|_Arguments2],CR),
+ ((
+ B=[Fail_or_exit,Number],
+(Fail_or_exit=exit_function->true;(Fail_or_exit=fail_function->true;
+(Fail_or_exit=findall_exit_function->true;
+Fail_or_exit=findall_fail_function)))
+%(Dbw_n_or_v1=Dbw_n->true;Dbw_n_or_v1=Dbw_v)
+,
+
+get_last_line2(Number2,C,CL))->true;
+
+(%reverse(C,CR),
+member([Number2,[Dbw_on_true,A],[Dbw_go_after,B],[Dbw_on_false,D],[Dbw_go_to_predicates,E],[Dbw_n_or_v1,F2]|Arguments2],CR),
+
+%(Dbw_n_or_v1=Dbw_n->true;Dbw_n_or_v1=Dbw_v),
+
+
+(A=[Fail_or_exit,A2]->A1=A2;A1=A),
+%(D=[Fail_or_exit2,D2]->D1=D2;D1=D),
+
+(Fail_or_exit=exit_function->true;(Fail_or_exit=fail_function->true;
+(Fail_or_exit=findall_exit_function->true;
+Fail_or_exit=findall_fail_function))),
+
+%get_last_line(A1,C,CL1),
+
+%get_last_line(D1,C,CL2),
+
+%(CL1>=CL2->CL=CL1;CL=CL2))),!.
+
+(A1=Number),%,->true%;D1=Number),
+CL=[Number2,[Dbw_on_true,A],[Dbw_go_after,B],[Dbw_on_false,D],[Dbw_go_to_predicates,E],[Dbw_n_or_v1,F2]|Arguments2])))).
diff --git a/Text-to-Breasonings-master/.DS_Store b/Text-to-Breasonings-master/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..7b160be1118e3bb428389fa677ad56bc4637a2ac
Binary files /dev/null and b/Text-to-Breasonings-master/.DS_Store differ
diff --git a/Text-to-Breasonings-master/Disclaimer.txt b/Text-to-Breasonings-master/Disclaimer.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8f7445f1a9f2bcd57bded0d454996f495a64809f
--- /dev/null
+++ b/Text-to-Breasonings-master/Disclaimer.txt
@@ -0,0 +1,3 @@
+Disclaimer
+
+We take no responsibility for using this software. Please see a qualified professional if needed.
diff --git a/Text-to-Breasonings-master/Instructions_for_Using_texttobr(2).pl.txt b/Text-to-Breasonings-master/Instructions_for_Using_texttobr(2).pl.txt
new file mode 100644
index 0000000000000000000000000000000000000000..f06a488116035e807fb9f85ec5aa22f43fdf9664
--- /dev/null
+++ b/Text-to-Breasonings-master/Instructions_for_Using_texttobr(2).pl.txt
@@ -0,0 +1,279 @@
+Instructions for Using texttobr(2).pl
+
+This software is not for use for human conception.
+
+Use the computer as an extension of yourself to breason out texts.
+
+
+
+Glossary: Breasoning is thinking of the x, y and z measurements in metres of an object in a sentence.
+
+
+
+1. Perform the following Daily Regimen, containing meditation, pedagogy and medicine preparation.
+
+
+Meditation - (this is what the Setting up a VPS with TextToBr.txt simulates).
+
+
+You can naturally prevent a headache by silently repeating the mantras, "lucian" and "arem" for twenty, minutes, twice per day. The mantras becomes lighter and lighter, until one forgets the thought, clearing the mind. Also, silently repeat the sutra "green" for twenty minutes, twice per day after two months of using the mantras in the morning and evening. Also, pray for no digestive system pops from practising the sutra each day.
+
+Quantum Box and Nut and Bolt
+
+
+Quantum Box
+
+
+The quantum box is a guided meditation that I will describe later that prevents headaches, (relaxes head and neck muscles), and prevents muscle aches and pains. In it, you can make anything (e.g. a headache) instantly disappear, based on quantum physics (where at the quantum level, things may disappear if we want them to).
+
+
+Nut and Bolt
+
+
+The nut and bolt is a guided meditation that is a more detailed prevention of problems the Quantum Box prevents. In it, pretend to unscrew a nut from a long thin bolt each day to prevent a headache, etc.
+
+
+One-off
+
+One-off: Repeat Upasana * 800 and breason out the following 7 breasonings details to God. I make a small recommendation of a University accredited short Education course every two years or a degree every ten years.
+
+
+
+Repeat Upasana * 800 if not done in a chain of meditation days linked to today (and green, Purusha, Use, Teacher, Maharishi, Doctor each x 800 before Upasana if they are not done in a chain of meditation days linked to today).
+
+Breason out (think of examples with objects that you have thought of the x, y and z dimensions of) the following 7 breasonings details as an exercise. Pretend to breason out the breasonings details to God.
+
+See http://lucianspedagogy.blogspot.com.au/p/writing-sentences-by-making.html
+
+1. Details - As an exercise, think of two uses, a future use and two types for each object.
+
+2. Breasoning - Think of the x, y, z dimensions and colour of each object.
+
+3. Rebreasoning - Think of the fact that the person and the object in a sentence are connected by a verb (an action) that means they touch.
+
+4. Breathsoning - Think of a reason that the object is judged good (a judgment adjective).
+
+5. Rebreathsoning - Think of a reason that the verb (action) is judged done well (a judgment adverb).
+
+6. Space - Think of spatial characteristics of the person in relation to the object (room, part of room e.g. table and direction in room e.g. plate).
+
+7. Time - Think of temporal characteristics of the person in relation to the object (time to prepare e.g. buy, time to do e.g. eat, and time to finish e.g. place core in a receptacle).
+
+
+
+
+Daily Regimen
+
+
+I recommend Yoga and Qi Gong.
+
+
+Indicate 2 radio buttons (one for each of the following ideas, and one for each of these ideas working anyway, where a radio button is indicated by breasoning out, or thinking of the x, y and z dimensions of a counter, 0.01, 0.01, 0.005 metres).
+
+Too (just say “too” for each idea following to indicate the two radio buttons)
+
+meditation (108 lucian and arem mantras and 108 green sutras)
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+No digestive system pops from practising the sutra
+
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+Protector from Headache in Meditation after Honours Study, etc.
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+No headache
+
+
+The following turn off headaches etc.
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+Turn off workload from all employees including you below you,
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+Detect and turn off workloads using manager algorithm. (The self does the As, turning off the workloads.)
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+Detect and turn off workloads using manager network. (The others help finish the As, turning off the workloads.)
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+No muscle aches/pains
+
+
+2. One-off, breason out 250 characters from Lecturer Training, to be able to breason out anything you want, not just found out breasonings.
+
+
+“Lecturer (all in this document)
+
+
+ 1. I collected the comments.
+
+ 2. I wrote the formula.
+
+ 3. I wrote the input.
+
+ 4. I wrote the output.
+
+ 5. I had the rights to government.
+
+ 6. I had the rights to the state.
+
+ 7. I had the rights to vote.
+
+ 8. I amalgamated the b”
+
+
+3. One-off, breason out 250 characters from Recordings Training, to be able to indicate that breasonings are implicitly breasoned out for you.
+
+
+“Recordings from 30 As 1
+
+
+ 1. I meditated on the day I produced recordings.
+
+ 2. I confirmed training.
+
+ 3. Recordings relate to the rest of pedagogy.
+
+ 4. The delegator matched recordings (workloads) with different recordings.
+
+ 5. I endorsed the 5*50 As pract”
+
+
+“Too”: 5 symbolic strawberries (each is 0.01, 0.01, 0.01 cm) for Recordings to work.
+
+
+4. Each day, prepare for using texttobr[1/2]:
+
+
+Realise the hand breasoning switch is done for you each day from the first time you switch it on, doing the following, by breasoning out the following ten words from file2qb.txt (medicine) each day:
+"i the to and in by of this prepared a"
+
+
+Use only ONE of the following plans. It is recommended to progress through plans 1-3, for at least one month each. Commence instructions at 8 AM at the earliest. Warning: Not following these instructions when using texttobr[1/2] can result in haemorrhoids, eyelid twitches and eyelid itchiness.
+
+
+Note: In the following, 250 characters/10 words (that you MUST breason out each day before using texttobr[1/2] from Job Medicine are:
+
+
+“I relaxed my whole body. I had a bath. I ran the water. I stepped into the bath. I enjoyed the bath.
+
+I played the game. I massaged myself. I massaged my neck. I massaged my shoulders. I felt good.
+
+I had a hot bath. I ran the water. I turned t”
+
+
+5. 250 characters from Delegate Workloads
+
+"1. I cut off infinity.
+ 2. I used the sun.
+ 3. The queen helped.
+ 4. The delivery arrived.
+ 5. I earned the role.
+ 6. I wrote the developed text.
+ 7. I knew about the lotus spoon.
+ 8. I knew the female politician.
+ 9. I knew positive religion.
+ 10. P"
+
+Plan 1:
+
+Every Monday and Thursday:
+
+1. Prepare the radio button: Accredited, at the time, turned off (to make accreditation acceptable) computer science, breathsoned, VET, sales, education for the following.
+
+2. The next step means that you are seen as breasoning out text before texttobr, computer housing the breasonings, 250 breasonings per waking hour for 16 hours, stopping at midnight (from word breasonings first), no medical problems from it.
+
+3. Breason out a radio button (0.01, 0.01, 0.005 cm).
+
+4. Hand-breason out (not use texttobr[1/2] for) 250 characters from Job Medicine.
+
+
+Plan 2:
+
+Every Monday and Thursday:
+
+1. Prepare the radio button: Accredited, at the time, turned off (to make accreditation acceptable) computer science, breathsoned, VET, sales, education for the following.
+
+2. The next step means that you are seen as breasoning out text before texttobr, computer housing the breasonings, 200 breasonings per waking hour for 16 hours, stopping at midnight (from word breasonings first), no medical problems from it.
+
+3. Breason out a radio button (0.01, 0.01, 0.005 cm).
+
+4. Hand-breason out (not use texttobr[1/2] for) 250 characters from Job Medicine.
+
+Every other day:
+
+1. Prepare the radio button: Accredited, at the time, turned off (to make accreditation acceptable) CS, breathsoned, VET, sales, education for the following.
+
+2. The next step means that you are seen as breasoning out text before texttobr, computer housing the breasonings, 250 breasonings per waking hour for 1 hour (from word breasonings first), no medical problems from it.
+
+3. Breason out a radio button (0.01, 0.01, 0.005 cm).
+
+4. Hand-breason out (not use texttobr[1/2] for) 250 characters from Job Medicine.
+
+
+Plan 3:
+
+Every day:
+
+1. Prepare the radio button: Accredited, at the time, turned off (to make accreditation acceptable) computer science, breathsoned, VET, sales, education for the following.
+
+2. The next step means that you are seen as breasoning out text before texttobr, computer housing the breasonings, 70 breasonings per waking hour for 16 hours, stopping at midnight (from word breasonings first), no medical problems from it.
+
+3. Breason out a radio button (0.01, 0.01, 0.005 cm).
+
+4. Hand-breason out (not use texttobr[1/2] for) 250 characters from Job Medicine.
+
+
+5. If necessary, download SWI-Prolog for Mac or Windows and install it.
+
+
+6. Type the following commands in SWI-Prolog:
+
+
+[texttobr2].
+
+
+[texttobr].
+
+
+texttobr2.
+
+
+texttobr.
+
+(To breason out each character in the file).
+
+
+Alternative to 6: It is recommended to replace the contents of file.txt with Lecturer Training, Recordings Training and JobMedicine.txt, one-off, and
+
+
+Type the following commands in SWI-Prolog:
+
+* Note: see T2B_docs.md for instructions about running TextToBreasonings.
+
+Notes:
+
+
+Replace ⁃, – in file.txt with - or crashes
+
+Replace “,” in file.txt with " or crashes
+
+Replace ‘,’ in file.txt with ' or crashes
+
+Replace MS Word return in file.txt with normal return or crashes
+
+Replace nonbreaking space " " in file.txt with normal space " " or crashes
+
+
+If there are any invisible characters apart from esc then brdict.txt may become corrupt, and should be replaced with a backup. You could directly delete the invisible characters from brdict.txt, but Lucian Academy accepts no responsibility for this.
+
+
+You don't have to reinsert smart quotes in file.txt afterwards because texttobr2 doesn't change the file. Simply use the copy of your text before you inserted and changed it in file.txt.
diff --git a/Text-to-Breasonings-master/Job_Medicine.txt b/Text-to-Breasonings-master/Job_Medicine.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8b0fb953930a0d7c869183e7b93ecafb90e39e1c
--- /dev/null
+++ b/Text-to-Breasonings-master/Job_Medicine.txt
@@ -0,0 +1,12 @@
+Job Medicine
+
+[* start 170, 250 chars, 250 words] I relaxed my whole body. I had a bath. I ran the water. I stepped into the bath. I enjoyed the bath.
+I played the game. I massaged myself. I massaged my neck. I ma[* end 170 chars] ssaged my shoulders. I felt good.
+I had a hot bath. I ran the water. I[* end 250 chars] turned the hot tap on. I turned the cold tap on. I made sure that the water was hot enough.
+I put my foot in the water. I tested the water. I inserted my finger into the water. I removed my finger from the water. I ran more hot or cold water if the temperature was too cold or hot, respectively.
+I relaxed thinking of the bath times. I thought of the bath times. I thought of today’s bath time. I thought of tomorrow’s bath time. I thought of the bath time on the day after tomorrow.
+I gently squeezed the muscle. I found the muscle’s end. I felt the muscle. I found its end. I touched it.
+I massaged the muscle’s length. I found the muscle’s length. I found the muscle’s start. I found the muscle’s end. I subtracted the muscle’s start from the muscle’s end to find the muscle’s length.
+I tested whether the muscle needed more squeezing. I started massaging the muscle. I placed one finger on one side of the muscle. I placed another finger on the other side of the muscle. I felt if the muscle needed squeezing. [* 250 words]
+I massaged myself and stayed comfortable. I finished massaging the muscle. I squeezed the muscle a little. I felt that I could finish squeezing the muscle. I gently turned my head.
+I relaxed. I thought of relaxing. I thought of meditation (medicine). I practised meditation (relaxation). I massaged my body.
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/LICENSE b/Text-to-Breasonings-master/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..3a27c90f1c2986ac0fb73b4ae956c6205343dfdd
--- /dev/null
+++ b/Text-to-Breasonings-master/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2020, Lucian Green
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Text-to-Breasonings-master/Lecturer.txt b/Text-to-Breasonings-master/Lecturer.txt
new file mode 100644
index 0000000000000000000000000000000000000000..614f5333fd8e9ae801f6e15e1bd12936c83576be
--- /dev/null
+++ b/Text-to-Breasonings-master/Lecturer.txt
@@ -0,0 +1,393 @@
+Lecturer
+
+Contents
+
+Lecturer (all in this document)
+Simulated Intelligence
+Lecturer Simulated Intelligence
+Lecturer in Lecturer Pedagogy
+Lecturer in Recordings Pedagogy
+Pedagogy Helper Lecturer
+People Values Lecturer
+History lecturer
+Philosophy/Computational English lecturer
+Politics lecturer
+English lecturer
+Linguistics lecturer
+Computer Science lecturer
+Psychology lecturer
+Meditation lecturer
+Medicine lecturer
+Lecturer
+Metaphysics Lecturer
+Hermeneutics Lecturer
+Gay Studies Lecturer
+Popology Lecturer
+Societology Lecturer
+Simulated Intelligence Lecture continued.
+Lucianism Lecturer
+Culturology Lecturer
+Rhetoric Lecturer
+Lecturer (all in this document) Edit
+I collected the comments.
+I wrote the formula.
+I wrote the input.
+I wrote the output.
+I had the rights to government.
+I had the rights to the state.
+I had the rights to vote.
+I amalgamated the bodies.
+I agreed.
+I disagreed (concurred).
+Simulated Intelligence Edit
+I established simulated intelligence.
+I wrote on pedagogy.
+I became a pedagogue.
+I produced pedagogical recordings.
+I became a pedagogical helper.
+I wrote on people values.
+I wrote on history.
+I wrote on philosophy (Computational English).
+I wrote on politics.
+I wrote on literary studies.
+I wrote on linguistic.
+I wrote on computer science.
+I wrote on psychology.
+I wrote on meditation.
+I wrote on medicine.
+Lecturer Simulated Intelligence Edit
+The seen-as version was the first depth applied to the ideas the simulation.
+I finished the sentence with the simulation.
+I finished the topic with the simulation.
+I finished the book with the simulation.
+I simulated the lecturer with a function.
+I verified reality with the simulation.
+I was good in the simulation.
+I tested that the developed idea test was successful.
+I verified that the sentence in the simulation was correct.
+I applied the second department to the sentence in the simulation.
+==
+Lecturer Pedagogy ==
+
+I wrote the types and future details.
+For example, I wrote the use detail.
+I wrote the breasonings.
+I wrote the rebreasoning.
+I wrote the breathsoning.
+I wrote the rebreathsoning.
+I wrote the room.
+I wrote the part of the room.
+I wrote the direction.
+I wrote what happened before.
+I wrote what happened now.
+I wrote what happened in the future.
+Lecturer in Lecturer Pedagogy Edit
+I checked that I had enough before leaving.
+I waited.
+I wrote the important ideas first.
+I checked that I had enough for when I had returned.
+I studied philosophy subjects.
+I studied to teach a competency.
+I could help others with A.
+I wrote interestingly.
+I had the prerequisite studies.
+I found a student.
+Lecturer in Recordings Pedagogy Edit
+I could care for myself when playing recordings (not have a headache).
+I was free with recordings.
+I briefed (played to) the recipient of recordings.
+I knew everything I talked about in recordings.
+I prepared for (meditated on) the future from recordings.
+I had no muscle aches.
+I helped others to present recordings.
+The class average increased.
+I wrote on the good idea.
+I recommended medicine and meditation.
+Pedagogy Helper Lecturer Edit
+I wrote the three details down.
+I researched the student.
+I wrote computer science on the idea.
+I wrote philosophy on the idea.
+I wrote politics on the idea.
+I linked the details together.
+I found the topic title.
+I wrote in logic.
+I wrote on the whole idea (three steps and the use).
+I multiplied the idea when leading a committee on it.
+People Values Lecturer Edit
+The subject was saving life.
+The subject was perfect (earning 100%).
+The subject was giving (answering specific questions).
+The subject was led (acting on feedback).
+The subject helped the disadvantaged.
+The subject accepted the reward.
+The subject gave feedback.
+The subject answered the question.
+The subject rewrote the course.
+The subject noticed improvement in helped people.
+History lecturer Edit
+I was an historian.
+I wrote the most important ideas.
+I wrote on the history of madness.
+I wrote on the history of education.
+I ate an apple per day (10 breasonings) in meditation.
+I breasoned out 20 finding fault (agreeing) breasonings in business per day.
+I performed the lecturer preparation.
+I wrote 10 breasonings per day in teaching.
+I wrote 10 breasonings per day for happiness medicine.
+There was a government history campaign.
+Philosophy/Computational English lecturer Edit
+I wrote on Computational English.
+Computational English is like a cake.
+I connected two texts.
+I cut off infinity.
+I found the opposite of an argument.
+I determined the event’s history over time
+I protected the world with a simulation.
+I found the property from the file length.
+I determined the term from the definition.
+I determined the definition from the term.
+Politics lecturer Edit
+I had the right to constitution.
+I had the right to state.
+I had the right to government.
+I had the right to vote.
+I had the right to amalgamation.
+The country was equitable.
+The country maintained hight (sic) quality of life.
+There was regular re-election of government.
+The voters regularly verified the policies.
+The best ideas were found.
+English lecturer Edit
+I agreed.
+I disagreed.
+I told the story of the self.
+I told the story of us.
+I told the story of now.
+I wrote the secondary text.
+I wrote the debate.
+I wrote on another.
+I wrote on the different groups.
+I wrote on the past and future.
+Linguistics lecturer Edit
+I chose red with culture.
+I created the lingua franca.
+I started the newspaper.
+I wrote the article.
+I wrote a new language.
+I wrote on universalism.
+I defined the meaning.
+I was editor.
+I edited an article.
+I spoke in a new language.
+Computer Science lecturer Edit
+I wrote a new logic.
+I wrote a new language of logic.
+I wrote the formula.
+I wrote the formula finder.
+I wrote the input.
+I wrote the output.
+I applied the new logic to the question.
+I applied the new logic to the problem.
+I wrote the units of the input.
+I wrote the units of the output.
+Psychology lecturer Edit
+I wrote the algorithm in steps.
+I wrote the algorithm in a hierarchy.
+I wrote the algorithm with logic.
+I added emotion to ten learning aid.
+I wrote the memory aid.
+I wrote the name of one object per step.
+I wrote that everyone was included.
+I wrote that the argument was valid.
+I wrote that the feeling made the experience memorable.
+I tested that I was rested.
+Meditation lecturer Edit
+I chose spiritual instead of (and) mindfulness.
+I wrote a meditation idea per day on my aim.
+I wrote a meditation idea per day on my method.
+I wrote a meditation idea per day on my apparatus.
+I wrote a meditation idea per day on my hypothesis.
+I wrote a meditation idea per day on my results.
+I wrote a meditation idea per day on my discussion.
+I wrote a meditation idea per day on my conclusion.
+I wrote a meditation idea per day on my outliers.
+I wrote a meditation idea per day on my new discoveries.
+Medicine lecturer Edit
+I wrote six levels on the solution to the problem.
+I helped each person with meditation.
+I helped each person with medicine.
+I helped each person with pedagogy.
+I helped each person with Computational English.
+I found protection by natural law.
+I found objects that increased longevity.
+I found objects that increased happiness.
+I found objects that increased grades.
+I found objects that increased consciousness (expression).
+Lecturer Edit
+Metaphysics
+Hermeneutics
+Communication
+Gay Studies
+Popology
+Societology
+Lucianism
+Culturology
+Rhetoric
+Cognitive Science
+Psychology
+Philosophy of Language
+Development
+Body Metaphor
+Mind Metaphor
+Future
+Aesthetics
+Epistemology
+Science
+Love
+Sex
+Primary Philosophy
+Secondary Philosophy
+Logic
+Brain Metaphor
+Poetics
+Computational Philosophy
+Archeology
+Architecture
+Cosmology
+Ethics
+Laws
+Economics
+Sport
+Games
+Metaphysics Lecturer Edit
+I wrote the idea as an object.
+I wrote the idea as a word.
+I wrote the idea as a sentence.
+I wrote the idea as a paragraph.
+I wrote the idea as a chapter.
+I wrote the idea as a book.
+I wrote the idea as an algorithm.
+I detected the size of the object.
+I described the use.
+I simplified the idea to all appropriate uses.
+Hermeneutics Lecturer Edit
+I wrote the queryable ideology.
+I wrote the query.
+I wrote the ontology as answer.
+I wrote the conjoined parts.
+I wrote one of the parts of the disjunction.
+I wrote the answer set in the ideology.
+I converted the question into an answer.
+I wrote the reason for the ontology.
+I inferenced the reason with the conclusion.
+I verified the “i, j” part.
+==
+Lecturer Communication ==
+
+I spoke.
+I wrote solutions to puzzles.
+I won the point with the universal statement.
+The post-graduate was expected to become a lecturer.
+I wrote the sentence maze.
+I communicated well.
+I communicated bravely.
+I communicated to the king.
+I communicated to everyone.
+I communicated to the world.
+Gay Studies Lecturer Edit
+I was friendly with everyone.
+I was happy with everyone
+I was good with everyone.
+I wrote the poem.
+I wrote the articles.
+I wrote about sex.
+I wrote about liberation.
+I wrote about happiness.
+I wrote about goodness.
+Popology Lecturer Edit
+The person was just.
+The person was happy.
+The person was sentient.
+The person was sapient.
+The person was agreeable.
+The person met the standard.
+The person smiled.
+The person was refreshed his appearance in his mind.
+The person weighed up each side.
+The person made allowance for a new point of view.
+Societology Lecturer Edit
+The person was right.
+The person was good.
+The person was helpful.
+The person was useful
+The person was caring (well-dressed).
+There was enough leeway (the person was equitable).
+The societology model worked well.
+The other was interesting.
+The society performed the job itself.
+Society stood still.
+Simulated Intelligence Lecture continued. Edit
+Simulated Intelligence contains all ideas.
+I thought around corners of the simulation.
+I noticed Kinglish about (the characters reacted to) Simulated Intelligence.
+Breasonings didn’t like (liked) the leader in the simulation.
+God collected the value pertaining to whether the character in the simulation had critiqued him.
+The simulation supported equality of marking agreement and disagreement.
+Accreditation in the simulation is testing good not bad (and testing other good) religions.
+Accreditation in the simulation is breasoning time points being assessable because of payment to help with birth, where this help might otherwise not be given.
+Accreditation in the simulation is the meditation mantra (word) being assessable, not practised but seen as a generic skill.
+Accreditation in the simulation is the medicine quantum switch assessable because it is a generic skill.
+Accreditation in pedagogy in the simulation is breasoned breasoning lists “creating pedagogues” and “helping pedagogues” being assessable.
+I was quite intelligent.
+The king commanded the simulation.
+I started the simulation part.
+The hint worked in the simulation.
+The person maintained his good health in the simulation.
+The element in the simulation advertised it was there until change.
+Lucianism Lecturer Edit
+I read philosophy because I knew the author.
+Lucianism is taking over the world.
+Lucianism is the philosophy of God.
+The relevant philosophy is interpreted.
+Philosophy helped the world.
+The self chose itself.
+The self chose the other.
+I examined the chai form non-accreditation to accreditation.
+Humanist Pedagogy worked.
+Meditation worked.
+Culturology Lecturer Edit
+I examined [Lucianic] culture.
+I examined the goodness of life.
+Culturology is good (defended).
+Culturology was with presentness.
+Culturology had a point (culture has the selves).
+Culture was “small idea”-like, in other words, culture had a small idea.
+I examined culturology, on other words two models joined in culturology.
+I noticed the vestiches (sic), in other words I was present to, or eyed culturology.
+The croc swamp found the island, in other words culturology decorated the leaves, or canvas, or took care of the ward.
+I rewarded the culture from above with art, I rewrote culturology from above in “arg art”.
+Rhetoric Lecturer Edit
+I wrote the rhetoric of safety. Creativity was derived from God.
+I said the statement, meaning it. I know this is a production of culturology.
+The house of rhetoric advanced. As A was verified the rhetorician advanced against what was like fogs of food.
+As I saw, he saw. So were waddling if grassy. As I saw what there was to see, they saw it too.
+As I looked over myself, I was happy. As I faced the wood, I stacked it.
+As the lion roared, it was rhetoric. As I ran the program, I verified it.
+As the lion transfixed on the lion cub on a crab cond (sic) lim (sic), the lioness transfixed a point. As I talked, my students transfixed by people not necessarily disagreeing (agreed) (talking) doing work.
+As the guidelines for self-aim advice, there were for the other.
+As I created the ontology, I used it.
+As the self was verified to exist, the other was verified to exist. As the car brought food, the disabled woman led.
+==
+Cognitive Science Lecturer ==
+
+Cognitive science was computation written in sentences. Cognitive science was what was right.
+Cognition was thought, soul and deed. Cognition followed words.
+I further cognised a previous cognition. Cognition followed words.
+The lecturer wrote God’s cognitive science algorithm. I structured the thought.
+The meontology came true. I gained from the safe cognitive science.
+The cognitive scientist didn’t release God’s not reasonings (did not release the person’s metadata). The cognitive scientist started with 0, not 1.
+In cognitive science, the person was only called performing an action when the touched the object to perform that action. Cognitive science was touching the object.
+Cognitive science is the visualisation of algorithms. Cognitive science is the counting algorithm.
+Cognitive science was the void. Cognitive science was about writing (domain of the algorithm) (the plant decided on a side of the debate).
+The hook properly hooked (didn’t fall off in cognitive science).
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/Memory_returned_when_suffering_from_Parkinsons.txt b/Text-to-Breasonings-master/Memory_returned_when_suffering_from_Parkinsons.txt
new file mode 100644
index 0000000000000000000000000000000000000000..7f6bcf5a1110d9ec6f3479958784e7dbdba5c40d
--- /dev/null
+++ b/Text-to-Breasonings-master/Memory_returned_when_suffering_from_Parkinsons.txt
@@ -0,0 +1,11 @@
+Putting "Frank" on done up 50 As for meditation helped his memory return while suffering from Parkinson's.
+
+time((N is 21*3*3*3*4, M is 4000, texttobr2(N,u,u,M),texttobr(N,u,u,M))).
+
+21 people, 3 (Lucian, God, the area of study), 3 (today, tomorrow, the day after tomorrow), 3 (standard, B, B to B), 4 * 50As
+
+time((N is 21*3*3*2*4, M is 4000, texttobr2(N,u,u,M),texttobr(N,u,u,M))).
+
+Instead of 3 (standard, B, B to B): 2 (going against itself to arrive at the destination and return)
+
+https://lucianpedia.fandom.com/wiki/Random_Combination_Algorithm_Writer
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/README.md b/Text-to-Breasonings-master/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..14444bf07c7c826d06f9ace75185cbb3d15ca532
--- /dev/null
+++ b/Text-to-Breasonings-master/README.md
@@ -0,0 +1,181 @@
+Essay Helper | Text-to-Breasonings (Helps Earn High Distinctions) | Grammar Logic (Helps Mind Map Details)
+
+# Text-to-Breasonings Documentation
+
+* Text-to-Breasonings (T2B) is a set of algorithms that allow breasoning out (in this case, the computer thinks of the x, y and z dimensions of) objects to help earn high distinctions, support but not conceive healthy children, earn jobs, sell products, produce quantum energy, read minds, display spiritual screens, time travel, replicate or become immortal. T2B automates breasoning, where breasoning prevents possible health problems of other methods (see Disclaimer).
+
+* TextToBreasonings can (1) breason out words over a local machine and a Virtual Private Server (a server that you can use as central which has environmental advantages) (VPS) host, (2) breason out characters over a local machine or (3) breason out words, breathsonings (judgement adjectives and adverbs), rooms, parts of rooms, directions in rooms, objects to prepare for an action and objects to finish an action over a local machine.
+
+* Generally, 80 word breasonings are needed to earn a high distinction at undergraduate level and below, have healthy children or sell products. This increases to 2 * 15 * 80=2400 breasonings per Honours level chapter (i.e. 2, which is one to the lecturer and one from them to you), approximately 2 * 50 * 80=8000 breasonings per Masters level assignment and approximately 2 * 4 * 50 * 80=32,000 breasonings per PhD level assignment. *NB:* To actually earn H1, multiply the number of breasonings by 125 (if the rest of the breasonings are generated by Grammar Logic), except undergraduate, i.e. Honours=300,000 breasonings, Masters=1,000,000 breasonings and PhD=4,000,000 breasonings.
+
+* In addition to the 80 philosophy sentence breasonings, a certain number of short algorithms are necessary to earn a high distinction for an assignment. If there are a small number of algorithms, the lecturer may do them.
+
+| Level | Algorithms required |
+| ------------- | ------------------: |
+| Undergraduate | 80 |
+| Honours | 80 |
+| Master's | 80 |
+| PhD | 80 |
+
+* 50 As (50 * 80=4000 breasonings) are required to earn a job.
+
+* Replace 80 breasonings and 80 algorithms with 250 each for up to 100% above.
+
+* To earn H1, also breason out (and detail out in Honours and above) the lecture notes.
+
+* Essay Writing and Pedagogy Tips
+
+# Getting Started
+
+Please read the following instructions on how to install the project on your computer for breasoning.
+
+# Prerequisites
+
+* Please download and install SWI-Prolog for your machine at `https://www.swi-prolog.org/build/`.
+
+# 1. Install manually
+
+Download this repository, the List Prolog Interpreter Repository and the Algorithm Writer with Lists Repository.
+
+# 2. Or Install from List Prolog Package Manager (LPPM)
+
+* Download the LPPM Repository:
+
+```
+mkdir GitHub
+cd GitHub/
+git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
+cd List-Prolog-Package-Manager
+swipl
+['lppm'].
+lppm_install("luciangreen","Text-to-Breasonings").
+halt
+```
+
+# Caution:
+
+* Before running texttobr, think of two radio buttons put on recordings, put through with prayer, nut and bolt, quantum box prayer 1, 1, 0.5 cm and 1, 1, 0.5 cm.
+
+* Follow instructions in Instructions for Using texttobr(2) when using texttobr, texttobr2 or mind reader to avoid medical problems.
+
+* The Prevent Headaches App may be necessary.
+
+* See also Time Machine, which uses Text to Breasonings, to travel through time with meditation.
+
+# Running
+
+* In Shell:
+`cd Text-to-Breasonings`
+`swipl`
+
+* (1) To breason out words over a local machine and a VPS host, in the SWI-Prolog environment, enter:
+`['../listprologinterpreter/listprolog'].`
+`[texttobr2].`
+
+* Please follow the instructions in "Setting up a VPS with TextToBr.txt" to set up a VPS with TextToBr up to and including "Upload them to the VPS's...".
+
+* In the SWI-Prolog environment, enter:
+`texttobr2(N,File,String,M).`
+where N is the number of times to breason out the file, File is the file name, String is the string to breason out and M is the number of words in the file to breason out, e.g.:
+* `texttobr2(u,"file.txt",u,u).`
+Breasons out file.txt.
+* `texttobr2(2,"file.txt",u,u).`
+Breasons out file.txt twice.
+* `texttobr2(u,u,"Hello world.",u).`
+Breason out "Hello world.".
+* `texttobr2(3,u,"a b c",2).`
+Breasons out the first two words in "a b c" ("a" and "b") 3 times.
+
+* (2) To breason out characters over a local machine, in the SWI-Prolog environment, enter:
+`[texttobr].`
+
+* In the SWI-Prolog environment, enter:
+`texttobr(N,File,String,M).`
+where N is the number of times to breason out the file, File is the file name, String is the string to breason out and M is the number of words in the file to breason out, e.g.:
+* `texttobr(u,"file.txt",u,u).`
+Breasons out file.txt.
+* `texttobr(2,"file.txt",u,u).`
+Breasons out file.txt twice.
+* `texttobr(u,u,"Hello world.",u).`
+Breason out "Hello world.".
+* `texttobr(3,u,"abc",2).`
+Breasons out the first two characters in "abc" ("a" and "b") 3 times.
+
+* (3) To breason out words, breathsonings (judgement adjectives and judgement adverbs), rooms, parts of rooms, directions in rooms, objects to prepare for an action and objects to finish an action over a local machine, in the SWI-Prolog environment, enter:
+`['text_to_breasonings.pl'].`
+
+* In the SWI-Prolog environment, enter:
+`texttobr2(u,u,u,u,false,false,false,false,false,false).`
+where the first four arguments may be changed as in (1) above, and only words are breasoned out.
+* `texttobr2(u,u,u,u,true,false,false,false,false,false).`
+where the first four arguments may be changed as in (1) above, and only words and breathsonings are breasoned out.
+* `texttobr2(u,u,u,u,true,true,true,true,true,true).`
+where the first four arguments may be changed as in (1) above, and words, breathsonings (judgement adjectives and judgement adverbs), rooms, parts of rooms, directions in rooms, objects to prepare for an action and objects to finish an action are breasoned out.
+
+# Reading Algorithm
+
+* The algorithm often runs too quickly. To notice a number of words ("read them") in unread texts, where Master=6 algorithms, PhD=~16 algorithms and professor/politician=~50 algorithms, run with:
+```
+['../Text-to-Breasonings/text_to_breasonings.pl'].
+W is 50*4,texttobr2(u,u,u,u,false,false,false,false,false,false,W).
+% where W is the number of words to read
+% 50 is the number of algorithms,
+% and there are approximately 4 words per algorithm.
+```
+
+# Installing and Running T2B with VPS Synchronisation
+
+* Use a Virtual Private Server (VPS) Sync to breason out new meditators' names on your machine, sync with the VPS, and run meditation and text to breasonings on the VPS (by pasting rcaw.paste into the terminal.
+* Install this repository using the instructions above.
+
+* To install, in in username folder/texttobr2.sh replace the the path `/username/codefolder/` with the location of the installation of this repository and move the file to i.e. your `/username/` folder.
+
+* To run, type `./texttobr2.sh` in the `/username/` folder and T2B wil run (breasoning out only breasonings, not breathsonings, etc.), syncing with the VPS.
+
+# Repairing Corrupted Dictionary Files
+
+* If you accidentally enter a mistake in Text to Breasonings, you can repair the dictionary files using the following method.
+
+* Find texttobrall2_reading.pl or your Text to Breasonings algorithm file.
+
+* Open with BBEdit.
+
+* Find the line containing "%%{writeln(L)}". For brdict2.txt find the line ""%%{writeln(L)}" following "filet([L|Ls]) --> entryt(L),",",".
+
+* Uncomment (delete "%%") the lines "%%{writeln(L)}" and (another below it) "%%{writeln(L)}" and save the file.
+
+* Load Text to Breasonings with: ['text_to_breasonings.pl'].
+* Run Text to Breasonings with i.e. "N=u,M=u,texttobr2(N,"file.txt",u,M,false,false,false,false,false,false).".
+
+* Read the final dictionary entry before the error.
+
+* Open the dictionary file with BBEdit.
+
+* Locate the final entry "[tz,dash]," before the error "[⁃,dash],".
+
+* Delete or modify "[⁃,dash]," so that it doesn't contain the illegal character "⁃".
+
+* Reenter the comments ("%%") that were removed before.
+
+* Load Text to Breasonings with:
+['../Text-to-Breasonings/text_to_breasonings.pl'].
+* Run Text to Breasonings with i.e. "N=u,M=u,texttobr2(N,"file.txt",u,M,false,false,false,false,false,false)." to check the dictionary file is not corrupt.
+
+
+
+# Versioning
+
+We will use SemVer for versioning.
+
+# Authors
+
+Lucian Green - Initial programmer - Lucian Academy
+
+# License
+
+I licensed this project under the BSD3 License - see the LICENSE.md file for details
+
+
+# Addendum
+
+rcaw.paste added - this can be run each day to meet daily regimen requirements, such as preventing unwanted thoughts (mindreadtestsec.pl), giving meditators thoughts (mindreadingcaw.pl), giving thoughts about psychoanalysis (mindreadtestpsychiatrist.pl) and giving philosophical details(mindreadtestsecthoughts.pl).
diff --git a/Text-to-Breasonings-master/Read_Me.txt b/Text-to-Breasonings-master/Read_Me.txt
new file mode 100644
index 0000000000000000000000000000000000000000..adf5bc35c96195c17db281d89111d2f349a95659
--- /dev/null
+++ b/Text-to-Breasonings-master/Read_Me.txt
@@ -0,0 +1,3 @@
+Read Me
+
+Please read "Setting up a VPS with TextToBr.txt" to set up a VPS with TextToBr.
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/Recordings.txt b/Text-to-Breasonings-master/Recordings.txt
new file mode 100644
index 0000000000000000000000000000000000000000..fbb6c2a60b824f6ce7775a7822a1fd11bd91f7ec
--- /dev/null
+++ b/Text-to-Breasonings-master/Recordings.txt
@@ -0,0 +1,191 @@
+Recordings
+
+Recordings from 30 As 1 Edit
+I meditated on the day I produced recordings.
+I confirmed training.
+Recordings relate to the rest of pedagogy.
+The delegator matched recordings (workloads) with different recordings.
+I endorsed the 5*50 As practicums.
+I can now be free.
+I noticed the other’s recordings.
+I produced the recording of the lecture.
+I flashed the recording.
+I observed sales looking up to recordings.
+I observed virality looking up to recordings.
+I was the main figure studied with help of mantra meditation breasoning helpers.
+I noticed pedagogy in primary school like acting.
+I noticed pedagogy in vocational education and training like acting.
+The people were responsible.
+Meditators returned to the mantra by itself to become pedagogy helpers.
+Practising the mantra for longer than 2 months increases fame.
+I defended the recording ability of you, myself and I.
+I wore the white gown.
+I worked on the breasoning in a group.
+God agreed to recordings from 30 As.
+I observed the person fall in love.
+The institution made recordings available for 30 As.
+I theatricised recordings.
+The presenter presented the being with the highest quality thoughts in the universe.
+I drew the line.
+The study meditation reality was maintained.
+Meditation expected mantra-only meditators to know the pedagogy time points and have studied education to be pedagogy helpers.
+10-year olds started practising the mantra.
+Year 10 used recordings.
+Years 11 and 12 required 2*50 As per assignment.
+There was quality of poles.
+Disagreement (agreement) was discouraged (encouraged) in democracy.
+Ignorance is a death blow (intelligence gives life).
+The students were given recordings in return for 30 breasoned As.
+I used recordings in Honours.
+I used recordings in Masters by coursework.
+I used recordings in Masters by research.
+I used recordings in PhD.
+I breasoned out the essay’s sentence.
+I detailed out each sentence.
+I wrote the practicum of 30 As.
+The Queen helped me move past the pedagogy helper.
+God helped the student write the breasoning.
+Books of recordings are famous.
+Courses of recordings work.
+Recordings from 30 As made the student happy.
+There was a religious recording.
+The pedagogical is equivalent to the psychological.
+I wrote the expensive, interesting recording.
+I recorded the results of the doctor prescribing meditation.
+I said I was because of recordings giving me what I wanted in cosmology.
+I recognised the deadline of Aig recordings.
+Weekly-full time undergraduates’ assignments were encouraged to users.
+I cut off the recording.
+I wrote the essay format and structure using recordings.
+Recordings (pressing buttons) is better than breasonings (making babies).
+Socrates supported non-famous recordings.
+Meditation supported famous recordings.
+Public universities had the largest band width.
+Future Earth recorded lives.
+Thoughts compatible with cosmology were famous.
+The philosophers had famous lives.
+I found the animal a new home.
+The government took charge of the people.
+I plugged recordings into reality.
+I found perfect articulation.
+This is the machinery. This is the mass-production of our age.
+Neurorecordings are most likely to contain words in the topic when the topic is part of room.
+I appealed (accepted) the false (correct) grade.
+I identified the lieutenant.
+I saw your pencil.
+I saw your happy face.
+I heard the pop.
+I saw your tick.
+I saw the insect.
+I listened to your pop album.
+I identified your malaria (healthiness).
+I enjoyed the men’s company.
+I identified the homophobe (gay friendly) person.
+Recordings from 30 As 2 Edit
+I ate the sweets.
+I knew you dicotyledon.
+I experienced your happiness.
+I endorsed you.
+I shaped the robot’s body.
+I read on physiology.
+I read on anatomy.
+I shaped up the item on sale.
+I protected you.
+I made the robot hamstring.
+I examined cellophane.
+I saw your doodles.
+I saw Happynices (sic).
+I saw the person.
+I recorded my conversation.
+You gave input. You returned output.
+I wrote the term.
+I wrote my own exam on developed things.
+I examined the perfect conformations.
+I saw the white lady
+I identified the new person.
+I saw your neuse (sic).
+I recovered using the polyhedron.
+I saw the wilbercocks.
+I ate the wilbercocks.
+I saw the wilbercock.
+I moved on.
+I saw heapings.
+I enamoured myself.
+The void was vulgar (beautiful).
+I succt-pined (sic) you.
+I stroto-padded you.
+I verified that the answer had the same meaning.
+I compared with post-corporateness.
+There will be no water war.
+The quantum box looked like a square.
+The nut and bolt looked like diamonds.
+I noticed that the blanket made people feel good.
+I am happy with recordings.
+I proved that the minimum testing was done by testing against different combinations each with the same values in sets in databases.
+A single case of the above was used as answer to verify against a unique meaning.
+The same group’s elements should be used in the parts of the formula when it has the same meaning.
+This is a modal truth table.
+I saw the tilda seaweed in the void.
+I rolled the s.
+I meditated (was happy) when rolling the s.
+I rolled the s in fine arts.
+I meditated (was friendly) in fine arts.
+I said that recordings were new.
+Recordings didn’t (did) use chants.
+Recordings were the way out.
+I reduced breasonings to recordings by delegating them.
+Recordings were enlarged breasonings.
+The effects of implicit pedagogy (recordings) were similar to pedagogy.
+The body and recordings are both multitasking.
+Recordings are breasonings.
+Recordings fill in details in breasonings.
+Recordings complete arguments.
+Recordings replace faulty breasonings.
+Recordings support reasons and objections with ontologies.
+Reasons support objects.
+God is how to access recordings.
+The big man performed the recordings.
+Everyone had recordings and breasonings and could convince with masters and PhD.
+The pedagogy reader wrote 10 breasonings per 50 arguments, then breasoned out the arguments for the planned child
+The prospective pedagogue was directed to pedagogy with 20 brand-matics (appearances).
+Accreditation removed non-pedagogues (agrees with pedagogues).
+The pedagogue enjoyed the quality of life he or she wanted to.
+When I performed any As I received recordings from the lecturer.
+When I performed any As I received recordings from the professor.
+When I performed any As I received recordings from Maharishi.
+When I performed any As I received recordings from the royal
+When I performed any As I received recordings from the politician.
+I acknowledged the affirmation that 10 recordings had been done.
+I played the man’s recordings to him.
+Recordings were the breasonings on an education system.
+There were 50 As of recordings.
+The breasonings were synthesised and then the recordings of them were played.
+Recordings by individuals generated essays.
+In the future, people developed recordings-producing ability with computers and displays.
+Recordings from 30 As 3 Edit
+I generated recordings based on breasonings that I wrote.
+The recordings were colourful.
+A recording was a breasoning, which was a group of coloured 3D regions, with x, y and z dimensions.
+Recordings were the same in secularism.
+Recordings were accepted in the institution.
+Infinite (finite) breasonings for recordings prevented headaches in non-secularism when turned off.
+Recordings were imminent after death.
+Recordings were given en-masse.
+Royal pedagogy was in the law.
+The recorded breasoning “stop” interjected.
+I traced the recording to its original breasoning and breasoned it out.
+The recordings came from my mouth.
+I saw the recordings.
+Recordings invite time travellers to visit their producers because they are breasoned out in a high quality way.
+I saw the saints describing the recordings.
+I saw the recordequins.
+Recordings worked in all departments.
+Simulated recordings came before thoughts not in recordings in thoughts of the robot.
+I recorded the good idea to prevent crime in the world.
+The recordings worked at the touch of a button.
+The recordings were achieved as a means of production.
+I submitted the assignment after playing the recordings.
+I found fault (agreed) with the recording’s object.
+I rebelled to objects to be recordings (agreed with its base).
+Recordings described the person.
+Recordings allowed me to be there.
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/Setting_up_a_VPS_with_TextToBr.txt b/Text-to-Breasonings-master/Setting_up_a_VPS_with_TextToBr.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ccd456294ea020984a0265601e18a8e1c1275bf3
--- /dev/null
+++ b/Text-to-Breasonings-master/Setting_up_a_VPS_with_TextToBr.txt
@@ -0,0 +1,74 @@
+% member(List,Item) (below) is part of deprecated lpi
+
+Setting up a VPS (Virtual Private Server) with TextToBr
+
+Use a VPS (necessary because of the time the computation takes) to achieve meditation without meditating. Many daily benefits, such as health.
+
+Please read Instructions for Using texttobr(2).pl.txt before installing.
+
+Note: Instructions are for Mac, but you can modify steps 6 and possibly 9 for Windows and Linux.
+
+Note: Replace /Users/yourname/yourfolder/ (in edit.pl lines 12 and 13 and the following) with the folder the rest of the files will be in, /var/www/yourdomain.com/ (edit.pl line 14 and the following) with the home folder on the VPS and xxx.xxx.xxx.xxx (edit.pl line 14 and the following) with your VPS's IP address.
+
+Replace stub meditator and doctor names in meditationnoreplace.pl and medicinenoreplace.pl respectively. Meditators are taught by Lucian Academy, or a teacher with 50 Meditation As who dots on the utterance-arem link daily and doctors are those who need the effects of medicine.
+
+1. Sign up for a free account on a website hosting company.
+2. Sign up for a free or paid domain name inside the website hosting company control panel.
+3. Sign up for a $10/3 months VPS account.
+4. Ask the admin to install SWI-Prolog for Linux (e.g. Debian - https://packages.debian.org/stable/swi-prolog)
+5. Set up an FTP account on the VPS using the special control panel.
+6. Allow signing in to your VPS account without having to type your password each time:
+
+Set up shell ssh key terminal mac save public key log in -
+https://www.linode.com/docs/security/authentication/use-public-key-authentication-with-ssh/
+Does ssh key require password?
+https://stackoverflow.com/questions/21095054/ssh-key-still-asking-for-password-and-passphrase
+Where is ssh configuration file mac -
+http://osxdaily.com/2011/04/05/setup-ssh-config-fie/
+command-shift-. see invisible finder files, use AirDrop to transfer to new Macs rather than scp or ftp.
+
+7. Copy the contents of the folder to "yourfolder".
+
+8. Upload them to the VPS's /var/www/yourdomain.com/ folder.
+
+Note: Read the following to change the number of people who this script aims for:
+
+Memory returned when suffering from Parkinsons.txt
+
+9. Save the following (not a shell script) in a text file and log in and paste it into the Mac terminal.
+
+ssh root@xxx.xxx.xxx.xxx -p 22
+%% Paste rest after entering the password without keys installed, otherwise paste whole thing.
+
+cd ../var/www/yourdomain.com/
+swipl -G100g -T20g -L2g
+
+[meditationnoreplace].
+meditation.
+
+halt.
+swipl -G100g -T20g -L2g
+[meditationnoreplace].
+
+[medicinenoreplace].
+medicine.
+
+leash(-all),visible(+all).
+protocol("./file.txt").
+trace.
+caw00(off,[n,f],[[[n,append],2,1],[[n,delete],2,1],[[n,head],1,1],[[n,tail],1,1],[[n,member],1,1]],2,8,_InputVarList,_OutputVarList,[],_Program2,Ps).
+notrace,noprotocol.
+
+halt.
+swipl -G100g -T20g -L2g
+['../Text-to-Breasonings/text_to_breasonings.pl'].
+
+time((N is 21*3*3*3*4, M is 4000, texttobr2(N,u,u,M),texttobr(N,u,u,M))).
+
+halt.
+swipl -G100g -T20g -L2g
+['../Text-to-Breasonings/text_to_breasonings.pl'].
+
+time((N is 21*3*3*2*4, M is 4000, texttobr2(N,u,u,M),texttobr(N,u,u,M))).
+
+
diff --git a/Text-to-Breasonings-master/a15_meditators b/Text-to-Breasonings-master/a15_meditators
new file mode 100644
index 0000000000000000000000000000000000000000..2f6940fc0c31b7d6051a1d99dc3a2f0e6979d79d
Binary files /dev/null and b/Text-to-Breasonings-master/a15_meditators differ
diff --git a/Text-to-Breasonings-master/a15_meditators.pl b/Text-to-Breasonings-master/a15_meditators.pl
new file mode 100644
index 0000000000000000000000000000000000000000..c3a6e3d032091139877acf71c82b6213031e5a7b
--- /dev/null
+++ b/Text-to-Breasonings-master/a15_meditators.pl
@@ -0,0 +1,7 @@
+:-include('meditatorsanddoctors.pl').
+:-include('text_to_breasonings.pl').
+main:-catch((meditators(A),meditators2(B),length(A,AL),length(B,BL),CL is AL+BL,N1 is 15*4*(16000/250),time(texttobr2_1(N1)),time(texttobr2_1(CL))),Err,handle_error(Err)),halt.
+
+handle_error(_Err):-
+ halt(1).
+main :- halt(1).
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/b0.sh b/Text-to-Breasonings-master/b0.sh
new file mode 100644
index 0000000000000000000000000000000000000000..0dda4b95beeec6b5cd412111155320258aba6a96
--- /dev/null
+++ b/Text-to-Breasonings-master/b0.sh
@@ -0,0 +1,2 @@
+./b01
+./b02
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/bc12.sh b/Text-to-Breasonings-master/bc12.sh
new file mode 100644
index 0000000000000000000000000000000000000000..334a2f695aa73926428abe6aa13fc88d4b7c4f84
--- /dev/null
+++ b/Text-to-Breasonings-master/bc12.sh
@@ -0,0 +1,4 @@
+./c1
+./b1
+./c2
+./b2
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/brdict1.txt b/Text-to-Breasonings-master/brdict1.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5c4fff9f66a8b20c95438d45a6f5482f1b08a3b7
--- /dev/null
+++ b/Text-to-Breasonings-master/brdict1.txt
@@ -0,0 +1 @@
+[[,box],[a,up],[aa,dash],[aaa,dash],[aaa,square],[aaaaaaaahai,dash],[aaaaaaaahzk,dash],[aaaaaaaahzo,dash],[aaaabbbbcccc,square],[aaaaddddeeee,square],[aaab,square],[aaabaad,square],[aaaccc,square],[aaaf,square],[aab,dash],[aabort,stop],[aad,n],[aaf,dash],[aahs,mouth],[aalternatives,dash],[aami,company],[aardvar,dash],[aardvark,],[aaron,person],[aas,dash],[aay,variable],[aaz,dash],[ab,square],[aba,square],[abab,square],[ababa,city],[abacus,],[abandon,minus],[abandoned,minus],[abandoning,down],[abb,dash],[abbagnano,person],[abbb,dash],[abbc,square],[abbcc,square],[abbebc,square],[abbey,building],[abbie,person],[abbjj,square],[abbott,person],[abbrev,square],[abbreviate,square],[abbreviated,n],[abbreviation,square],[abbreviations,square],[abby,person],[abc,dash],[abcc,dash],[abcd,square],[abcda,dash],[abcdbcd,dash],[abcde,square],[abcdef,dash],[abcdefghijklm,dash],[abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz,square],[abcfde,square],[abcg,dash],[abcid,dash],[abd,square],[abdashdfj,dash],[abdolmohammadi,person],[abdomen,stomach],[abdominal,stomach],[abducing,up],[abducingness,down],[abductive,down],[abductor,person],[abdullah,person],[abdus,person],[abhi,person],[abidance,plus],[abide,plus],[abided,plus],[abiding,plus],[abidingness,plus],[abilities,plus],[ability,arm],[abl,variable],[ablative,square],[able,arm],[abled,plus],[ableism,minus],[ablett,person],[abnegation,minus],[aboard,dot],[abolish,xcorrection],[abolished,xcorrection],[aboriginal,person],[abort,xcorrection],[aborted,xcorrection],[aborting,box],[abortion,xcorrection],[aborts,xcorrection],[about,dash],[above,up],[aboveness,up],[abple,dash],[abracadabra,plus],[abracadabrae,plus],[abracadabras,plus],[abrahamson,person],[abrgepag,dash],[abroad,right],[abs,plus],[absdiffmean,n],[absence,minus],[absent,zero],[absolute,n],[absolutely,n],[absorb,down],[absorbed,down],[absorbent,water],[absorbing,down],[absorptive,down],[abstain,zero],[abstained,xcorrection],[abstaining,xcorrection],[abstract,down],[abstracted,down],[abstraction,box],[abstractions,box],[abstractly,box],[abstracts,square],[absurdia,country],[absurdity,minus],[absurdum,minus],[abundant,plus],[abuse,minus],[abusers,minus],[abuses,minus],[abusive,minus],[abut,dash],[abyss,box],[ac,dash],[aca,dash],[academia,building],[academic,person],[academically,book],[academician,person],[academics,person],[academies,building],[academy,building],[acae,person],[acald,person],[acan,person],[acatoday,dash],[acb,dash],[acc,right],[accelerate,right],[accelerated,n],[acceleration,n],[accent,],[accents,square],[accept,left],[acceptability,tick],[acceptable,tick],[acceptably,plus],[acceptance,plus],[accepted,tick],[accepting,plus],[accepts,tick],[access,tick],[accessed,down],[accesses,plus],[accessibility,plus],[accessible,plus],[accessing,dash],[accident,minus],[accidentally,plus],[accidentals,up],[accidents,minus],[acclimatise,plus],[accolade,plus],[accommodate,plus],[accommodated,plus],[accommodating,plus],[accommodation,bed],[accompanied,plus],[accompanies,and],[accompaniment,note],[accompany,right],[accompanying,and],[accomplish,tick],[accomplished,plus],[accomplishments,plus],[accordance,right],[accordian,box],[according,dash],[accordingly,plus],[accorhotels,company],[account,plus],[accountability,plus],[accountable,plus],[accountant,person],[accounted,plus],[accounting,plus],[accounts,square],[accred,plus],[accredit,plus],[accreditation,tick],[accredited,tick],[accrediting,plus],[accrue,up],[accruing,dollarsymbol],[accumulation,up],[accumulator,plus],[accuracy,tick],[accurate,tick],[accurately,equals],[accusative,square],[accuses,xcorrection],[acd,square],[ace,plus],[acecqa,company],[aces,plus],[acetic,],[ache,line],[achelois,square],[aches,minus],[achievable,plus],[achieve,plus],[achieved,tick],[achievement,plus],[achievements,plus],[achiever,person],[achievers,person],[achieves,tick],[achieving,plus],[aching,minus],[acid,],[acidophilus,ball],[acids,acid],[ack,dash],[ackard,person],[acknowledge,plus],[acknowledged,paper],[acknowledgement,plus],[acknowledging,plus],[acls,dash],[acm,dash],[acn,n],[acnc,company],[acoba,paper],[acorn,],[acos,plus],[acosh,plus],[acoustic,ear],[acoustics,ear],[acquire,up],[acquired,tick],[acquiring,left],[acquisition,dollarsymbol],[acquisitions,dollarsymbol],[acronym,a],[acronyms,square],[across,right],[act,box],[acted,right],[acting,tick],[action,tick],[actional,right],[actioned,plus],[actions,square],[activate,plus],[activated,tick],[activates,plus],[activating,plus],[activation,plus],[active,plus],[actively,plus],[activist,person],[activities,square],[activity,plus],[actor,person],[actors,person],[actress,person],[acts,tick],[actual,a],[actualisation,plus],[actualise,plus],[actually,plus],[actuarial,dollarsymbol],[acumen,plus],[acupressure,square],[acupuncture,needle],[acupuncturist,person],[acur,person],[acute,minus],[acuña,person],[acyclic,right],[acyclical,dash],[ad,right],[ada,square],[adage,plus],[adam,person],[adams,person],[adapt,plus],[adaptability,plus],[adaptable,plus],[adaptation,plus],[adapted,plus],[adapter,right],[adapting,plus],[add,plus],[addc,square],[added,plus],[addededfc,square],[addeditems,box],[addee,square],[addel,person],[addendum,square],[adder,plus],[adders,plus],[addfromtolang,plus],[adding,plus],[addis,city],[addition,plus],[additional,plus],[additionally,plus],[additions,plus],[additive,plus],[additives,plus],[addorsubtract,plus],[addpos,plus],[addr,square],[address,house],[addressed,tick],[addressee,person],[addresses,square],[addressing,right],[addrules,plus],[adds,plus],[addye,person],[ade,square],[adelaide,city],[adequate,plus],[adequately,plus],[adfa,university],[adhd,minus],[adhere,equals],[adhered,equals],[adhering,equals],[adhesive,equals],[adict,paper],[adie,dash],[adjacent,equals],[adjective,plus],[adjectively,plus],[adjectives,apple],[adjourned,plus],[adjudication,plus],[adjudicator,person],[adjust,plus],[adjustable,n],[adjusted,right],[adjusting,plus],[adjustment,right],[adjustments,plus],[adkins,person],[admin,person],[admini,person],[administer,plus],[administered,plus],[administrated,plus],[administration,plus],[administrative,book],[administrator,person],[administrators,person],[adminpw,square],[adminuser,person],[admiration,plus],[admire,plus],[admired,plus],[admiring,plus],[admit,plus],[admitted,plus],[admittedly,plus],[admitting,plus],[adney,dash],[ado,plus],[adolescence,n],[adolescent,person],[adolescents,person],[adopt,up],[adopted,plus],[adoption,plus],[adore,plus],[adored,plus],[adorn,plus],[adorned,plus],[adorno,person],[adoro,heart],[adr,person],[adrard,person],[adree,person],[adrel,dash],[adrenal,dot],[adrenalin,],[adrenaline,ball],[adrian,person],[adrians,person],[adrl,person],[ads,square],[adsense,software],[adulation,plus],[adult,person],[adultery,minus],[adulthood,n],[adults,person],[adumbration,box],[adumbrations,square],[adv,paper],[advance,minus],[advanced,a],[advancement,right],[advances,right],[advancing,right],[advantage,dash],[advantageous,plus],[advantages,plus],[advent,zero],[adventure,book],[adverb,n],[adverbially,plus],[adverbs,right],[adverse,minus],[adversely,minus],[advertise,dollarsymbol],[advertised,square],[advertisement,square],[advertisements,plus],[advertisers,person],[advertises,square],[advertising,square],[advice,plus],[advisable,plus],[advise,plus],[advised,plus],[advises,plus],[advising,plus],[advisor,person],[advocacy,plus],[advocate,person],[advocated,plus],[advocates,person],[advocating,plus],[adwords,product],[adye,person],[ae,dash],[aea,dash],[aec,dash],[aeg,dash],[aeiouyw,square],[aerial,air],[aerobics,lycra],[aerosol,],[aerotopically,air],[aese,company],[aest,square],[aesthetes,person],[aesthetic,square],[aesthetics,square],[aetiological,minus],[af,dash],[afa,dash],[afar,n],[affairs,paper],[affect,right],[affected,plus],[affecting,plus],[affection,plus],[affective,plus],[affects,right],[affgg,square],[affiliate,person],[affiliated,plus],[affiliations,equals],[affirm,tick],[affirmation,tick],[affirmative,plus],[affirmed,square],[affirming,plus],[affliction,minus],[affluent,plus],[afford,dollarsymbol],[affordable,dollarsymbol],[afforded,dollarsymbol],[afgde,square],[afghanistan,country],[afield,right],[afl,football],[afloat,up],[afplay,software],[afraid,minus],[afresh,plus],[africa,continent],[african,person],[afro,hair],[after,plus],[afterlife,line],[afternoon,square],[afterpay,company],[afterwards,right],[afunctional,zero],[afunctionalism,zero],[ag,dash],[again,two],[against,minus],[age,n],[aged,n],[ageing,minus],[agencies,building],[agency,company],[agenda,paper],[agent,person],[agents,person],[ages,n],[aggrandising,minus],[aggravate,minus],[aggregate,n],[aggress,minus],[aggression,minus],[aggressive,minus],[agile,plus],[aging,minus],[agnosticism,box],[agnostics,person],[agnès,person],[ago,left],[agogo,box],[agps,paper],[agree,plus],[agreeable,plus],[agreeableness,plus],[agreed,tick],[agreeing,plus],[agreement,tick],[agreements,tick],[agreer,plus],[agrees,plus],[agricultural,plant],[agriculture,apple],[ah,dash],[aha,plus],[ahash,hash],[ahead,plus],[ahhii,square],[ahoniemi,person],[ahrefs,company],[ai,box],[aiaconnect,dash],[aid,plus],[aida,box],[aidan,person],[aide,person],[aided,plus],[aides,person],[aiding,plus],[aids,plus],[aif,line],[aiff,line],[aig,plus],[aigs,square],[ailments,minus],[aim,plus],[aime,heart],[aimed,dot],[aimedness,dot],[aiming,dot],[aimingness,dot],[aims,dot],[ainger,person],[aingers,person],[air,box],[aircraft,],[airdrop,down],[aired,air],[aireys,city],[airlifter,aircraft],[airlock,door],[airplane,plane],[airplay,line],[airplayradio,company],[airport,plane],[airs,computer],[airship,balloon],[airships,balloon],[airtight,box],[airuniversity,building],[airways,down],[aiscript,paper],[aiscripts,square],[aisha,person],[aisle,square],[aitken,person],[ajjkk,square],[aka,right],[akin,plus],[aks,dash],[al,dash],[aladdin,person],[alaloviala,plus],[alan,person],[alarm,n],[alarms,ear],[albania,country],[albaum,person],[albert,person],[albie,person],[albright,person],[album,line],[albums,album],[alcohol,],[alcoholics,person],[ald,person],[aldermen,person],[aldo,person],[aleisha,person],[alejandra,person],[aleph,dot],[alert,plus],[alerted,xcorrection],[alerts,xcorrection],[aletheia,eye],[alex,person],[alexander,person],[alexandra,person],[alexia,person],[alexis,person],[alexius,person],[alfred,person],[alg,and],[algae,],[algal,algae],[algdict,book],[algebra,variable],[algebraic,plus],[algeria,country],[algname,and],[algohedrons,box],[algorithm,and],[algorithmic,and],[algorithmically,and],[algorithmlibrary,box],[algorithmname,square],[algorithms,twobox],[algorithmstopredicates,square],[algorithmwriter,software],[algs,tworectangle],[algwriter,and],[algwriterart,paper],[ali,person],[alia,plus],[alias,right],[alien,person],[alienated,minus],[alienation,minus],[aliens,person],[alight,down],[alighted,down],[align,line],[aligned,line],[aligning,equals],[alignment,line],[aligns,right],[alima,person],[aliotta,person],[aliquot,ball],[alison,person],[alive,plus],[aliveness,plus],[all,square],[allan,person],[allans,person],[allargs,box],[allayed,plus],[alleged,xcorrection],[allegiances,plus],[allele,n],[allen,person],[alleviate,plus],[alleviated,plus],[alleviating,plus],[allez,right],[allfibs,plus],[alliance,threerectangle],[alliances,plus],[alliteration,equals],[allmm,square],[allnumbers,n],[allocate,right],[allocated,right],[allocating,box],[allocation,dash],[allocator,person],[allotment,box],[allow,tick],[allowable,plus],[allowance,minus],[allowances,dollarsymbol],[allowed,plus],[allowing,plus],[allows,plus],[allports,building],[alls,n],[allsqrts,down],[alluring,plus],[allusednames,square],[allusion,dash],[ally,plus],[allyson,person],[almanacs,book],[almighty,plus],[almond,],[almossawi,person],[almost,zero],[alnum,square],[aloft,up],[alone,one],[along,right],[alongside,right],[aloud,mouth],[alpha,a],[alphabet,a],[alphabetic,square],[alphabetical,square],[alphabetically,square],[alphanumeric,square],[alphawheat,plant],[already,tick],[alright,tick],[also,plus],[alt,button],[alter,two],[altered,right],[alterego,software],[altering,right],[alternate,two],[alternating,dot],[alternative,two],[alternatively,and],[alternatives,two],[although,minus],[althusser,person],[altinkök,person],[alto,tube],[altogether,box],[altruism,plus],[aluminum,],[alumni,person],[alveolus,ball],[always,one],[alynch,person],[alyson,person],[alzheimer,minus],[am,equals],[amalgam,],[amalgamate,right],[amalgamated,right],[amalgamating,right],[amalgamation,right],[amap,plus],[amazed,eye],[amazement,plus],[amazing,plus],[amazingly,plus],[amazon,company],[amazonaws,square],[ambassador,person],[ambassadors,person],[ambiguities,minus],[ambiguity,minus],[ambiguous,minus],[ambiguously,minus],[ambition,plus],[ambitions,plus],[ambitious,plus],[ambulance,],[amd,and],[ameliorated,plus],[amen,hand],[amendment,plus],[america,country],[americaforecast,company],[american,person],[americans,person],[ames,person],[amethyst,stone],[amiable,plus],[amicable,plus],[amid,right],[amino,molecule],[amit,person],[amnesiacs,person],[among,box],[amongst,box],[amoral,minus],[amorphous,amount],[amortised,down],[amount,n],[amounts,n],[amp,plus],[ampersand,and],[ampersands,square],[amphitheatre,],[amphora,],[ample,plus],[amplifier,right],[amplitude,n],[amputated,box],[amsterdam,city],[amygdala,],[an,up],[anaconda,and],[anacrusis,note],[anaeirenate,plus],[anaesthetised,ball],[anagram,square],[anagrams,right],[anal,eye],[analects,book],[analog,right],[analogies,right],[analogue,hand],[analogy,plus],[analysable,plus],[analyse,tick],[analysed,and],[analyser,plus],[analysers,plus],[analyses,tick],[analysing,and],[analysis,and],[analyst,person],[analytic,and],[analytical,right],[analytics,and],[analyzing,right],[anangisye,person],[ananta,person],[ananya,person],[anaphor,right],[anaphors,person],[anarchic,plus],[anarchism,person],[anarchy,minus],[anatomical,cell],[anatomicopathological,plus],[anatomy,body],[ancestors,person],[anchor,x],[anchored,down],[anchoring,anchor],[ancient,minus],[ancients,dot],[and,],[anded,and],[anderson,person],[andersons,person],[andorra,country],[andrew,person],[andrews,person],[android,box],[andto,and],[andy,person],[anecdote,mouth],[anemia,minus],[anfara,person],[ang,person],[angel,person],[angela,person],[angeles,person],[angelic,plus],[angelo,person],[anger,minus],[angie,person],[anginas,minus],[angle,n],[angled,n],[angles,n],[angling,fish],[anglo,person],[angola,country],[angry,minus],[angular,n],[animal,],[animalness,animal],[animalproductsa,box],[animalround,n],[animals,],[animaly,animal],[animated,plus],[animation,square],[animations,right],[animator,person],[animhighereddetails,paper],[animhigheredreport,paper],[animus,dot],[anita,person],[anjelica,person],[ankle,],[ann,person],[anna,person],[annabelle,person],[anne,person],[annette,person],[annie,person],[annihilated,xcorrection],[anniversary,n],[annotate,square],[annotated,square],[annotation,square],[announce,mouth],[announced,mouth],[announcement,square],[annoyance,minus],[annoying,minus],[annual,square],[annually,square],[annuasly,dot],[annul,xcorrection],[annunciated,plus],[anointed,down],[anon,person],[anone,right],[anonymised,square],[anonymous,square],[anonymously,square],[another,plus],[anothers,dash],[ans,square],[anscombe,person],[anson,person],[ansto,organisation],[answer,a],[answered,square],[answerer,person],[answerers,person],[answering,person],[answermode,right],[answers,a],[ant,],[antagonism,minus],[antagonist,person],[antaki,person],[antarctica,country],[antecedant,right],[antecedants,right],[antecedent,a],[antecedents,square],[antenna,],[anthem,note],[anther,],[anthony,person],[anthrop,person],[anthropological,person],[anthropologically,person],[anthropologist,person],[anthropology,person],[anti,minus],[antialiased,square],[antibodies,antibody],[antibody,],[anticipate,plus],[anticipated,plus],[anticipating,left],[anticipation,plus],[anticipatory,minus],[anticlimax,minus],[antidepressant,plus],[antidifferentiated,up],[antidigressing,equals],[antigua,country],[antihallucinogenic,xcorrection],[antioxidants,ball],[antiphoclemone,person],[antipodean,person],[antipodeanism,person],[antipsychotic,xcorrection],[antiquities,n],[antiquity,n],[antisocial,minus],[antithesis,xcorrection],[antitrust,minus],[antiviral,plus],[antoinette,person],[anton,person],[antoncic,person],[antonia,person],[antonio,person],[antonyms,xcorrection],[ants,ant],[antónio,person],[anu,university],[anubis,dog],[anus,tube],[anxieties,minus],[anxiety,minus],[anxiousness,minus],[any,one],[anyfunction,function],[anymore,zero],[anynumber,n],[anyone,person],[anything,one],[anytime,tick],[anyway,one],[anywhere,dot],[anz,bank],[aorist,right],[ap,dash],[apa,square],[apac,dash],[apache,software],[apart,minus],[apathetically,zero],[ape,],[aperture,box],[apex,dot],[aphohedron,box],[aphor,apple],[aphoria,plus],[aphorism,square],[aphorisms,square],[aphors,apple],[api,software],[apical,dot],[apis,software],[apkajlohf,dash],[apocalyptic,minus],[apologies,xcorrection],[apologise,plus],[apologised,xcorrection],[apologising,plus],[apologize,xcorrection],[apologized,plus],[apology,xcorrection],[apoptosis,n],[apostrophe,square],[apostrophes,square],[app,paper],[apparatus,box],[apparent,plus],[apparently,dot],[appeal,plus],[appealed,plus],[appealing,plus],[appeals,plus],[appear,square],[appearance,square],[appearances,square],[appeared,square],[appearing,tick],[appears,square],[append,plus],[appenda,box],[appended,tworectangle],[appendeof,square],[appendices,paper],[appending,threerectangle],[appendix,box],[appendlist,plus],[appendlogic,and],[appendpredlist,plus],[appends,plus],[appendz,square],[appetising,apple],[appetite,apple],[appetites,stomach],[applaud,plus],[applauded,plus],[applause,person],[apple,],[applef,dash],[apples,apple],[applesoft,square],[applicability,plus],[applicable,plus],[applicant,person],[applicants,person],[application,box],[applications,plus],[applicative,right],[applicator,down],[applied,tick],[applies,plus],[apply,paper],[applying,plus],[applys,right],[appoint,plus],[appointed,dot],[appointer,plus],[appointing,plus],[appointment,square],[appointments,square],[appoints,plus],[appraisal,plus],[appreciate,plus],[appreciated,plus],[appreciating,plus],[appreciative,plus],[approach,right],[approached,right],[approaches,right],[approaching,right],[appropriate,tick],[appropriated,right],[appropriately,plus],[appropriateness,plus],[appropriating,right],[approval,plus],[approve,plus],[approved,plus],[approves,plus],[approx,line],[approximate,line],[approximated,box],[approximately,box],[approximations,n],[apps,box],[appt,square],[apr,dash],[apricot,],[april,square],[apropos,tick],[apt,plus],[aptitude,plus],[aptitudes,plus],[aqa,square],[aqf,square],[aqualung,],[aquanauts,person],[aquarium,],[ar,variable],[arab,country],[arabia,country],[arabic,square],[arachnid,spider],[arachnids,spider],[aran,person],[arbiter,person],[arbitrarily,plus],[arbitrary,n],[arbitrate,plus],[arbitrating,plus],[arbitration,plus],[arc,semicircle],[arch,],[archaeological,down],[archaeologist,person],[archaeology,down],[archaic,minus],[archduke,person],[archeological,down],[archeology,down],[archibald,person],[archie,person],[arching,up],[archipelago,],[archipelagos,triangle],[architect,person],[architects,person],[architectural,building],[architecturally,building],[architecture,column],[architectures,building],[architrave,],[archival,book],[archive,paper],[archived,box],[archives,book],[archiving,down],[arcobaleno,square],[arcs,semicircle],[arctic,dot],[ard,person],[ardagh,person],[ardamon,person],[arduino,and],[are,equals],[area,square],[areas,square],[arecibos,city],[arem,dash],[arems,square],[aren,minus],[arg,variable],[argan,],[argentina,country],[args,a],[arguably,plus],[argue,dash],[argued,square],[argues,square],[arguing,dash],[argument,a],[argumentary,square],[argumentation,book],[argumentative,square],[argumentname,square],[argumentnumber,n],[arguments,a],[argumentslength,n],[argv,n],[ari,person],[aria,ear],[ariable,dash],[ariana,person],[arianne,person],[arise,up],[arisen,up],[arises,up],[arising,up],[aristotelian,person],[aristotle,person],[arithmetic,plus],[arithmetical,plus],[arities,n],[arity,n],[arkann,robot],[arm,],[armadale,suburb],[armadillo,],[armenia,country],[armenian,person],[armor,square],[armour,],[arms,arm],[armshire,square],[armstrong,person],[army,person],[arocket,rocket],[aroma,rose],[aromatherapy,bottle],[aron,person],[arose,up],[around,right],[aroused,plus],[arpeggio,note],[arran,person],[arrange,dot],[arranged,note],[arrangement,note],[arrangements,note],[arranging,pen],[array,grid],[arrays,square],[arreola,person],[arrest,xcorrection],[arrested,xcorrection],[arrival,dot],[arrive,right],[arrived,dot],[arrives,dot],[arriving,dot],[arrogant,minus],[arrow,right],[arrows,right],[arsenic,ball],[art,square],[artefacts,square],[artemis,person],[arterial,tube],[arteries,tube],[artesian,plus],[arthritis,minus],[arthur,person],[artichoke,],[artichokes,artichoke],[article,paper],[articles,book],[articulate,mouth],[articulated,up],[articulating,mouth],[articulation,tongue],[artie,person],[artifice,plus],[artificial,plus],[artificially,and],[artisanal,plus],[artist,person],[artistic,plus],[artistically,plus],[artists,person],[arts,square],[artwork,],[artworks,box],[as,equals],[asa,book],[asahi,newspaper],[asana,company],[asanas,mat],[asanet,book],[asap,one],[asc,n],[ascend,up],[ascended,up],[ascending,up],[ascends,up],[ascension,up],[ascent,up],[ascertain,plus],[ascertained,plus],[ascertaining,plus],[aschaffenburg,person],[aschonfelder,person],[ascii,n],[ascp,book],[ascribe,right],[ascribing,right],[ashley,person],[ashok,person],[asia,country],[asian,person],[asians,person],[asic,company],[aside,right],[asin,f],[ask,questionmark],[asked,questionmark],[asking,right],[askpass,square],[asks,person],[asleep,bed],[asn,organisation],[asp,dash],[asparagus,],[aspect,box],[aspects,dash],[asperger,minus],[aspergers,minus],[aspersion,minus],[aspires,up],[aspx,dash],[ass,paper],[assassination,minus],[assault,minus],[assemble,square],[assembled,box],[assembles,box],[assembly,box],[assert,plus],[asserta,box],[asserted,plus],[assertively,plus],[asserts,plus],[assertz,dash],[assess,tick],[assessable,tick],[assessed,tick],[assesses,plus],[assessing,tick],[assessment,paper],[assessments,paper],[assessor,person],[assessors,person],[asset,dollarsymbol],[assets,box],[assign,equals],[assigned,right],[assigning,equals],[assignment,paper],[assignments,paper],[assigns,equals],[assimilate,equals],[assimilated,equals],[assimilation,box],[assist,plus],[assistance,plus],[assistant,person],[assistants,person],[assisted,plus],[assisting,plus],[assistive,plus],[assists,plus],[assoc,association],[associate,plus],[associated,dash],[associates,person],[associating,right],[association,company],[associations,right],[associative,dash],[associatively,equals],[associativities,and],[associativity,right],[assume,plus],[assumed,plus],[assumes,tick],[assuming,left],[assumption,plus],[assumptions,square],[assurance,plus],[assure,plus],[assured,plus],[assures,plus],[asterisk,],[asthma,minus],[astonished,plus],[astray,minus],[astrol,star],[astrologer,person],[astrology,star],[astronaut,person],[astronauts,person],[astronomy,star],[astroturf,square],[asx,company],[asylum,plus],[asymmetrical,minus],[async,notequals],[asynchronous,tworectangle],[at,dash],[atacama,city],[atan,right],[atar,n],[atb,dash],[ate,spoon],[atest,],[ath,n],[atheism,zero],[atheist,zero],[atheistic,zero],[atheists,person],[athlete,person],[athletes,person],[athletics,right],[ati,company],[atkinson,person],[atlantic,water],[atmosphere,box],[atmospheric,air],[atom,],[atomic,box],[atoms,box],[atomtoken,n],[atrium,room],[ats,dash],[attach,box],[attached,plus],[attaches,equals],[attaching,equals],[attachment,square],[attachments,paper],[attack,right],[attacked,xcorrection],[attacker,person],[attackers,minus],[attacking,minus],[attacks,minus],[attain,tick],[attainable,plus],[attained,right],[attaining,plus],[attainment,hand],[attempt,tick],[attempted,plus],[attemptedly,plus],[attempting,plus],[attempts,plus],[attend,down],[attendance,plus],[attendant,person],[attended,plus],[attendees,person],[attender,person],[attending,tick],[attention,tick],[attentional,plus],[attentive,plus],[attentively,plus],[attest,plus],[attesting,plus],[attic,room],[attire,shirt],[attitude,plus],[attitudes,mind],[attorney,person],[attract,plus],[attracted,dash],[attracting,plus],[attraction,plus],[attractions,plus],[attractive,plus],[attribute,n],[attributed,dash],[attributes,square],[attuned,equals],[au,country],[auburn,square],[auction,dollarsymbol],[aud,dollarsign],[audacity,and],[audible,plus],[audience,person],[audiences,person],[audient,company],[audio,note],[audiobar,square],[audiobooks,audiobar],[audioship,company],[audit,tick],[audited,tick],[auditing,plus],[auditioner,person],[auditor,person],[auditorium,room],[auditory,ear],[audits,plus],[aug,square],[augmentary,up],[augmentation,up],[augmentative,plus],[augmented,up],[august,square],[aumanufacturing,company],[aun,dash],[aunt,person],[aunts,person],[aural,ear],[auras,box],[aurora,light],[aus,country],[auspicious,plus],[auspost,company],[austen,person],[austin,person],[australasian,country],[australia,country],[australian,person],[australians,person],[australias,country],[australis,country],[austria,country],[auth,plus],[authentic,plus],[authenticate,plus],[authenticated,plus],[authenticating,plus],[authentication,tick],[authenticity,plus],[author,person],[authored,square],[authorise,plus],[authorised,plus],[authoritarian,plus],[authoritarianism,minus],[authoritative,plus],[authorities,person],[authority,person],[authorization,plus],[authorized,plus],[authors,person],[authorship,paper],[autism,minus],[autist,person],[auto,tick],[autobiographical,book],[autobiography,book],[autobios,paper],[autobot,person],[autocomplete,tick],[autocompleted,plus],[autocorrect,plus],[autocue,square],[autogenerator,right],[autograph,square],[autoimmune,plus],[autoluna,moon],[automagically,plus],[automata,and],[automatable,circle],[automatarchy,person],[automate,box],[automated,cycle],[automates,cycle],[automatic,circle],[automatically,and],[automating,cycle],[automation,circle],[automaton,and],[automator,circle],[automobile,car],[autonomic,plus],[autonomous,plus],[autonomy,circle],[autorun,right],[autorunning,plus],[autosaved,plus],[autosaves,plus],[autowrite,pen],[autumn,square],[auxilliary,plus],[auyeung,person],[av,dash],[avail,square],[availabilities,square],[availability,tick],[available,plus],[avalanche,snow],[avalanches,minus],[avb,or],[ave,n],[avenue,road],[avenues,path],[average,line],[averages,line],[avert,xcorrection],[avi,dash],[avid,plus],[avignon,city],[avocado,],[avoid,xcorrection],[avoidance,xcorrection],[avoided,xcorrection],[avoiding,xcorrection],[avoids,xcorrection],[avon,person],[avz,dash],[aw,software],[awabakal,person],[await,plus],[awaiting,plus],[awake,plus],[awaked,up],[awakened,plus],[award,plus],[awarded,plus],[awarding,plus],[awards,tick],[awardspace,company],[aware,tick],[awareness,plus],[awarning,xcorrection],[away,zero],[awe,plus],[awn,n],[awx,square],[awy,square],[ax,variable],[axels,line],[axes,line],[axiomatic,and],[axioms,right],[axis,line],[axle,line],[axolotl,],[axon,line],[ay,variable],[ayers,person],[ayur,plus],[ayurveda,plus],[ayurvedic,box],[az,dash],[azerbaijan,country],[azizan,person],[azu,person],[azurite,stone],[azzx,dash],[añadida,dash],[añc,plus],[aś,dash],[aṃ,plus],[aṃś,plus],[b,],[ba,paper],[baba,person],[babe,person],[babel,city],[babied,plus],[babier,plus],[babies,baby],[baby,],[bacd,dash],[bach,person],[bachelor,person],[bachelors,book],[bachkirov,person],[back,left],[backbone,],[backconversion,left],[backdated,down],[backdates,left],[backdrop,square],[backed,right],[backend,and],[background,square],[backgrounds,square],[backing,line],[backlashes,minus],[backlinks,right],[backlog,left],[backlogged,right],[backlogs,book],[backpack,bag],[backpropagate,left],[backpropagation,left],[backs,plus],[backslash,],[backslashes,square],[backticks,square],[backtrace,left],[backtrack,left],[backtracked,left],[backtracking,left],[backtracks,left],[backtracktest,tick],[backtranslate,left],[backtranslated,right],[backtranslateuntilcorrect,tick],[backtranslation,square],[backtranslations,right],[backtranslationwords,square],[backup,tworectangle],[backups,paper],[backward,left],[backwards,left],[bacteria,bacterium],[bacterial,bacteria],[bacterium,],[bad,minus],[baddie,person],[badge,square],[badges,badge],[badly,minus],[badminton,shuttlecock],[badness,minus],[baduanjin,dash],[bae,company],[baffled,minus],[bag,],[bagel,],[bagged,bag],[bagof,box],[bagpipe,],[bagpipes,],[bags,bag],[bahama,plus],[bahamas,country],[bahrain,country],[bailey,person],[bain,person],[bake,bread],[bakelite,],[baker,person],[baking,oven],[baktraks,line],[bal,n],[balance,box],[balanced,equals],[bald,head],[balff,person],[bali,person],[balibanuba,apple],[baljit,person],[ball,],[ballantine,person],[ballet,right],[balloon,],[balloonifying,balloon],[balloons,balloon],[ballot,paper],[ballots,paper],[balls,ball],[balsa,wood],[balustrade,],[balustrades,balustrade],[bam,dash],[bamboo,],[bambury,city],[ban,dash],[banana,],[bananas,banana],[band,],[bandcamp,company],[bands,note],[bandura,person],[bandwidth,line],[bangladesh,country],[bangor,dog],[banjo,],[bank,building],[banker,person],[banking,dollarsymbol],[banks,dollarsymbol],[banned,xcorrection],[banner,square],[banning,xcorrection],[banquet,apple],[bar,square],[barata,person],[barbados,country],[barbara,person],[barbarians,person],[barbaric,minus],[barbecued,barbeque],[barbeque,],[barbuda,country],[barcelona,city],[barcode,n],[bare,down],[barebones,bone],[barely,plus],[barest,down],[bargain,plus],[baricello,cello],[baritone,person],[bark,plus],[barked,line],[barkly,street],[barley,],[barnacle,],[barnacles,barnacle],[barnes,person],[barnyard,],[barometers,n],[baroness,person],[barr,person],[barra,city],[barrabool,suburb],[barracuda,fish],[barracudas,fish],[barred,xcorrection],[barrel,],[barrelled,barrel],[barrett,person],[barricuda,fish],[barrier,box],[barriers,minus],[barrow,wheelbarrow],[barry,person],[bars,box],[bartimes,n],[bartlett,person],[barwon,river],[basal,zero],[basc,book],[base,square],[baseball,],[basecase,one],[basecasecondition,dash],[basecasecondition,tick],[basecaselistlength,variable],[based,square],[baseline,line],[basement,square],[basename,square],[bases,base],[bash,square],[bashibazouks,minus],[basic,line],[basically,one],[basics,n],[basil,person],[basing,square],[basis,square],[basket,],[bass,note],[bassoon,tube],[bat,],[batch,n],[bates,person],[bath,],[bathe,water],[bathed,bath],[bathers,],[bathing,water],[bathroom,room],[baths,bath],[bathtimes,bath],[baton,],[batt,person],[batter,],[batteries,battery],[battery,],[battle,minus],[battled,minus],[bauble,ball],[baulsch,person],[baum,person],[bay,water],[bayeux,dot],[bazaar,room],[bb,xcorrection],[bbb,dash],[bbbccc,square],[bbc,square],[bbcc,square],[bbedit,square],[bbj,square],[bbjj,square],[bbq,],[bc,dash],[bc,square],[bcabcd,square],[bcb,dash],[bcba,square],[bcbcbcd,square],[bcbcd,square],[bcc,square],[bcd,square],[bcdfghjklmnpqrstvwxyz,dash],[bcm,dash],[bcs,square],[bd,variable],[bdict,book],[bdrict,paper],[be,equals],[beac,company],[beach,sand],[beachball,ball],[beacon,company],[beagle,dog],[beaker,],[beam,line],[beamed,right],[beaming,right],[beams,line],[bean,],[beanie,],[beaning,right],[beans,bean],[bear,],[beard,],[bearer,person],[bearers,person],[bearing,tick],[bearings,plus],[beasoning,right],[beat,a],[beating,dot],[beatles,person],[beatrice,person],[beats,note],[beau,person],[beautiful,square],[beauty,face],[beauvoir,person],[bec,left],[became,equals],[because,left],[becharm,plus],[beckett,person],[beckon,plus],[beckoning,left],[become,equals],[becomes,right],[becoming,right],[bed,],[bedfellow,person],[bedroom,bed],[beds,bed],[bedspread,blanket],[bedtime,n],[bee,],[beechler,person],[beef,],[beek,person],[beeline,right],[been,equals],[bees,bee],[beese,right],[beetle,],[before,minus],[beforehand,left],[befriend,plus],[befriended,plus],[befriending,plus],[befu,dash],[began,zero],[begged,left],[begin,zero],[beginner,person],[beginners,person],[beginning,zero],[beginnings,zero],[begins,one],[behalf,right],[behave,plus],[behaved,plus],[behaves,plus],[behaving,plus],[behavior,plus],[behavioral,plus],[behaviors,plus],[behaviour,plus],[behavioural,right],[behaviours,right],[beheld,plus],[behemoth,monster],[behind,right],[bei,person],[being,person],[beings,person],[belarus,country],[belgium,country],[belief,square],[beliefs,tick],[believable,plus],[believe,tick],[believed,plus],[believers,person],[believes,plus],[believing,plus],[belize,country],[bell,],[bella,person],[bellissimo,plus],[bells,box],[belly,stomach],[belmont,suburb],[belong,box],[belonged,plus],[belonging,box],[belongingness,plus],[belongings,box],[belousoff,person],[below,down],[belt,],[ben,person],[benbya,person],[bench,],[benchmarking,plus],[benchmarks,plus],[bend,right],[bender,person],[bending,line],[bends,arc],[beneficence,plus],[beneficial,plus],[benefit,plus],[benefited,plus],[benefiting,plus],[benefits,plus],[benefitted,plus],[benefitting,plus],[benevolence,plus],[benfield,person],[benin,country],[benincasa,person],[benisalachocolat,chocolate],[benjamin,person],[bennett,person],[benni,person],[bent,minus],[bentivoglio,person],[bentwood,wood],[berkeley,building],[berklee,company],[bernadette,person],[bernie,person],[bernstein,person],[bernsteintapes,person],[berocca,box],[beroccas,tablet],[berries,berry],[berrio,person],[berry,],[bert,person],[berys,person],[beside,right],[besides,right],[best,a],[bestow,plus],[bestseller,dollarsymbol],[bestthinking,company],[bet,box],[beta,tworectangle],[betray,minus],[betrayed,minus],[betroth,down],[bettania,dog],[better,plus],[bettering,plus],[betting,dollarsymbol],[betty,person],[between,dash],[betweenizing,box],[betweenness,box],[betweennesses,box],[beverage,cup],[beware,xcorrection],[beyond,dot],[bf,dash],[bfs,right],[bg,square],[bgcolor,square],[bgv,dash],[bhagavad,book],[bhandari,person],[bhaskar,newspaper],[bhi,person],[bhide,person],[bhutan,country],[bi,two],[bias,minus],[bib,book],[bibby,person],[bibi,person],[bible,book],[biblical,book],[bibliographic,book],[bibliographies,paper],[bibliography,paper],[biblioteca,book],[bicameral,room],[biceps,muscle],[bicochemistry,ball],[bicycle,],[bid,dollarsymbol],[bidder,person],[biddle,plus],[biden,person],[bidirectional,dash],[bieber,person],[big,box],[bigger,greaterthan],[biggest,n],[biggs,person],[bilayer,box],[bildungsroman,book],[bilingual,book],[bill,person],[billing,dollarsymbol],[billion,line],[billionaire,dollarsymbol],[billions,dollarsymbol],[bills,paper],[billy,person],[biloba,plant],[bimbo,person],[bin,box],[binaries,n],[binary,n],[bind,box],[binding,square],[bindings,dash],[binds,dash],[bing,person],[bingo,counter],[bins,bin],[bio,paper],[bioactive,plus],[biochemical,ball],[biochemist,person],[biochemistry,ball],[biodiverse,plus],[biodiversity,plus],[bioethanol,box],[biofeedback,left],[biographies,book],[biography,book],[biological,book],[biologically,book],[biologist,person],[biology,book],[biomedical,book],[biomolecular,ball],[biomolecules,ball],[bios,paper],[bioschemistry,and],[biotechnology,right],[bips,dash],[birch,person],[bird,],[birdcage,cage],[birds,bird],[birth,zero],[birthday,square],[birthdays,square],[birthplace,dot],[birthright,plus],[births,zero],[bis,plus],[biscuit,],[biscuits,biscuit],[bisect,box],[bisected,box],[bisecting,down],[bishop,person],[bismarck,person],[bissau,country],[bit,one],[bitar,person],[bitcodes,dot],[bite,tooth],[biteful,],[biting,tooth],[bitl,square],[bitmap,square],[bits,tworectangle],[bitstream,company],[bitter,minus],[bitterness,minus],[bitwise,one],[biweekly,two],[bix,],[bizarre,plus],[bjelke,person],[bjorn,dog],[bk,person],[bl,dash],[black,square],[blackandwhitehen,duck],[blackandwhitehenwithblackspeckles,duck],[blackberry,],[blackboard,],[blackcurrant,],[blackduck,duck],[blackel,person],[blackice,person],[blackie,duck],[blackl,square],[blackler,person],[blackwell,person],[blackwhite,square],[blackye,person],[bladder,],[blade,],[blades,blade],[blair,person],[blake,person],[blame,xcorrection],[blamed,minus],[blames,xcorrection],[blaming,minus],[blanchard,person],[blank,square],[blanket,],[blankets,blanket],[blast,plus],[blasted,minus],[ble,dash],[blemishes,ball],[blend,plus],[blended,box],[blender,],[blending,box],[blendr,company],[bless,plus],[blessed,plus],[blessedness,plus],[blessing,plus],[blessings,plus],[blew,mouth],[blind,minus],[blinded,minus],[blindfold,],[blindfolded,blindfold],[blindfolds,blindfold],[blinding,minus],[blindly,square],[bliss,plus],[blissenobiarella,person],[blissful,plus],[bloating,minus],[blob,ball],[block,box],[blockage,minus],[blockages,ball],[blocked,box],[blockedness,box],[blocking,box],[blocks,box],[blog,paper],[blogger,company],[blogs,book],[blogspot,paper],[blonde,hair],[blood,],[bloodshed,minus],[bloodstream,blood],[bloom,flower],[blossom,],[blow,right],[blowers,right],[blowing,mouth],[blown,mouth],[blue,square],[blueberries,berry],[blueberry,],[bluegrass,note],[bluenature,planet],[blueprint,paper],[bluestone,],[bluff,minus],[blunden,plus],[blunders,minus],[blunt,plus],[blurb,square],[blurred,minus],[blurring,minus],[blurry,square],[blytheman,person],[blythman,person],[bmc,dash],[bme,dash],[bmj,company],[bmjopen,company],[bn,variable],[bo,minus],[board,person],[boarded,up],[boarding,school],[boardroom,room],[boas,person],[boat,],[boats,boat],[bob,person],[bobbed,up],[bobbin,ball],[bobbio,person],[bobble,ball],[bobby,person],[bock,person],[bocvfiqavd,dash],[bodied,person],[bodies,body],[bodily,person],[body,person],[bodyvars,variable],[bogged,down],[boggle,minus],[boggling,plus],[bohemian,n],[boil,n],[boiled,water],[boiling,n],[bold,square],[bolivia,country],[bollie,bottle],[bolly,bottle],[bolman,person],[bologna,city],[bolshoi,city],[bolt,twobox],[bolted,bolt],[bolting,bolt],[bolts,bolt],[bomb,ball],[bombing,minus],[bompel,dash],[bon,plus],[bonanza,plus],[bonaparte,person],[bond,right],[bondi,dot],[bonding,right],[bonds,right],[bone,],[bones,bone],[bongo,plus],[bonilla,person],[bonita,plus],[bonjour,plus],[bonjoura,plus],[bonkers,minus],[bonnet,hat],[bonus,plus],[book,],[bookcase,book],[booked,book],[bookings,tick],[bookkeeping,plus],[bookmaking,book],[bookmark,square],[bookmarked,n],[bookmarks,paper],[bookofbadarguments,book],[books,book],[bookshelves,box],[booksmy,book],[bool,n],[boolean,n],[booleans,n],[boom,line],[booming,plus],[boost,up],[boosted,up],[boosting,up],[boot,],[booth,and],[booting,right],[boots,boot],[border,square],[borderline,down],[borders,square],[bore,down],[bored,minus],[borges,person],[boring,minus],[boris,person],[born,one],[borrow,right],[borrowed,right],[borrowing,right],[boryslawski,person],[bos,dash],[bosnia,country],[boss,person],[boston,city],[bot,dot],[botanic,plant],[botanical,plant],[botanist,person],[botany,plant],[bote,dash],[both,tworectangle],[bothersome,minus],[botid,n],[bots,dot],[botswana,country],[bottle,],[bottleneck,bottle],[bottlenecks,minus],[bottler,person],[bottles,bottle],[bottom,down],[bottoms,down],[bought,dollarsymbol],[boulder,city],[bouma,person],[bounce,ball],[bounced,up],[bounces,equals],[bouncing,ball],[bound,plus],[boundaries,square],[boundary,square],[bounded,n],[bounds,line],[bountifulness,plus],[bounty,plus],[bouquet,flower],[bourbon,bottle],[bourdain,person],[bourgeois,person],[bourgeoisie,person],[bout,left],[bovine,cow],[bow,dot],[bowed,bow],[bowel,organ],[bower,person],[bowes,person],[bowie,person],[bowl,],[bowlby,person],[bowled,ball],[bowlen,person],[bowler,ball],[bowling,ball],[bowls,bowl],[box,],[boxes,box],[boy,person],[boyacigiller,person],[boycott,xcorrection],[boycotts,minus],[boys,person],[bp,dash],[br,apple],[bra,],[brac,box],[bracket,],[bracketed,box],[bracketing,box],[brackets,box],[bradbury,person],[bradfield,person],[brae,dog],[braeard,person],[braille,square],[brain,],[brains,brain],[brainstorm,paper],[brainstormed,paper],[brainstorming,square],[braintree,company],[brainwaves,n],[brainworks,brain],[bran,],[branch,dash],[branched,right],[branches,dash],[branching,dash],[brand,square],[branding,square],[brands,square],[brass,tube],[brat,minus],[braun,person],[brave,plus],[bravely,plus],[bravery,plus],[bravest,plus],[bravestudios,company],[brayden,person],[brazil,country],[brazilian,country],[brazzaville,country],[brdict,book],[brdicts,book],[brea,tar],[breach,minus],[bread,],[breadcrumbs,dot],[breadth,right],[break,dash],[breakdown,dash],[breakdowns,down],[breakers,box],[breakfast,plate],[breaking,xcorrection],[breaks,two],[breakthroughs,plus],[breasdostoning,threerectangle],[breasdostonings,threerectangle],[breason,box],[breasoned,apple],[breasoner,person],[breasoners,person],[breasoning,apple],[breasoningesquenesses,apple],[breasoninglimit,n],[breasoningname,square],[breasoningocracy,and],[breasonings,apple],[breasoningthe,dash],[breasoningwriter,software],[breasoniong,apple],[breasonism,box],[breasons,square],[breast,],[breastfeed,milk],[breastoned,box],[breasts,breast],[breath,air],[breathdostonings,step],[breathe,lung],[breathed,lung],[breathes,air],[breathing,lung],[breathless,minus],[breaths,dash],[breathsoned,sugar],[breathsoning,plus],[breathsoningitis,minus],[breathsonings,berry],[breathsons,apple],[breathwork,mouth],[breavsonings,square],[breed,animal],[breeding,right],[breeds,person],[breedsonings,apple],[breen,apple],[breenississimos,right],[breeze,right],[brenka,person],[brent,person],[brett,person],[brew,glass],[brian,person],[brianmoreau,person],[bribery,minus],[bricabraced,fabric],[brice,person],[brichko,person],[brick,],[brickle,person],[bricoleurs,square],[bridge,],[bridged,bridge],[bridges,right],[bridget,person],[bridging,dash],[brief,n],[briefed,paper],[briefing,paper],[briefly,n],[briefs,square],[briggs,person],[bright,ball],[brighter,n],[brightness,n],[brigid,person],[brilliance,plus],[brilliant,plus],[brim,],[brimmed,],[bring,right],[bringer,up],[bringing,left],[brings,right],[brinkman,person],[bristle,bristle],[bristles,bristle],[britannica,book],[british,person],[brits,],[brlog,book],[broach,mouth],[broached,plus],[broad,n],[broadband,right],[broadbee,plus],[broadcast,right],[broadcaster,person],[broadcasters,person],[broadcasthost,right],[broadcasting,right],[broadcasts,right],[broaden,right],[broader,plus],[broadly,plus],[broadminded,plus],[broccoli,],[broke,minus],[broken,xcorrection],[broker,person],[brokerage,dollarsymbol],[brolga,bird],[bronchi,tube],[bronze,],[brook,person],[brooke,person],[brooks,person],[broom,],[broth,soup],[brother,person],[brothers,person],[brought,right],[brow,],[brown,square],[brownkutschenkovargo,person],[browse,down],[browsed,right],[browser,square],[browsers,and],[browsing,right],[brs,twobox],[brtdict,variable],[brth,apple],[brthdict,book],[brthlength,n],[brueckner,person],[bruin,person],[bruising,minus],[brumaire,person],[brunei,country],[brunello,person],[bruno,person],[brunswick,suburb],[brush,],[brushed,brush],[brushing,right],[brute,down],[bryan,person],[bryce,person],[bs,square],[bsb,book],[bsc,paper],[bsd,paper],[bshot,dash],[bst,box],[bt,right],[btteduvjjoy,dash],[btw,box],[bu,dash],[bubble,],[bubbles,ball],[buble,person],[bubs,company],[bucket,],[buckle,],[buckled,buckle],[buckling,plus],[buckwheat,box],[bud,ball],[buddha,person],[buddhism,buddha],[buddhist,person],[buddhists,person],[buddies,person],[budding,plus],[buddy,person],[budgerigar,bird],[budget,dollarsymbol],[budgeted,dollarsymbol],[budgeting,dollarsymbol],[budgy,bird],[buffer,box],[buffered,box],[bug,minus],[buggily,minus],[buggy,minus],[bugs,minus],[bugsfixed,plus],[build,box],[buildable,box],[builder,up],[builders,up],[building,],[buildings,building],[builds,box],[built,box],[builtbyme,dash],[bulbourethral,tube],[bulgaria,country],[bulging,ball],[bulk,n],[bulky,box],[bull,],[bullet,],[bulletin,paper],[bulletins,paper],[bullets,square],[bullies,minus],[bulls,bull],[bully,minus],[bullying,minus],[bumped,minus],[bumping,up],[bumps,up],[bun,],[bunches,box],[bundle,box],[bundled,box],[bundles,box],[bung,dash],[bunn,person],[bunnies,rabbit],[bunny,rabbit],[buns,bun],[buoy,buoy],[burawoy,person],[burden,minus],[burdened,minus],[burdens,minus],[bureau,company],[bureaucracy,minus],[bureaucrat,person],[bureaucratic,minus],[burette,flask],[burgeoning,plus],[burger,],[burgers,burger],[burglary,minus],[buried,down],[burik,person],[burke,person],[burkina,country],[burma,country],[burn,minus],[burned,fire],[burner,fire],[burning,fire],[burnout,minus],[burnt,minus],[burrowed,down],[bursaries,dollarsymbol],[bursary,dollarsymbol],[burst,right],[bursts,up],[burundi,country],[bus,],[bush,plant],[bushfire,fire],[busily,plus],[business,square],[businesses,company],[businessman,person],[businessmen,person],[businessperson,person],[bust,],[busters,xcorrection],[busy,plus],[but,minus],[butler,person],[butter,],[buttered,butter],[butterflies,minus],[butterfly,],[butterscotch,],[buttocks,],[button,box],[buttons,square],[buy,dollarsign],[buyer,person],[buyers,person],[buying,a],[buys,dollarsymbol],[buzz,plus],[buzzy,plus],[bv,dash],[bve,dash],[bw,box],[bwe,dash],[bwn,n],[bx,variable],[bxx,variable],[bxydcqw,dash],[bxzt,dash],[by,dash],[bye,n],[byjus,dash],[bypass,line],[bypassed,right],[byproducts,right],[byron,person],[byte,a],[bytecode,square],[bytes,square],[byy,variable],[bz,dash],[bögels,person],[c,],[c,box],[ca,dash],[caaf,square],[cab,car],[cabaña,sausage],[cabbage,],[cabinet,],[cable,line],[cabo,country],[cached,box],[caction,hand],[cad,and],[cadillacs,car],[caesar,person],[caf,square],[cafe,building],[cafs,square],[café,building],[cage,box],[cagr,n],[cai,person],[caissy,person],[cake,],[cal,square],[calamity,minus],[calc,plus],[calcbtremaining,dash],[calciplus,liquid],[calcium,ball],[calculate,plus],[calculated,equals],[calculates,equals],[calculating,equals],[calculation,equals],[calculations,and],[calculator,plus],[calculus,n],[calendar,square],[calf,],[calibrated,n],[calibrations,line],[caliendo,person],[california,state],[call,speechballoon],[callaghan,person],[called,dash],[caller,person],[callibrate,line],[callibration,line],[callibrationvalue,variable],[calligraphy,square],[calling,speechballoon],[calliope,box],[calls,square],[callterm,square],[calm,line],[calmed,plus],[calming,plus],[calmness,plus],[calormen,dash],[caltech,university],[calves,calf],[cam,box],[cambodia,country],[cambodian,country],[cambridge,university],[came,right],[camera,box],[cameras,box],[cameron,person],[cameroon,country],[camilla,person],[camouflage,shirt],[camp,],[campaign,box],[campaignid,dash],[campaigning,plus],[campaigns,plus],[campbell,person],[campfire,fire],[camping,fire],[campus,square],[campuses,building],[camus,person],[can,dash],[canada,country],[canadian,person],[canadians,person],[canal,water],[canaveral,suburb],[canaverals,up],[canberra,city],[canc,xcorrection],[cancel,xcorrection],[cancellable,xcorrection],[cancellation,xcorrection],[cancellations,xcorrection],[cancelled,xcorrection],[canceller,xcorrection],[cancelling,xcorrection],[cancels,xcorrection],[cancer,minus],[candid,plus],[candidate,person],[candidates,person],[candies,lolly],[candle,],[candlelight,candle],[candles,candle],[candy,lolly],[cane,],[canine,dog],[canister,box],[cannibals,person],[cannibis,minus],[cannot,xcorrection],[canoe,],[canon,paper],[canonical,plus],[canopy,tree],[cant,minus],[cantaloupe,],[canterbury,city],[cantilever,line],[canvas,square],[cap,up],[capabilities,plus],[capability,plus],[capable,plus],[capacity,n],[cape,suburb],[capellic,person],[caper,],[caperchione,person],[capers,caper],[capillaries,tube],[capillary,tube],[capital,square],[capitalisation,up],[capitalisations,up],[capitalise,up],[capitalised,up],[capitalises,up],[capitalism,dollarsign],[capitalismmagazine,book],[capitalist,person],[capitalists,person],[capitally,country],[capitals,up],[capped,square],[cappuccino,],[capricorn,ball],[caps,square],[capsicum,],[capstone,box],[capsulated,box],[capsule,],[captain,person],[captcha,down],[caption,square],[captions,square],[captivated,tick],[captives,person],[capture,box],[captured,square],[captures,box],[capturing,plus],[car,],[carafe,jug],[caramel,],[caramelised,caramel],[carat,n],[carbines,person],[carbohydrates,ball],[carbon,],[carcinogeenan,minus],[carcinogen,minus],[card,square],[cardboard,square],[cardio,heart],[cardiovascular,heart],[cards,paper],[care,hand],[cared,plus],[career,line],[careers,line],[careful,plus],[carefully,plus],[carer,person],[carers,person],[cares,plus],[caretaker,person],[caring,plus],[caringly,plus],[caringness,plus],[carl,person],[carlisle,street],[carlo,person],[carly,person],[carnations,flower],[carnelian,person],[carob,],[carofarion,dash],[carol,person],[carolina,person],[caroline,person],[carpathians,book],[carpenter,person],[carpentry,wood],[carpet,],[carrageenan,ball],[carre,person],[carriage,vehicle],[carriages,vehicle],[carrie,person],[carried,box],[carrier,box],[carries,box],[carriesout,plus],[carrot,],[carrots,carrot],[carry,box],[carryable,box],[carrying,box],[cars,car],[carson,person],[cart,box],[carter,person],[cartesian,plus],[cartmel,person],[carton,box],[cartons,box],[cartridge,],[carts,box],[cartwheeling,right],[carucci,person],[carved,right],[carving,chisel],[cas,dash],[cascade,down],[cascading,down],[case,paper],[cased,down],[casein,],[cases,dash],[cash,dollarsymbol],[cashew,nut],[casomorphin,ball],[casserole,pot],[cast,person],[castanets,],[casting,tick],[castle,],[castration,ball],[casual,plus],[casually,plus],[cat,],[catalan,book],[catalina,person],[catalog,book],[catalogue,book],[cataracts,eye],[catarina,person],[catastrophe,minus],[catastrophes,minus],[catch,box],[catcher,box],[catches,xcorrection],[catchier,plus],[catchiness,plus],[catching,plus],[catchphrases,square],[catchy,plus],[categorical,dash],[categorically,box],[categories,square],[categorised,box],[categorises,box],[categorising,box],[category,square],[cater,apple],[catered,apple],[caterer,person],[catering,apple],[caters,plus],[cates,dash],[cathcart,person],[cathedral,],[catherine,person],[catheter,tube],[cato,person],[catriona,person],[cats,cat],[cattle,cow],[cauberghe,person],[caucas,person],[caucasian,person],[caught,xcorrection],[caulfield,suburb],[causal,right],[causality,right],[causation,right],[causations,right],[causative,right],[cause,right],[caused,right],[causes,right],[causing,right],[caution,xcorrection],[cautious,plus],[cautiously,plus],[caval,company],[cave,box],[caveats,plus],[cavell,person],[caves,cave],[caviar,],[cavity,box],[caw,asterisk],[cawa,a],[cawdel,and],[cawmp,and],[cawmpedit,dash],[cawmptest,tick],[cawp,and],[cawplistprolog,square],[cawps,up],[cawptest,plus],[cawptesta,tick],[cawpverify,plus],[cawpverifya,tick],[cawthorne,person],[cb,dash],[cba,square],[cbc,square],[cbd,square],[cbr,right],[cbswwcc,dash],[cc,dash],[cca,variable],[ccb,variable],[ccc,square],[cccbbb,square],[cccnumber,n],[ccl,variable],[cconverter,right],[ccpv,variable],[ccreep,right],[cd,],[cda,variable],[cdc,dash],[cde,dash],[cded,box],[cdfour,dash],[cds,cd],[ce,right],[cease,minus],[ceased,zero],[cecd,company],[ceg,right],[ceiba,tree],[ceil,up],[ceiling,square],[cele,box],[celebrant,person],[celebrate,plus],[celebrated,plus],[celebrates,plus],[celebrating,plus],[celebration,plus],[celebrations,plus],[celebrities,person],[celebrity,person],[celebs,person],[celery,],[celesta,tube],[celeste,person],[celestially,plus],[celia,person],[celibacy,zero],[celibate,plus],[cell,square],[cellar,box],[cello,],[cellophane,square],[cellpadding,square],[cells,box],[cellspacing,square],[cellular,cell],[celsius,n],[cengage,company],[censorship,minus],[censure,xcorrection],[census,paper],[centanni,person],[center,dot],[centers,building],[centigrade,n],[centimetre,n],[centipede,],[central,dot],[centralisation,right],[centralised,one],[centrality,n],[centrally,n],[centre,building],[centred,n],[centredness,n],[centrelink,company],[centres,dot],[centro,dot],[centuries,n],[century,n],[ceo,person],[ceos,person],[cerebellum,brain],[cerebros,person],[ceremonies,plus],[ceremony,box],[ceresio,city],[cert,square],[certa,company],[certain,up],[certainly,a],[certificate,paper],[certificates,paper],[certification,plus],[certified,plus],[cf,dash],[cfl,variable],[cflm,variable],[cfvkai,dash],[cggc,dash],[cgi,software],[cgpt,box],[ch,variable],[cha,square],[chad,country],[chai,cup],[chaillier,person],[chain,line],[chaine,right],[chains,line],[chair,],[chaise,carriage],[chaisomboon,person],[chaiwat,person],[chalice,],[chalk,],[chalky,chalk],[challenge,xcorrection],[challenged,xcorrection],[challenges,minus],[challenging,plus],[cham,person],[chamber,room],[championed,plus],[chan,person],[chance,plus],[chancellor,person],[chances,plus],[chandler,person],[chang,person],[change,delta],[changed,minus],[changegrid,grid],[changelength,n],[changelengthh,n],[changeover,circle],[changeovers,right],[changeperson,person],[changer,person],[changes,xcorrection],[changing,xcorrection],[channel,paper],[channelling,right],[channels,n],[chant,note],[chanter,person],[chants,note],[chaos,minus],[chaotic,minus],[chaplaincies,paper],[chapter,book],[chapters,book],[char,a],[character,person],[characterbr,box],[characterbrdiscontinuous,square],[characterbreasoner,a],[characterbrscript,paper],[characterisation,plus],[characterise,plus],[characterised,plus],[characterises,plus],[characterising,plus],[characteristic,square],[characteristics,square],[characters,a],[charang,box],[charge,dollarsymbol],[charged,plus],[charges,plus],[charging,right],[charisma,plus],[charismatic,plus],[charitable,plus],[charities,zero],[charity,plus],[charles,person],[charley,person],[charlie,person],[charlotte,person],[charm,plus],[charmer,person],[charnes,person],[charobj,apple],[charon,person],[chars,a],[charset,square],[chart,paper],[charted,square],[charter,paper],[charting,paper],[charts,chart],[chased,right],[chasing,right],[chasm,box],[chastity,plus],[chat,paper],[chatbot,box],[chatbots,box],[chatgpt,company],[chats,square],[chatted,mouth],[chatting,speechballoon],[chaucer,person],[chaudhary,person],[chauffeur,person],[chd,dash],[cheap,dollarsign],[cheaper,lessthan],[cheapest,n],[cheat,minus],[cheated,minus],[cheating,minus],[cheats,minus],[chec,plus],[chechnya,person],[check,tick],[checkarguments,tick],[checkbox,square],[checkboxes,v],[checked,tick],[checker,tick],[checkerboard,plane],[checkers,tick],[checking,tick],[checklist,square],[checklists,v],[checkmate,plus],[checkout,box],[checks,tick],[checktypes,tick],[cheek,square],[cheekily,minus],[cheeks,cheek],[cheeky,minus],[cheer,plus],[cheered,plus],[cheerful,plus],[cheers,plus],[cheese,],[cheeseburger,],[cheesecake,],[cheesonings,cheese],[chef,person],[chekov,person],[chem,ball],[chemical,box],[chemicals,oxygen],[chemist,person],[chemistry,book],[chen,person],[cheques,square],[cher,person],[cherished,plus],[cherries,cherry],[cherry,],[chess,game],[chessboard,],[chest,],[chestnut,],[cheung,person],[chew,mouth],[chewed,tooth],[chewing,tooth],[chi,n],[chiat,person],[chicago,city],[chicken,],[chickens,chicken],[chickpea,],[chicks,bird],[chief,person],[chiff,box],[child,],[childbearing,person],[childcare,plus],[childhood,line],[children,person],[childrenh,person],[childrens,child],[chile,country],[chilled,n],[chime,note],[chin,person],[china,country],[chindogu,plus],[chinese,person],[chinos,pants],[chip,box],[chippendale,person],[chips,],[chiropractic,muscle],[chiropractor,person],[chirp,bird],[chisel,],[chiselling,right],[chisels,chisel],[chit,mouth],[chitranishek,person],[chitty,person],[chivalrous,person],[chloe,person],[chmod,pen],[chn,dash],[cho,person],[chocolate,],[chodorow,person],[choice,dash],[choicepoint,dot],[choicepoints,dash],[choices,tick],[choir,note],[choirs,person],[choke,minus],[choked,minus],[chomsks,person],[chomsky,person],[chonga,dash],[choos,box],[choose,dash],[chooser,person],[chooses,person],[choosing,tick],[chopped,tworectangle],[chopping,knife],[chopstick,],[chopsticks,chopstick],[chord,threerectangle],[chords,note],[choreography,foot],[chorus,square],[chorussoloprogression,square],[chose,finger],[chosen,tick],[chowdorow,person],[chris,person],[christ,person],[christian,person],[christianity,person],[christie,person],[christina,person],[christine,person],[christmas,box],[christopher,person],[christos,person],[chrome,paper],[chronic,minus],[chronicles,book],[chronological,n],[chronologically,right],[chrysalis,],[chs,book],[chua,person],[chubby,plus],[chull,dash],[chunhui,person],[chunk,box],[chunked,box],[chunker,box],[chunks,box],[church,building],[churchill,person],[churned,circle],[churning,circle],[chutney,],[chylomicrons,ball],[ci,right],[cic,dash],[ciccy,square],[cicd,right],[cine,tablet],[cinema,square],[cinematic,line],[cinematographer,person],[cinematography,camera],[cinnamon,],[ciprian,person],[circa,box],[circle,],[circled,circle],[circles,circle],[circuit,square],[circuitry,and],[circuits,line],[circular,circle],[circulate,circle],[circulated,right],[circulating,circle],[circulation,circle],[circulatory,circle],[circumcise,box],[circumference,circle],[circumnavigate,right],[circumnavigated,right],[circumnavigating,right],[circumnavigator,circle],[circumstance,square],[circumstances,dash],[circumvent,xcorrection],[circus,tent],[cire,school],[cit,university],[citation,square],[citations,square],[cite,dash],[cited,square],[cites,square],[cities,city],[citing,square],[citizen,person],[citizens,person],[citizenship,paper],[citric,orange],[citroen,car],[citrus,orange],[city,],[civil,plus],[civilians,person],[civilisation,line],[civilisations,planet],[civilly,plus],[cjem,dash],[cjwkcajwto,dash],[ck,dash],[cking,dash],[cl,dash],[claim,paper],[claimed,],[claimed,plus],[claiming,square],[claims,square],[claire,person],[clamp,],[clapped,hand],[clapping,hand],[clara,person],[clare,person],[clarification,plus],[clarified,plus],[clarify,plus],[clarifying,plus],[clarinet,tube],[clarity,plus],[clarke,person],[clash,cymbal],[clashed,minus],[clashes,xcorrection],[clashing,minus],[class,square],[classcentral,company],[classed,square],[classes,room],[classic,paper],[classical,paper],[classicalcomposition,note],[classicalcompositionwithlength,note],[classicalpop,ball],[classicalpopcomposition,note],[classics,book],[classification,dash],[classified,box],[classifiers,box],[classify,dash],[classifying,box],[classmate,person],[classroom,room],[classrooms,room],[claudine,person],[claudius,person],[clause,square],[clausen,square],[clausenum,n],[clauses,square],[clavinet,],[claw,],[claws,claw],[clean,square],[cleaned,plus],[cleaner,square],[cleaning,right],[cleanliness,plus],[cleanly,plus],[cleanmymac,and],[cleanse,minus],[cleanup,zero],[clear,dash],[clearance,plus],[cleared,dash],[clearer,tick],[clearest,plus],[clearing,box],[clearly,dash],[clearness,equals],[clears,zero],[cleavage,box],[clef,note],[clegg,person],[clem,person],[clemens,person],[clenched,equals],[clength,n],[cleobabus,person],[cleopatra,person],[cleric,person],[clerk,person],[clerks,person],[clet,dash],[clever,plus],[cleverly,plus],[cliches,minus],[click,dot],[clicked,equals],[clicking,down],[clicks,plus],[client,person],[clients,person],[cliff,],[clifton,person],[climate,water],[climates,air],[climatology,book],[climax,dot],[climb,up],[climbed,up],[climber,person],[climbing,up],[climbs,up],[cling,plus],[clinic,tablet],[clinical,plus],[clinically,plus],[clinicians,person],[clinics,building],[clinton,person],[clip,],[clipboards,paper],[clipped,down],[clipper,clipper],[clippered,clipper],[clippers,],[clipping,box],[clips,square],[clique,triangle],[cliques,triangle],[clitoris,ball],[cloaked,xcorrection],[clock,n],[clocked,n],[clocking,n],[clocks,clock],[clockwise,right],[clockwork,dash],[clone,plus],[cloned,plus],[clones,box],[cloning,box],[clop,note],[close,n],[closebracket,],[closed,down],[closedroundbracket,],[closedsquarebracket,],[closely,n],[closeness,n],[closer,n],[closest,one],[closing,n],[closure,n],[closures,down],[cloth,square],[clothe,pants],[clothes,coat],[clotheshorse,rack],[clothing,shirt],[cloud,],[cloudfront,cloud],[clouds,box],[cloudy,box],[clove,clove],[clover,],[cloves,clove],[clown,person],[cloying,sugar],[clozapine,tablet],[clozapines,tablet],[clp,n],[clpfd,book],[clt,right],[club,room],[clubs,organisation],[clues,square],[clunky,minus],[cluster,star],[clutch,rod],[cm,n],[cmd,square],[cmedsav,box],[cn,variable],[cnn,square],[cnu,dash],[cnumber,variable],[co,company],[coach,person],[coaching,plus],[coalesced,box],[coalesces,box],[coalface,square],[coarse,square],[coat,],[coaxed,plus],[cochran,person],[cockatoo,bird],[cockatoos,bird],[cockerel,chicken],[cockfest,bird],[cocks,person],[coconut,],[coconuts,coconut],[code,variable],[coded,and],[codefolder,box],[codeless,square],[codenamed,square],[coder,person],[coderdojo,and],[codereuser,tick],[codes,square],[codified,plus],[codify,right],[coding,and],[codings,and],[cody,person],[coefficient,n],[coelho,person],[coffee,],[coffey,person],[cog,],[cognised,mind],[cognition,and],[cognitive,brain],[cognitively,and],[cognito,brain],[cognizant,plus],[cohen,person],[coherence,plus],[coherent,plus],[cohesion,plus],[cohesiveness,plus],[cohort,person],[cohorts,person],[coiffeur,clippers],[coil,cylinder],[coin,],[coincide,tworectangle],[coincided,equals],[coincidences,equals],[coincidentally,plus],[coincides,equals],[coined,plus],[coins,coin],[coit,],[coits,coit],[coker,person],[col,square],[colander,],[colanderianisation,colander],[cold,minus],[colds,bacterium],[cole,person],[colero,person],[coles,company],[collaborate,plus],[collaborated,plus],[collaborating,plus],[collaboration,person],[collaborations,dash],[collaborative,plus],[collaboratively,plus],[collaborators,person],[collage,],[collapse,down],[collapsed,down],[collapsing,down],[collar,],[collate,box],[collated,box],[collating,box],[collation,box],[colleague,person],[colleagues,person],[collect,left],[collected,square],[collecting,box],[collection,box],[collections,box],[collective,box],[collectively,box],[collectivism,person],[collectivist,person],[collector,person],[collects,square],[collectwords,tworectangle],[collectwordsdiff,minus],[colleen,person],[college,building],[colleges,school],[collegiality,plus],[collide,equals],[collided,equals],[colliders,equals],[colliding,equals],[collins,person],[collision,equals],[collisions,equals],[collude,minus],[colnerud,person],[colombia,country],[colon,],[colonial,city],[colonialism,country],[colonized,country],[colony,person],[color,square],[colorado,city],[colossal,plus],[colour,square],[coloured,square],[colourful,balloon],[colouring,square],[colourless,zero],[colourlessness,square],[colours,balloon],[cols,square],[coltan,person],[column,],[columns,line],[colvin,person],[com,box],[coma,minus],[comb,dash],[combat,right],[combating,xcorrection],[combats,xcorrection],[combed,comb],[combinants,dot],[combination,multiply],[combinations,plus],[combinator,dash],[combinators,dash],[combine,one],[combined,plus],[combiner,person],[combines,one],[combining,plus],[combo,tworectangle],[combophil,algorithm],[combos,tworectangle],[combs,person],[combustion,up],[come,right],[comeback,plus],[comedy,book],[comes,right],[comfort,person],[comfortable,seat],[comfortably,plus],[comforted,plus],[comforting,plus],[comic,book],[comical,plus],[comics,book],[coming,right],[comm,company],[comma,box],[command,square],[commanddict,book],[commanded,square],[commanding,plus],[commandletter,square],[commands,plus],[commaorrightbracketnext,square],[commaquoteorrightbracketnext,right],[commas,box],[commemorating,square],[commence,dot],[commenced,dot],[commendation,plus],[commendations,plus],[comment,a],[commentary,paper],[commentator,person],[commentators,person],[commented,speechballoon],[commentfinder,square],[commenting,mouth],[comments,twobox],[commentsa,square],[commerce,dollarsymbol],[commercial,dollarsymbol],[commercially,dollarsymbol],[commission,dollarsymbol],[commissioned,plus],[commissioning,plus],[commit,plus],[commitment,plus],[commitments,plus],[commits,plus],[committal,plus],[committed,plus],[committee,person],[committees,person],[committing,plus],[commodification,dollarsymbol],[commodities,dollarsymbol],[common,plus],[commonalities,plus],[commonly,plus],[commonplace,plus],[commons,plus],[commonwealth,country],[commtainer,box],[communal,box],[communic,paper],[communicate,square],[communicated,right],[communicating,mouth],[communication,dash],[communications,paper],[communicative,square],[communicator,book],[communicators,person],[communism,equals],[communist,person],[communists,person],[communities,person],[community,person],[commutative,equals],[commutativity,dash],[comoros,country],[comp,equals],[compact,down],[companies,building],[companiesmarketcap,dash],[companion,person],[companions,person],[companionship,person],[company,building],[comparable,equals],[comparative,greaterthan],[comparatively,greaterthan],[compare,greaterthan],[compared,greaterthan],[compares,dot],[comparing,dash],[comparison,dash],[comparisonoperator,greaterthan],[comparisons,greaterthan],[compartment,box],[compass,right],[compassion,plus],[compassionate,plus],[compatibility,tick],[compatible,plus],[compatibly,plus],[compcard,square],[compelling,plus],[compensate,plus],[compensated,plus],[compensating,xcorrection],[compensation,dollarsymbol],[compet,plus],[compete,xcorrection],[competed,plus],[competence,plus],[competences,plus],[competencies,tick],[competency,paper],[competent,plus],[competently,plus],[competes,xcorrection],[competing,xcorrection],[competition,two],[competitionism,plus],[competitions,dash],[competitive,plus],[competitiveness,plus],[competitor,person],[competitors,person],[compilation,book],[compile,down],[compiled,down],[compiler,and],[compilers,right],[compiles,down],[compiling,down],[complacency,minus],[complain,xcorrection],[complained,xcorrection],[complaining,minus],[complains,xcorrection],[complaint,xcorrection],[complaints,xcorrection],[complement,dash],[complementary,dash],[complemented,box],[complementing,plus],[complements,dot],[complete,a],[completed,tick],[completely,one],[completeness,tick],[completes,n],[completing,n],[completion,n],[complex,square],[complexes,box],[complexification,minus],[complexified,minus],[complexify,plus],[complexifying,up],[complexion,face],[complexities,n],[complexity,n],[complexly,plus],[compliance,plus],[complicated,and],[complicates,minus],[complicating,minus],[complications,minus],[complies,tick],[compliment,plus],[complimentary,plus],[compliments,plus],[comply,plus],[complying,plus],[component,square],[components,dash],[compose,note],[composed,box],[composer,person],[composex,paper],[composing,note],[composition,paper],[compositions,note],[compost,box],[composure,plus],[compound,tworectangle],[compounds,tworectangle],[comprehend,plus],[comprehension,right],[comprehensive,plus],[comprehensiveness,plus],[compress,down],[compressed,box],[compressing,down],[compression,down],[compressor,down],[compromise,minus],[compromises,xcorrection],[comps,company],[compulsory,plus],[computable,and],[computated,and],[computation,and],[computational,and],[computationalenglish,book],[computationalism,and],[computationally,plus],[computations,and],[compute,and],[computed,and],[computer,box],[computerised,and],[computers,twobox],[computerscience,and],[computes,algorithm],[computing,and],[comswipl,software],[con,dash],[conc,square],[concat,plus],[concatenate,plus],[concatenated,plus],[concatenates,plus],[concatenating,plus],[concatenation,plus],[concatl,left],[concatmap,right],[concatr,plus],[concave,circle],[concavity,box],[conceal,box],[concealed,down],[concealing,square],[concealment,box],[conceals,box],[conceive,right],[conceived,plus],[conceivers,person],[conceiving,one],[concentrate,tick],[concentrated,tick],[concentrating,plus],[concentration,plus],[concept,paper],[conception,plus],[conceptions,plus],[concepts,square],[conceptual,box],[conceptualised,plus],[conceptualises,plus],[conceptualising,eye],[conceptually,plus],[concern,plus],[concerned,xcorrection],[concerning,right],[concerns,plus],[concert,note],[concerted,plus],[concerto,note],[concerts,note],[conch,],[concise,box],[concisely,down],[conclude,square],[concluded,square],[concludes,n],[concluding,n],[conclusion,square],[conclusions,square],[concordances,down],[concords,jet],[concourse,square],[concrete,box],[concs,square],[concur,plus],[concurred,plus],[concurrence,equals],[concurrent,equals],[concurrently,zero],[cond,equals],[condense,down],[condensed,down],[condiments,sauce],[condition,n],[conditional,dash],[conditioned,plus],[conditioner,],[conditioning,plus],[conditions,dash],[condom,],[condoms,condom],[conduct,plus],[conducted,note],[conducting,note],[conductor,person],[conducts,plus],[cone,],[cones,cone],[confectioner,person],[confer,dash],[conference,room],[conferences,room],[conferred,right],[conferring,right],[confidence,plus],[confident,plus],[confidential,square],[confidentiality,box],[confidently,plus],[config,n],[configuration,dash],[configurations,n],[configure,n],[configured,n],[configuring,plus],[confined,box],[confines,box],[confirm,plus],[confirmability,plus],[confirmation,tick],[confirmatory,plus],[confirmed,tick],[confirming,plus],[confirms,plus],[conflict,minus],[conflicted,minus],[conflicting,minus],[conflicts,minus],[conform,plus],[conformation,box],[conformations,box],[conforming,right],[conformity,plus],[confront,minus],[confrontation,minus],[confrontational,minus],[confrontations,minus],[confronting,minus],[confronts,minus],[confucian,person],[confucius,person],[confuse,minus],[confused,minus],[confusing,minus],[confusingly,minus],[confusion,minus],[congestion,minus],[conglish,and],[congo,country],[congratulated,plus],[congratulating,plus],[congratulations,plus],[congruent,equals],[congtology,up],[conj,and],[conjecture,plus],[conjectured,right],[conjoin,and],[conjoined,right],[conjoiner,right],[conjoints,plus],[conjugational,right],[conjunction,plus],[conjunctions,and],[conjunctivitis,minus],[conjure,plus],[conjured,plus],[conjures,square],[conjuring,box],[conklin,person],[conn,person],[connect,dash],[connectable,right],[connected,plus],[connecticut,city],[connecting,plus],[connection,plus],[connectionism,right],[connectionnumber,n],[connectionnumberprompt,square],[connectionprompt,square],[connections,dash],[connective,dash],[connectives,dash],[connectivity,line],[connector,right],[connectors,box],[connects,plus],[connoisseur,person],[connotations,plus],[conns,dash],[cons,minus],[conscience,plus],[conscientious,plus],[conscientiousness,plus],[conscious,brain],[consciously,plus],[consciousness,plus],[consciousnesses,plus],[consec,right],[consecutive,right],[consent,plus],[consented,plus],[consenting,plus],[consequence,right],[consequences,dot],[consequent,a],[consequential,right],[consequentialist,person],[consequents,right],[conservation,equals],[conservatism,minus],[conservative,plus],[conservatively,n],[conserve,plus],[conserved,plus],[conserving,plus],[conses,box],[consider,tick],[considerable,plus],[considerably,plus],[considerate,plus],[consideration,plus],[considerations,dash],[considered,plus],[considering,plus],[considers,plus],[consist,box],[consisted,plus],[consistency,plus],[consistent,plus],[consistently,plus],[consisting,box],[consists,dash],[console,square],[consolidate,plus],[consolidated,plus],[consolidation,plus],[consolidator,plus],[consonants,square],[consortium,company],[const,n],[constancy,plus],[constant,n],[constantdis,equals],[constantly,n],[constants,k],[constellation,star],[constituent,box],[constituents,person],[constitute,box],[constituted,equals],[constitutes,plus],[constituting,box],[constitution,paper],[constitutional,book],[constitutions,book],[constitutive,plus],[constrain,down],[constrained,plus],[constraining,n],[constraint,n],[constraints,box],[construct,box],[constructed,box],[constructing,box],[construction,box],[constructions,box],[constructive,box],[constructivism,box],[constructor,box],[constructors,and],[constructs,box],[construed,plus],[consult,plus],[consultancy,plus],[consultant,person],[consultants,person],[consultation,paper],[consulted,plus],[consulting,right],[consume,plus],[consumed,plus],[consumer,person],[consumers,person],[consuming,left],[consumption,box],[cont,right],[contact,dash],[contacted,dash],[contactform,paper],[contacting,equals],[contacts,person],[contagious,minus],[contain,box],[containable,box],[contained,box],[container,box],[containers,box],[containing,box],[contains,square],[contaminable,minus],[contaminated,minus],[contamination,minus],[contemplated,plus],[contemplating,plus],[contemplation,plus],[contemporary,square],[contempt,minus],[contend,plus],[contended,plus],[contenders,person],[content,a],[contention,two],[contentions,square],[contents,square],[contest,plus],[contested,xcorrection],[contesting,plus],[context,square],[contexts,box],[contextsi,square],[contextual,box],[contextualisation,plus],[continent,],[continental,square],[continents,square],[contingency,plus],[contingent,plus],[contingents,person],[continual,right],[continually,right],[continuance,right],[continuation,right],[continue,right],[continued,right],[continues,right],[continuing,right],[continuities,right],[continuity,line],[continuous,circle],[continuously,circle],[contour,right],[contours,box],[contra,xcorrection],[contrabass,box],[contracello,cello],[contract,paper],[contracted,down],[contracting,down],[contraction,right],[contractionism,down],[contractor,person],[contractors,person],[contracts,paper],[contractual,paper],[contradiction,minus],[contradictions,minus],[contradictorily,minus],[contradictory,minus],[contradicts,xcorrection],[contradistinction,notequals],[contrarily,xcorrection],[contrary,minus],[contrast,minus],[contrasted,minus],[contrasting,minus],[contrasts,minus],[contrected,plus],[contrection,plus],[contribute,plus],[contributed,plus],[contributes,right],[contributing,plus],[contribution,right],[contributions,box],[contributor,person],[contributors,person],[control,tick],[controlled,plus],[controller,right],[controllers,plus],[controlling,plus],[controls,right],[controversial,minus],[controversy,minus],[conundrums,minus],[convenience,plus],[convenient,plus],[convenor,person],[convention,plus],[conventional,plus],[conventionally,plus],[conventions,tick],[converge,down],[converged,right],[convergence,down],[convergent,right],[conversants,person],[conversation,speechballoon],[conversational,mouth],[conversations,paper],[converse,square],[conversed,square],[conversely,plus],[conversing,mouth],[conversion,right],[conversions,right],[convert,right],[converted,right],[converter,right],[converters,right],[converting,right],[converts,right],[convex,circle],[convey,paper],[conveyable,right],[conveyed,plus],[conveying,paper],[conveys,right],[convince,plus],[convinced,plus],[convincingly,plus],[convoluted,minus],[convoy,person],[coo,dash],[coogan,person],[cook,n],[cookbook,book],[cooked,n],[cookery,apple],[cookie,],[cookies,cookie],[cooking,n],[cooks,person],[cool,n],[cooled,n],[cooler,lessthan],[cooling,n],[coootherlangpairs,tworectangle],[cooperated,plus],[cooperation,plus],[cooperative,plus],[cooperatives,plus],[coord,n],[coordinate,n],[coordinated,dash],[coordinates,dot],[coordination,plus],[coordinator,person],[coordinators,person],[coords,dot],[coordstype,square],[coorss,note],[coowithoutlangpairs,square],[cop,person],[cope,plus],[coped,plus],[copied,two],[copies,plus],[copilot,person],[coping,plus],[copiously,n],[copper,],[copula,equals],[copulate,plus],[copulation,plus],[copy,paper],[copyediting,paper],[copying,plus],[copyright,tick],[copyrighted,tick],[copyrighting,plus],[copyw,paper],[copywrite,square],[copywriter,person],[copywriting,pen],[copywritings,paper],[copywritten,plus],[copywrote,pen],[coral,],[cord,],[cordial,],[cordnode,dash],[cords,dash],[corduroy,pants],[core,paper],[cores,paper],[cori,dash],[cork,],[corkingdale,person],[corks,cork],[cormack,person],[corn,],[cornelia,person],[corner,zero],[cornered,box],[corners,dot],[cornerstone,box],[cornstarch,box],[cornupcopias,plus],[coronary,heart],[coronavirus,virus],[coronel,person],[corporal,person],[corporate,dollarsymbol],[corporateness,dollarsymbol],[corporation,company],[corporations,company],[corps,person],[corpuscle,ball],[corr,xcorrection],[correct,tick],[corrected,tick],[correcter,xcorrection],[correcting,xcorrection],[correction,xcorrection],[corrections,xcorrection],[correctly,tick],[correctness,tick],[correctors,person],[corrects,tick],[correl,right],[correlate,right],[correlated,dash],[correlates,dash],[correlating,dash],[correlation,dash],[correlational,right],[correlations,dash],[correspond,right],[corresponded,right],[correspondence,right],[correspondences,dash],[corresponding,dash],[corresponds,right],[corridor,room],[corridors,line],[corrs,dash],[corrupt,minus],[corrupted,minus],[corruption,minus],[corrupts,minus],[cortisol,ball],[cos,right],[cosine,n],[cosmic,plus],[cosmogony,book],[cosmol,box],[cosmological,box],[cosmologically,plus],[cosmologies,box],[cosmologist,person],[cosmologue,person],[cosmology,box],[cosmopolitan,magazine],[cosmos,box],[cosms,box],[cost,dollarsymbol],[costa,country],[costan,person],[costantino,person],[costly,dollarsymbol],[costs,dollarsign],[costume,hat],[costumes,coat],[cosy,plus],[cot,dash],[cototherlangpairs,square],[cottage,house],[cotton,line],[cottoning,plus],[couch,chair],[cough,mouth],[coughing,mouth],[could,dash],[couldn,xcorrection],[coun,person],[council,person],[councillors,person],[councils,up],[counselling,person],[counsellor,person],[counsellors,person],[count,n],[countable,n],[countalgorithmfirstline,square],[countalgorithmsecondline,square],[counted,n],[counter,n],[counteract,xcorrection],[counterbalance,equals],[countered,equals],[countering,equals],[countermand,xcorrection],[countermeasure,xcorrection],[counterpart,plus],[counterparts,equals],[counterpoint,dot],[counterproductive,minus],[counters,counter],[countess,person],[counting,n],[countries,square],[country,],[countryman,person],[counts,n],[counttwouses,n],[couple,person],[couples,person],[coupling,equals],[courage,plus],[couresware,dash],[courier,person],[course,tworectangle],[coursedesc,square],[coursera,company],[courses,book],[courseware,book],[coursework,paper],[court,building],[courteous,plus],[courteously,plus],[courtesy,plus],[courtier,person],[courtiers,person],[courtyard,yard],[cover,square],[coverage,square],[covered,square],[covering,square],[covers,square],[covid,minus],[cow,],[cowan,person],[cowden,person],[coworkers,person],[cowperson,person],[cows,animal],[cox,person],[cp,right],[cpa,variable],[cpb,variable],[cpd,plus],[cps,right],[cpt,n],[cpu,computer],[cpus,and],[cpv,variable],[cpvs,variable],[cpx,dot],[cq,plus],[cr,line],[crab,],[crack,box],[cracked,right],[cracker,xcorrection],[cracking,box],[cracks,box],[craft,box],[crafted,plus],[crafting,box],[crane,],[cranes,crane],[crang,person],[cranial,head],[crank,rod],[crap,ball],[crash,minus],[crashed,minus],[crashes,down],[crashing,minus],[crate,box],[crates,crate],[cravitron,plus],[crawled,right],[crawling,right],[cre,dash],[creagh,person],[cream,],[creaming,cream],[creams,cream],[creamy,cream],[crease,right],[creases,line],[create,plus],[created,person],[creates,person],[createview,plus],[creatine,ball],[creating,plus],[creatinine,ball],[creation,one],[creationism,plus],[creations,plus],[creative,left],[creativeinnovationglobal,plus],[creatively,plus],[creativity,and],[creator,person],[creators,person],[creature,animal],[creatures,dog],[cred,paper],[credence,plus],[credentials,plus],[credibility,plus],[credible,plus],[credit,plus],[credited,plus],[crediting,plus],[creditline,card],[creditor,person],[creed,plus],[creek,],[creelman,person],[creep,right],[creeper,right],[cremate,],[cremated,down],[cremating,box],[crepe,],[crescendo,slash],[creswell,person],[crew,person],[crewmember,person],[cricket,ball],[cricos,n],[cried,minus],[crime,minus],[crimes,minus],[criminal,person],[criminals,person],[criminology,xcorrection],[crises,minus],[crisis,minus],[crit,paper],[criteria,dash],[criterion,square],[critic,person],[criticable,xcorrection],[critical,xcorrection],[criticality,xcorrection],[critically,xcorrection],[criticism,square],[critics,person],[critique,paper],[critiqued,paper],[critiques,paper],[critiquing,plus],[croaker,frog],[croatia,country],[croc,dash],[crocodile,],[croissant,],[cron,software],[crontab,n],[crook,person],[crooke,person],[crop,plant],[crosbie,person],[crosby,person],[cross,x],[crossbow,],[crossed,minus],[crossers,person],[crosses,x],[crossing,equals],[crossings,dot],[crossover,software],[crossroads,x],[crossword,square],[crotchet,line],[crotchets,note],[crow,],[crowd,person],[crowds,person],[crowing,line],[crown,],[crs,dash],[crsotvt,dash],[crucial,tick],[cruise,person],[crumb,],[crumpled,down],[crunches,left],[crunching,down],[crush,down],[crushed,down],[cry,tear],[crying,minus],[crypt,room],[cryptic,right],[cryptically,right],[cryptographic,right],[cryptography,right],[crystal,box],[crystals,crystal],[cs,box],[csav,dash],[css,paper],[cstring,variable],[cstrings,variable],[cstringsr,variable],[cstringsrr,variable],[csymf,square],[ct,dash],[ctat,dash],[ctc,curve],[ctcs,arc],[ctinput,square],[ctobr,box],[ctrl,box],[ctt,box],[cttbacktranslate,square],[cttinput,n],[cttorig,box],[cttorigtran,right],[ctts,person],[cttsimplified,right],[ctx,dash],[cub,],[cuba,country],[cubby,],[cube,box],[cubeful,box],[cubes,box],[cubic,box],[cubie,person],[cubist,box],[cuckoo,bird],[cud,dash],[cuddled,circle],[cuddling,circle],[cue,square],[cues,square],[cuff,cylinder],[cuisine,tofu],[cukierman,person],[cul,plus],[culinary,apple],[culminating,up],[culmination,n],[culpa,minus],[culpate,minus],[culpated,minus],[cult,paper],[cultivate,plus],[cultivated,plus],[cultivating,plus],[cultofpedagogy,apple],[cultural,dash],[culturally,glass],[culturaltranslationtool,software],[culture,box],[cultured,plus],[cultures,square],[culturologists,person],[culturology,book],[culturvate,company],[cumbersome,minus],[cumquat,],[cumulative,n],[cup,],[cupboard,],[cupcake,],[cupcakes,cupcake],[cupid,person],[cupping,box],[cups,cup],[cur,dash],[curable,plus],[curated,plus],[curb,stop],[curbed,xcorrection],[curd,],[cure,plus],[cured,plus],[curing,plus],[curiosity,plus],[curious,eye],[curiously,plus],[curl,square],[curled,right],[curler,cylinder],[curly,line],[curr,dash],[currant,],[currencies,dollarsymbol],[currency,square],[current,tick],[currentdate,n],[currently,one],[currents,right],[curricula,book],[curricular,book],[curriculum,book],[curried,n],[currnotification,plus],[curry,],[currying,variable],[curse,minus],[cursor,square],[curtis,person],[curve,square],[curved,arc],[curves,arc],[curving,right],[curvy,arc],[cushion,],[cushions,cushion],[cusp,dot],[cust,person],[custodians,person],[custodianship,plus],[custody,room],[custom,plus],[customary,paper],[customer,person],[customers,person],[customisability,plus],[customisable,plus],[customisation,plus],[customisations,plus],[customise,right],[customised,dash],[customiser,box],[customising,square],[customized,plus],[customs,plus],[custs,person],[cut,xcorrection],[cute,plus],[cutedog,dog],[cuticle,cuticle],[cuticles,cuticle],[cutlass,],[cutoff,n],[cuts,n],[cutter,],[cutting,box],[cv,paper],[cve,dash],[cvs,right],[cw,book],[cwb,minus],[cwd,paper],[cws,paper],[cx,variable],[cxl,dash],[cxs,dash],[cxx,variable],[cxzrnlnncxplrjmyn,dash],[cy,variable],[cyber,computer],[cybersecurity,plus],[cyborg,person],[cycle,circle],[cycles,circle],[cyclic,circle],[cyclical,circle],[cycling,right],[cyclist,person],[cylinder,],[cylindrical,cylinder],[cymatics,line],[cymbal,],[cynthia,person],[cyprus,country],[cystic,minus],[cytokines,cell],[cyy,variable],[cz,dash],[czech,country],[czechia,country],[czz,variable],[côte,country],[d,square],[da,dash],[dabbed,dot],[dabble,down],[dad,person],[dada,book],[daddy,person],[dadirri,person],[dads,person],[daeea,dash],[daffodil,],[daguerreotypes,plus],[dagwell,person],[dahl,person],[dai,person],[daigou,dash],[daily,square],[dailyregimen,plus],[dainik,newspaper],[dairy,milk],[daisies,daisy],[daisy,],[dal,dash],[dale,person],[daloz,person],[dam,],[damage,minus],[damaged,minus],[damages,minus],[damaging,minus],[damfjdxt,dash],[damien,person],[damper,],[dampness,water],[dan,person],[danby,person],[dance,right],[danced,right],[dancer,person],[dancing,hand],[dandm,and],[danger,minus],[dangerous,minus],[dangers,minus],[dangled,down],[daniel,person],[danish,danish],[danishes,],[dann,person],[dao,path],[daodejing,book],[daoism,book],[daoismheideggergreen,paper],[daoist,person],[darcy,person],[daring,plus],[daringnesses,plus],[dark,square],[darkening,square],[darker,square],[darkest,square],[darling,person],[darlings,person],[darren,person],[darwin,person],[das,down],[dasein,person],[dash,],[dashboard,and],[dashes,dash],[data,a],[dataalgdict,book],[database,box],[databaseformulafinder,up],[databases,box],[datadictionary,square],[dataflow,right],[datalayer,line],[dataless,minus],[date,square],[dateandtime,n],[dates,square],[datestamp,square],[datetime,n],[dative,square],[datura,n],[daub,down],[daughter,person],[daughters,person],[daunt,minus],[dave,person],[davey,person],[david,person],[davis,person],[daw,computer],[dawkins,person],[dawn,n],[dawson,person],[day,],[daydob,n],[daylearned,square],[daylight,sun],[days,day],[daysb,square],[daysbspeoplearmy,n],[dayvaluea,variable],[dayvalueb,variable],[db,square],[dba,dash],[dbase,box],[dbcc,dash],[dbff,box],[dbpia,paper],[dbs,square],[dbw,square],[dc,dash],[dcd,dash],[dcg,square],[dcgs,dash],[dcgutils,right],[dd,dash],[ddd,dash],[dddr,dash],[dde,dash],[dded,dash],[de,country],[dea,person],[dead,minus],[deadening,down],[deadline,n],[deadlines,n],[deadlocked,equals],[deaf,minus],[deafness,ear],[deakin,university],[deal,plus],[dealer,person],[dealing,plus],[dealings,plus],[dealmaking,dollarsymbol],[deals,plus],[dealt,plus],[dean,person],[deane,person],[deanimate,zero],[deanna,person],[dear,person],[dearly,plus],[death,zero],[deathbed,bed],[deaths,dot],[deb,person],[debate,two],[debated,square],[debates,square],[debbie,person],[debian,software],[debriefing,square],[debris,box],[debt,minus],[debu,dash],[debug,a],[debugged,xcorrection],[debugger,tick],[debuggers,xcorrection],[debugging,tick],[debugvalue,n],[debutanted,plus],[dec,square],[decade,n],[decades,n],[decay,minus],[deceive,minus],[deceiving,minus],[december,square],[decentralised,dot],[deception,minus],[deceptive,minus],[decide,tick],[decided,tick],[decides,tick],[deciding,tick],[deciduate,down],[deciduousness,down],[decimal,n],[decimetre,tenrectangle],[decipher,right],[deciphered,right],[deciphering,right],[decision,tick],[decisions,tick],[decisive,plus],[deck,square],[declaration,paper],[declarations,square],[declarative,and],[declare,mouth],[declared,square],[decline,down],[decoded,square],[decoding,right],[decomp,down],[decompose,minus],[decomposeandbuild,right],[decomposed,down],[decomposes,down],[decomposing,down],[decomposition,minus],[decompress,up],[decompressing,up],[decomps,down],[decons,left],[deconstruct,down],[deconstructed,down],[deconstructing,down],[deconstruction,down],[decor,box],[decorated,square],[decoration,plus],[decrease,down],[decreased,minus],[decreases,down],[decreasing,down],[decrypt,left],[decrypted,plus],[decryption,right],[decurion,dash],[ded,dash],[dedicated,plus],[deduce,right],[deduced,right],[deducer,up],[deducing,right],[deduct,minus],[deduction,right],[deductive,up],[deed,hand],[deeds,hand],[deemed,plus],[deemer,person],[deeming,plus],[deep,down],[deepening,zline],[deepens,down],[deeper,down],[deepest,down],[deeply,down],[deeptissue,box],[deer,],[def,dash],[default,one],[defeasible,plus],[defeat,minus],[defeated,xcorrection],[defeating,xcorrection],[defeats,xcorrection],[defect,right],[defects,minus],[defence,plus],[defenceedit,dash],[defences,dash],[defend,xcorrection],[defended,xcorrection],[defending,plus],[defensibility,plus],[defensive,plus],[defer,right],[deference,plus],[deferens,tube],[defiantly,plus],[deficiencies,minus],[deficiency,minus],[deficit,minus],[define,dash],[defined,square],[defines,square],[defining,dash],[definite,plus],[definitely,plus],[definition,square],[definitions,square],[definitive,plus],[definitively,plus],[definitiveness,plus],[deflect,right],[deflected,right],[deflecting,right],[deflection,right],[deforestation,tree],[defying,xcorrection],[deg,n],[degenerate,minus],[degeneration,minus],[degradation,minus],[degrade,down],[degree,a],[degreelessness,zero],[degrees,paper],[dehiscence,up],[dehlinger,person],[dei,plus],[deidentified,xcorrection],[deidentifier,xcorrection],[deigned,plus],[deigning,plus],[deity,person],[dej,dash],[del,dash],[delay,dash],[delayed,n],[delays,n],[delect,plus],[delectable,apple],[delected,plus],[delecting,tongue],[delegate,person],[delegated,down],[delegatee,person],[delegatees,person],[delegater,person],[delegates,person],[delegating,right],[delegation,right],[delegator,person],[delegators,person],[delete,minus],[deletea,xcorrection],[deleted,xcorrection],[deleteduplicatecode,and],[deleteduplicates,xcorrection],[deletefirst,xcorrection],[deleter,xcorrection],[deletes,xcorrection],[deleting,minus],[deletion,xcorrection],[deletions,minus],[deliberate,plus],[deliberately,plus],[delicate,plus],[delicatessen,shop],[delicious,plus],[deliciousness,plus],[delight,plus],[delighted,plus],[delightful,plus],[delightfully,plus],[delightited,plus],[delights,plus],[delilah,person],[delimeter,dash],[delimit,box],[delimited,dash],[delimiter,square],[delimiters,square],[delineated,plus],[deliver,right],[delivered,right],[deliverer,person],[deliveries,right],[delivering,right],[delivers,right],[delivery,right],[deloan,person],[delta,],[deltoid,muscle],[delve,down],[delves,down],[delving,down],[demand,left],[demanded,plus],[demanding,minus],[demands,minus],[demarcates,equals],[demarcating,plus],[dematerialing,box],[dematerialised,zero],[demeaning,minus],[demeanour,plus],[demented,minus],[dementia,minus],[demetrioued,plus],[demetrius,person],[demo,paper],[democracy,dot],[democratic,plus],[democratically,plus],[democrats,person],[demoed,plus],[demographic,person],[demographics,person],[demon,minus],[demonadalised,box],[demonstrate,plus],[demonstrated,tick],[demonstrates,plus],[demonstrating,plus],[demonstration,hand],[demonstrations,box],[demoralised,minus],[demuted,up],[den,box],[dena,city],[denature,minus],[denatured,minus],[dendrite,right],[denial,xcorrection],[denied,xcorrection],[denies,xcorrection],[denis,person],[denison,person],[denmark,country],[denominator,n],[denote,right],[denoted,square],[denotes,square],[denoting,square],[dense,n],[density,dot],[dental,tooth],[dentist,person],[dentistry,tooth],[denuded,plus],[denured,plus],[deny,minus],[denzin,person],[deontological,person],[deontology,person],[deoxygenated,minus],[departed,right],[departing,right],[department,building],[departmental,book],[departments,paper],[departure,right],[depend,right],[dependability,plus],[dependable,plus],[depended,left],[dependence,down],[dependencies,up],[dependency,left],[dependent,left],[dependently,right],[dependents,up],[depending,left],[depends,left],[depict,square],[depicted,square],[depicting,square],[depicts,right],[depleting,minus],[deploy,right],[deployed,plus],[deploying,plus],[deployment,box],[deposit,dollarsymbol],[deposited,dollarsymbol],[depositing,dollarsymbol],[deprecate,xcorrection],[deprecated,minus],[depressed,minus],[depression,minus],[depressive,minus],[deps,up],[dept,building],[depth,n],[depts,building],[deputy,person],[dequals,company],[deransart,dash],[derby,square],[dereconstruction,down],[deregulation,plus],[derhuerst,person],[derision,minus],[derivability,right],[derivatives,down],[derive,plus],[derived,right],[deriving,right],[dermatol,person],[dermatological,square],[derogatory,minus],[derrida,person],[derridean,person],[derrimut,dot],[deruiter,person],[des,person],[desc,square],[descartes,person],[descend,down],[descended,down],[descends,down],[descent,down],[describe,square],[described,square],[describes,dash],[describing,square],[descrip,square],[description,square],[descriptioncombination,dash],[descriptionedit,dash],[descriptions,square],[descriptiontext,square],[descriptive,square],[descriptor,square],[descriptors,square],[desensi,person],[desert,sand],[deserve,tick],[deserved,plus],[deservedness,plus],[deserves,plus],[deservingly,plus],[desiccated,down],[desiccating,down],[desiderative,plus],[design,line],[designated,plus],[designates,plus],[designed,tick],[designer,person],[designers,person],[designing,square],[designs,square],[desirable,plus],[desire,plus],[desired,plus],[desires,plus],[desiring,plus],[desk,],[desks,desk],[desktop,square],[desktops,and],[despite,xcorrection],[despotic,minus],[desseminate,down],[dessert,apple],[desserts,dessert],[dessicated,down],[dest,dot],[destination,dot],[destinations,dot],[destined,dot],[destiny,dot],[destroy,xcorrection],[destroyed,xcorrection],[destroying,xcorrection],[destruction,minus],[destructive,minus],[det,square],[detach,notequals],[detached,plus],[detail,dash],[detailed,dot],[detailedly,plus],[detailer,square],[detailers,square],[detailing,dash],[details,box],[detailsoptionally,dash],[detect,equals],[detectability,plus],[detectable,plus],[detected,tick],[detecting,tick],[detection,equals],[detector,box],[detectors,eye],[detects,person],[detergent,],[deteriorated,down],[determinant,plus],[determinants,plus],[determination,n],[determine,equals],[determined,plus],[determiner,plus],[determines,right],[determining,tick],[determinism,plus],[determinisms,plus],[deterministic,equals],[deterred,xcorrection],[detlog,book],[detour,right],[detoured,right],[detracting,minus],[detrimental,minus],[detritus,ball],[deutscher,person],[deuxième,box],[dev,square],[devaluation,down],[develop,plus],[developed,plus],[developedly,plus],[developedness,plus],[developer,person],[developers,person],[developing,box],[development,plus],[developmental,box],[developmentally,plus],[developments,plus],[develops,box],[deviations,plus],[device,and],[devices,dash],[devil,person],[devin,person],[devise,square],[devised,plus],[devising,square],[devoid,minus],[devops,right],[devoted,plus],[devotion,plus],[devour,mouth],[dewey,person],[dewzguiy,dash],[dexterous,finger],[df,dash],[dfa,line],[dfb,dash],[dff,dash],[dfn,dash],[dfs,down],[dgc,dash],[dgl,dash],[dh,dash],[dhn,variable],[di,dash],[diabetes,minus],[diagnose,tick],[diagnosed,square],[diagnoses,plus],[diagnosing,square],[diagnosis,tick],[diagnostic,tick],[diagnostics,tick],[diagonal,line],[diagonally,right],[diagonals,line],[diagram,square],[diagrams,square],[dial,circle],[dialect,square],[dialectic,paper],[dialectics,paper],[dialectise,square],[dialled,n],[dialogical,square],[dialogically,square],[dialogue,paper],[dialogues,mouth],[diameter,n],[diamond,],[diamonds,box],[dian,person],[diana,person],[dianne,person],[diaphragm,],[diareasoner,square],[diaries,book],[diarrhoea,minus],[diary,book],[dibb,person],[dice,],[dichotomies,two],[dichotomy,dash],[dick,person],[dickson,person],[dickybird,bird],[dicotyledon,flower],[dict,book],[dictate,mouth],[dictated,mouth],[dictates,mouth],[dictation,mouth],[dictators,person],[diction,tongue],[dictionaries,book],[dictionary,book],[dicts,book],[did,dash],[didactic,plus],[diddly,minus],[didgeridoo,],[didn,xcorrection],[dido,person],[die,minus],[died,n],[dies,minus],[diet,apple],[dietary,apple],[diets,apple],[dif,variable],[diff,minus],[diffed,notequals],[differ,minus],[differed,two],[difference,minus],[differencebetween,minus],[differences,minus],[differencet,minus],[different,minus],[differential,plus],[differentiate,minus],[differentiated,two],[differentiates,box],[differentiating,minus],[differentiation,minus],[differentiations,plus],[differently,minus],[differing,notequals],[differs,minus],[difficult,minus],[difficulties,xcorrection],[difficultly,minus],[difficulty,minus],[diffs,notequals],[diffusion,right],[différence,minus],[dig,down],[digby,person],[digest,stomach],[digested,stomach],[digestible,stomach],[digesting,stomach],[digestion,stomach],[digestive,intestines],[digging,down],[digicon,square],[digit,n],[digital,finger],[digitally,n],[digits,n],[digittoint,right],[dignified,plus],[dilated,right],[dilemma,minus],[dilemmas,minus],[diligence,plus],[diligent,plus],[dillet,person],[dilucidated,plus],[diluted,water],[dim,n],[dimension,line],[dimensional,n],[dimensionality,box],[dimensionally,box],[dimensions,box],[diminish,down],[diminished,down],[diminishing,down],[dimly,n],[dinacarya,square],[dine,carrot],[dined,mouth],[diner,apple],[diners,person],[ding,dash],[dinicolantonio,person],[dining,potato],[dinley,person],[dinner,potato],[dinosaur,],[dion,person],[diorama,box],[dioxide,],[dip,paper],[dipankar,person],[diploma,paper],[diplomas,paper],[diplomat,person],[diplomatic,plus],[dipped,down],[dir,box],[direct,down],[direct,right],[directed,right],[directing,dot],[direction,right],[directional,right],[directionality,right],[directiondict,book],[directiondifferencet,d],[directiondt,d],[directionend,variable],[directionlength,n],[directionlengtht,n],[directions,right],[directionstring,variable],[directionstringth,variable],[directionvalues,variable],[directionx,variable],[directiony,variable],[directionz,variable],[directive,right],[directives,right],[directly,line],[director,person],[directories,box],[directors,person],[directory,paper],[dirs,right],[dirt,],[dirty,minus],[dis,variable],[disab,minus],[disabilities,minus],[disability,minus],[disabled,minus],[disadvanced,dash],[disadvantage,minus],[disadvantaged,minus],[disadvantages,minus],[disagree,xcorrection],[disagreeable,minus],[disagreed,xcorrection],[disagreeing,xcorrection],[disagreement,minus],[disagreements,xcorrection],[disagrees,xcorrection],[disallow,xcorrection],[disallowed,minus],[disambiguate,box],[disambiguated,right],[disandclass,variable],[disappear,zero],[disappeared,xcorrection],[disappearing,minus],[disappears,xcorrection],[disappointed,minus],[disappointedly,minus],[disappointing,minus],[disarm,xcorrection],[disarmed,plus],[disarming,xcorrection],[disaster,minus],[disasters,minus],[disc,],[discard,xcorrection],[discarded,xcorrection],[discarding,xcorrection],[discards,xcorrection],[discern,plus],[discernable,plus],[discerned,v],[discernible,plus],[discerning,plus],[discharge,right],[discharging,right],[discipiated,plus],[discipled,right],[disciples,person],[disciplinarity,book],[disciplinary,xcorrection],[discipline,book],[disciplined,plus],[disciplines,book],[disciplining,plus],[disclaimed,plus],[disclaimer,plus],[disclass,variable],[disclosing,right],[disclosure,plus],[disclosures,eye],[discomfort,minus],[disconcertedness,minus],[disconnect,notequals],[disconnected,xcorrection],[disconnects,notequals],[discontiguous,line],[discontinued,xcorrection],[discount,minus],[discounted,xcorrection],[discounts,dollarsymbol],[discourage,xcorrection],[discouraged,xcorrection],[discours,paper],[discourse,square],[discourses,book],[discover,plus],[discoverable,plus],[discovered,tick],[discoveries,plus],[discovering,plus],[discovers,plus],[discovery,plus],[discredit,minus],[discredited,xcorrection],[discreet,plus],[discrepancy,minus],[discriminant,notequals],[discriminate,minus],[discriminated,xcorrection],[discrimination,minus],[discriminatory,minus],[discripiated,plus],[discs,circle],[discursive,dash],[discus,],[discuses,discus],[discuss,mouth],[discussed,square],[discusses,mouth],[discussing,mouth],[discussion,square],[discussions,square],[disease,minus],[diseased,minus],[diseases,minus],[disembarked,left],[disembarking,right],[disempower,minus],[disengagement,minus],[disenrolled,xcorrection],[disentangling,right],[disequality,notequals],[disguise,glasses],[disguises,mask],[disgusting,minus],[dish,],[dishes,dish],[dishevelled,minus],[dishonesty,minus],[disinfectant,],[disinfected,disinfectant],[disintegrate,down],[disintegrated,down],[disinterest,minus],[disinterested,minus],[disised,minus],[disj,or],[disjointed,box],[disjunction,or],[disjunctions,or],[disjunctive,or],[disk,square],[dislike,xcorrection],[disliked,xcorrection],[dislikes,xcorrection],[disliking,minus],[dislodged,right],[dismantle,down],[dismantled,box],[dismantling,down],[dismiss,minus],[dismissal,xcorrection],[dismissed,xcorrection],[disorder,minus],[disordered,minus],[disorders,minus],[disorganised,minus],[disparagingly,minus],[disparities,minus],[disparity,minus],[dispassionate,minus],[dispatch,box],[dispensable,plus],[dispensation,plus],[dispense,right],[dispensed,down],[dispenser,down],[dispensers,dispenser],[dispensing,down],[disperse,right],[displacement,n],[display,square],[displayed,square],[displayer,display],[displaying,square],[displays,square],[disposable,plus],[disposal,down],[dispose,down],[disposed,down],[disposition,plus],[dispositional,plus],[dispute,minus],[disputed,xcorrection],[disputes,minus],[disregard,minus],[disregarded,minus],[disrespect,minus],[disrespectful,minus],[disrespects,minus],[disrupt,xcorrection],[disrupted,minus],[disrupting,minus],[disruption,minus],[disruptive,minus],[disruptor,minus],[disrupts,minus],[dissect,down],[dissected,right],[dissection,down],[disseminate,down],[disseminating,right],[dissemination,right],[disseminator,person],[dissertation,paper],[dissimilarity,notequals],[dissipate,down],[dissolve,water],[dissolved,water],[dissolver,down],[dissuade,xcorrection],[distance,line],[distanced,n],[distances,n],[distancing,n],[distant,n],[distaste,minus],[distastefully,minus],[distil,down],[distinct,plus],[distinction,two],[distinctions,a],[distinctive,plus],[distinctively,plus],[distinctiveness,plus],[distinctly,equals],[distinguish,box],[distinguished,plus],[distinguishing,right],[distort,minus],[distortion,minus],[distracted,minus],[distracting,minus],[distraction,minus],[distractions,minus],[distress,minus],[distressing,minus],[distribute,right],[distributed,right],[distributing,dash],[distribution,dash],[distributions,right],[distributive,right],[district,square],[districts,square],[disturbance,minus],[disturbances,minus],[disturbing,minus],[ditransitive,person],[div,square],[dive,down],[dived,down],[diverge,two],[diverged,two],[divergence,v],[divergences,right],[divergent,right],[diverging,right],[diverse,plus],[diversification,plus],[diversified,plus],[diversify,plus],[diversifying,plus],[diversions,dash],[diversity,plus],[diverted,right],[divertissement,plus],[divertissements,xcorrection],[dives,down],[divide,box],[dividebyfour,box],[divided,box],[dividend,dollarsymbol],[dividends,dollarsymbol],[dividers,box],[divides,division],[dividing,box],[divine,person],[divinely,plus],[diving,down],[divinity,person],[divisible,box],[division,box],[divisional,box],[divisions,box],[divorced,xcorrection],[divorcee,person],[divulged,up],[divulging,up],[dix,person],[dixee,person],[dixel,dash],[dixey,person],[dixie,goat],[dixl,person],[djablucinate,minus],[djameson,person],[djibouti,country],[dl,dash],[dlight,plus],[dlighted,plus],[dlive,plus],[dll,box],[dlo,dash],[dm,variable],[dmsd,dash],[dmsm,dash],[dmsr,dash],[dmss,dash],[dmst,dash],[dn,variable],[dna,],[dnn,variable],[do,person],[dob,square],[dobd,square],[dobm,square],[doby,square],[doc,paper],[dock,right],[docked,equals],[docking,equals],[docktime,and],[dockyards,water],[docs,paper],[doctor,person],[doctoral,book],[doctorate,book],[doctors,person],[doctrine,square],[doctype,square],[document,paper],[documentaries,plus],[documentary,square],[documentation,paper],[documented,paper],[documenting,paper],[documents,paper],[docx,paper],[dodged,xcorrection],[dodgem,xcorrection],[doer,plus],[does,right],[doesn,minus],[doffing,down],[dog,],[dogberry,person],[dogged,minus],[dogs,dog],[doh,dot],[doi,square],[doing,dash],[dois,n],[dojo,room],[dole,person],[doll,],[dollar,dollarsymbol],[dollars,dollarsymbol],[dollarsign,],[dollarsymbol,],[dollie,doll],[dollop,cream],[dom,person],[domain,square],[domains,square],[dome,hemisphere],[domestic,building],[dominance,plus],[dominant,plus],[dominate,minus],[dominated,minus],[dominates,plus],[dominating,plus],[domination,minus],[dominguez,person],[dominic,person],[dominica,country],[dominican,country],[dominions,house],[don,dash],[donald,person],[donaldkellett,person],[donate,dollarsymbol],[donated,right],[donating,dollarsymbol],[donation,dollarsymbol],[donations,dollarsymbol],[done,plus],[donee,dash],[donel,dash],[doney,person],[donl,person],[donna,person],[donor,person],[donrita,person],[dont,xcorrection],[donttry,minus],[doobies,plus],[doodles,pen],[door,],[doorbell,bell],[doors,door],[doorway,door],[doorways,door],[dorbuchers,person],[dore,dash],[dorjee,person],[dormant,dash],[dormitory,room],[dorothy,person],[dos,tick],[dose,n],[doses,n],[dostoevsky,person],[dot,],[dote,plus],[doting,plus],[dots,dot],[dotsandutterances,dot],[dott,plus],[dotted,dot],[dotting,dot],[double,two],[doubled,tworectangle],[doublemaze,right],[doubling,tworectangle],[doubly,tworectangle],[doubt,xcorrection],[doubting,minus],[doug,person],[dough,],[doughnut,],[dougsson,person],[dove,],[doves,dove],[dovetail,equals],[dovetailed,equals],[dow,person],[down,],[downcase,down],[downhill,down],[download,down],[downloaded,down],[downloading,down],[downloads,down],[downpipe,down],[downplay,xcorrection],[downplayed,xcorrection],[downs,minus],[downside,down],[downsize,down],[downstairs,down],[downton,city],[downturn,minus],[downwards,down],[dowry,dollarsymbol],[dowsed,water],[doyle,person],[dozen,n],[dozens,box],[dp,dash],[dqb,box],[dr,up],[dra,box],[draft,paper],[drafted,paper],[drafting,paper],[drafts,paper],[drag,right],[dragged,right],[dragging,right],[dragon,],[drain,box],[drained,down],[drains,down],[drake,duck],[drakes,duck],[drama,stage],[dramatic,stage],[dramatica,software],[dramatically,plus],[dramatis,book],[drank,water],[draw,paper],[drawbar,box],[drawer,box],[drawers,],[drawing,square],[drawings,square],[drawn,right],[draws,square],[drdftr,note],[dreadful,minus],[dream,box],[dreamballoon,],[dreamed,box],[dreamily,box],[dreams,speechballoon],[dreamt,square],[dreamy,dreamballoon],[dress,],[dressed,trousers],[dressing,plus],[dressmaker,person],[drew,pen],[drfile,paper],[dribbled,water],[dribbling,down],[dried,plus],[dries,up],[drigas,person],[drill,plus],[drilling,down],[drink,glass],[drinkable,water],[drinkers,person],[drinking,glass],[drinks,water],[drip,tube],[dripping,water],[drive,right],[driven,right],[driver,person],[drivers,person],[drives,right],[driveway,],[driving,right],[drizzled,down],[drizzles,down],[drone,robot],[drones,robot],[drop,down],[dropbox,box],[droplet,water],[dropped,down],[dropping,down],[drops,down],[dropwhile,plus],[drove,right],[drug,],[drugs,switch],[drum,],[drums,drum],[drunk,water],[drupe,cherry],[dry,box],[drying,square],[dryness,square],[ds,dash],[dsf,square],[dsorted,right],[dsp,dollarsymbol],[dsss,dash],[dsui,dash],[dt,variable],[dtd,dash],[dtree,dash],[dts,n],[du,dash],[dual,tworectangle],[dualise,tworectangle],[dualism,tworectangle],[dualistic,tworectangle],[duality,two],[dubai,city],[duchess,person],[duck,],[duckduckgo,company],[ducker,person],[duckling,],[ducklings,duckling],[ducks,duck],[due,n],[duel,right],[dug,down],[duk,person],[duke,cat],[dukel,person],[dukeltrance,person],[dukie,person],[dukkel,dash],[dukl,person],[dulcimer,box],[dulex,company],[dumit,person],[dumler,person],[dummies,minus],[dump,down],[dumped,down],[dumpling,],[dumptonesquenesses,plus],[duncan,person],[dune,sand],[dunmore,person],[dup,plus],[duplicate,two],[duplicated,two],[duplicates,tworectangle],[duplicating,two],[duplication,two],[dupoux,person],[dups,n],[durability,plus],[duration,n],[durations,n],[dure,person],[durham,person],[during,one],[durum,],[dust,sphere],[duster,],[dutch,person],[duties,plus],[duty,plus],[duuyqdrkdfmcsjskj,dash],[dvd,and],[dvouz,dash],[dwayne,person],[dwelling,house],[dwim,dash],[dwyer,person],[dx,variable],[dxx,variable],[dy,variable],[dyad,two],[dye,],[dyed,ink],[dyes,box],[dying,minus],[dylan,person],[dylib,book],[dynamic,plus],[dynamically,plus],[dynamics,n],[dynamism,plus],[dysfunctional,minus],[dyson,person],[dz,variable],[dznvkjcnza,dash],[e,box],[ea,earth],[each,dash],[eagle,],[eagled,arm],[eaning,dash],[ear,],[earlier,lessthan],[earliest,n],[earlobe,earlobe],[earlobes,earlobe],[early,left],[earn,dollarsign],[earned,dollarsign],[earner,person],[earners,dollarsymbol],[earning,dollarsign],[earningjobsprotectioninjobs,plus],[earnings,dollarsymbol],[earns,dollarsign],[earphone,],[earphones,],[earrings,circle],[ears,ear],[earth,planet],[earthlings,person],[earthquake,minus],[ease,plus],[eased,plus],[easier,plus],[easiest,plus],[easily,plus],[easiness,plus],[easing,plus],[east,right],[easter,egg],[eastern,left],[easterners,person],[easy,plus],[eat,apple],[eaten,mouth],[eater,person],[eateries,apple],[eaters,person],[eatery,apple],[eating,banana],[eats,apple],[eb,dash],[eba,dash],[ebay,company],[ebbed,plus],[ebeacon,company],[ebook,book],[ebrary,paper],[ebsco,and],[ec,variable],[eca,dash],[ecaster,company],[ecb,dash],[echo,square],[echoed,mouth],[echoes,n],[echoing,plus],[eco,apple],[ecological,plant],[ecologically,plant],[ecologist,person],[ecology,plant],[econ,dollarsymbol],[econd,dash],[econometric,right],[economic,dollarsymbol],[economical,dollarsymbol],[economically,dollarsymbol],[economics,dollarsign],[economisation,dollarsymbol],[economist,person],[economists,person],[economy,dollarsymbol],[ecosystem,plus],[ecosystems,plant],[ecritina,person],[ecritudine,paper],[ecstasy,plus],[ecstatic,plus],[ecuador,country],[ed,left],[edc,square],[edcf,square],[edcfd,square],[edd,square],[eddie,person],[ede,square],[edelweiss,plant],[edge,square],[edges,line],[edible,apple],[edit,pen],[editable,plus],[edited,right],[editing,tick],[edition,paper],[editions,n],[editor,square],[editorial,square],[editors,person],[edits,right],[edn,book],[eds,person],[edu,building],[educ,book],[educare,plus],[educate,book],[educated,plus],[educating,plus],[education,person],[educational,book],[educationally,plus],[educative,plus],[educator,person],[educators,person],[edward,person],[edwards,person],[edx,company],[ee,dash],[eee,company],[eeg,electron],[ef,plus],[efde,square],[effect,square],[effected,plus],[effective,tick],[effectively,plus],[effectiveness,plus],[effects,a],[effeminate,person],[effervent,plus],[efficacy,plus],[efficiency,plus],[efficient,variable],[efficiently,n],[effigies,sculpture],[effort,plus],[effortless,zero],[effortlessly,plus],[effortlessness,plus],[efforts,plus],[efmar,multiply],[efron,person],[eg,peach],[egalitarian,person],[egg,],[eggplant,],[eggs,ball],[ego,person],[egocentric,minus],[egos,person],[egs,square],[egyankosh,person],[egypt,country],[eh,dash],[eigengrau,square],[eigentlichkeit,plus],[eight,eightrectangle],[eighth,n],[eightrectangle,],[eighty,n],[eilat,person],[eilish,person],[einahpets,person],[einstein,person],[eisenhart,person],[either,or],[el,dash],[elaborate,plus],[elaboration,plus],[elapse,n],[elapsed,minus],[elapses,n],[elastic,],[elate,plus],[elbow,],[elbows,elbow],[elder,person],[elderberries,berry],[elderberry,],[elderly,n],[elders,person],[eldest,n],[eldorado,city],[elected,plus],[election,tick],[elections,tick],[elective,plus],[electoral,n],[electric,electron],[electrical,ball],[electrician,person],[electricity,electron],[electrified,electron],[electro,ball],[electrode,plus],[electromagnetic,plus],[electron,],[electronic,note],[electronics,and],[electrons,minus],[electrotherapy,plus],[elegance,plus],[elegant,square],[elegantly,plus],[element,n],[elementarily,plus],[elementary,one],[elements,one],[elenchus,plus],[elephantine,minus],[elet,right],[elevated,up],[elevation,zline],[elevations,square],[eleven,n],[elf,person],[eli,person],[elicit,plus],[eliciting,plus],[elide,right],[eligible,plus],[eliminate,minus],[eliminated,xcorrection],[eliminates,minus],[eliminating,xcorrection],[elimination,minus],[eliminativist,xcorrection],[eliminativistism,xcorrection],[elimininate,minus],[elite,plus],[elites,plus],[elitist,plus],[eliza,person],[elizabeth,person],[ellen,person],[ellie,person],[elliott,person],[ellipse,],[elly,person],[ellyard,person],[elmo,],[elope,minus],[eloquent,mouth],[els,square],[elsa,person],[else,or],[elsevier,company],[elsewhere,box],[elt,square],[eluded,xcorrection],[elusive,minus],[elvira,person],[ely,person],[em,box],[email,letterbox],[emailed,right],[emails,paper],[emanate,right],[emanated,right],[emanates,right],[embark,right],[embarked,plus],[embarking,right],[embarrassed,minus],[embarrassing,minus],[embarrassingly,minus],[embed,box],[embedded,down],[embedding,down],[embellishment,plus],[embodied,person],[embodies,plus],[embodiment,person],[embossed,box],[embouchure,mouth],[embrace,plus],[embraced,person],[embryo,],[embryos,embryo],[emerald,],[emerge,right],[emerged,up],[emergence,right],[emergency,minus],[emerges,up],[emerging,up],[emeritus,person],[emerson,person],[emily,person],[eminent,plus],[emir,person],[emirates,country],[emission,right],[emissions,right],[emitted,right],[emitters,right],[emitting,right],[emma,person],[emmons,person],[emoji,square],[emoticon,square],[emotion,smile],[emotional,smile],[emotionally,plus],[emotions,smile],[emotive,plus],[emoyed,plus],[empathetic,plus],[empathise,tick],[empathised,plus],[empathising,plus],[empathy,plus],[emperor,person],[empersonified,person],[emphases,plus],[emphasis,dot],[emphasise,plus],[emphasised,plus],[emphasises,plus],[emphasising,plus],[emphasized,plus],[emphasizes,plus],[emphatic,plus],[empire,country],[empirical,eye],[empirically,square],[empiricism,book],[employ,dash],[employed,plus],[employee,person],[employees,person],[employer,person],[employers,person],[employing,plus],[employment,plus],[employs,plus],[emporium,shop],[emporiums,building],[empower,plus],[empowered,plus],[empowering,plus],[empowerment,plus],[emptied,box],[emptiness,box],[empting,box],[empty,twobox],[emptycord,zero],[emptying,box],[emptyorvalsequal,dash],[emulate,right],[emulated,right],[emulating,plus],[emulator,box],[en,book],[enable,plus],[enabled,plus],[enables,plus],[enabling,plus],[enact,plus],[enacted,plus],[enacting,box],[enactment,plus],[enamelise,minus],[enamour,plus],[enamourate,plus],[enamoured,plus],[enamouring,plus],[enamourmonts,plus],[encapsulated,box],[encased,box],[ence,dash],[enchanted,plus],[enchilada,],[enclaves,box],[enclosed,box],[encloses,box],[encode,right],[encoded,right],[encoding,right],[encompasses,plus],[encounter,plus],[encountered,plus],[encountering,tick],[encounters,person],[encourage,plus],[encouraged,plus],[encouragement,plus],[encouragements,plus],[encourages,plus],[encouraging,plus],[encouragingly,plus],[encrypt,right],[encrypted,right],[encrypting,right],[encryption,plus],[encuntglish,box],[encyclopaedia,book],[encyclopedia,book],[encyclopedias,book],[end,n],[endanger,minus],[endangered,minus],[endeavours,plus],[ended,n],[endgame,n],[endgrammar,variable],[endgrammara,square],[ending,n],[endings,dot],[endless,n],[endnotes,paper],[endocrine,gland],[endocrinology,book],[endometrium,box],[endorse,plus],[endorsed,plus],[endorsement,plus],[endorsing,plus],[endowing,plus],[endpoint,n],[endpoints,dot],[endrec,dot],[ends,dot],[endstring,square],[endurance,plus],[endure,plus],[endured,right],[enduring,plus],[eneathiesnesses,plus],[enemies,person],[energetic,plus],[energise,up],[energised,plus],[energy,right],[energyeducation,book],[enforce,plus],[enforced,plus],[enforcement,plus],[eng,paper],[engage,box],[engaged,plus],[engagement,plus],[engaging,plus],[engels,person],[engender,plus],[engendering,plus],[engine,and],[engineer,person],[engineered,box],[engineering,plus],[engines,and],[england,country],[english,book],[engram,square],[engraved,box],[engrossed,minus],[engrossment,minus],[enhance,plus],[enhanced,plus],[enhancement,plus],[enhancements,plus],[enhances,plus],[enhancing,plus],[enigma,dot],[enigmas,plus],[enigmatic,plus],[enimals,animal],[enjoy,plus],[enjoyable,plus],[enjoyably,plus],[enjoyed,plus],[enjoying,plus],[enjoyment,plus],[enjoyments,plus],[enjoys,plus],[enlarge,up],[enlarged,up],[enlarging,up],[enlightened,plus],[enlightening,plus],[enlightenment,plus],[enlisted,plus],[enliven,plus],[enlivens,plus],[enmeshment,box],[eno,person],[enotecama,plus],[enough,n],[enqljvfy,dash],[enquire,square],[enquiries,square],[enquiring,square],[enquiry,plus],[enriches,plus],[enrol,plus],[enroll,tick],[enrolled,plus],[enrolling,tick],[enrollment,tick],[enrollments,square],[enrolment,plus],[enrolments,plus],[ensconce,plus],[ensemble,person],[enshrined,plus],[ensightment,eye],[enslaving,minus],[ensue,dot],[ensuing,right],[ensure,tick],[ensured,plus],[ensures,plus],[ensuring,plus],[entailed,plus],[entails,right],[entanglement,right],[enter,right],[entered,right],[enterer,person],[enteric,stomach],[entering,square],[enterprise,building],[enterprises,plus],[enterprising,plus],[enters,right],[entertain,plus],[entertained,plus],[entertaining,plus],[entertainment,plus],[enthusiasm,plus],[enthusiastically,plus],[enthusiasts,person],[entice,plus],[enticed,plus],[enticing,plus],[entire,n],[entirely,n],[entities,person],[entitled,square],[entitlement,plus],[entitlements,plus],[entity,person],[entrain,tick],[entrained,plus],[entrance,door],[entrants,person],[entrapping,box],[entreat,plus],[entrenched,down],[entrepreneur,person],[entrepreneurial,plus],[entrepreneurs,person],[entrepreneurship,one],[entries,square],[entropy,down],[entrust,plus],[entrusting,plus],[entrustments,plus],[entry,right],[entryt,square],[entwined,right],[enumerate,n],[enumerated,n],[enumerator,n],[enumerators,n],[enunciated,plus],[enunciating,square],[enus,person],[env,box],[envelope,],[environment,box],[environmental,plant],[environmentalism,plant],[environmentally,plus],[environments,box],[environs,box],[envisaged,eye],[envisaging,eye],[envision,eye],[envisioned,square],[enwrapped,box],[enya,person],[enzymatic,],[enzyme,plus],[enzymes,box],[eof,n],[eofc,n],[eol,square],[ep,line],[epages,company],[ephesia,person],[epic,book],[epidemic,minus],[epidemics,minus],[epididymis,down],[epinephrine,],[epiphany,plus],[episode,square],[episodes,square],[episteme,pen],[epistemological,box],[epistemologically,box],[epistemology,plus],[epithelium,square],[epoché,leftbracket],[epsilon,n],[epson,company],[epsonnet,line],[epton,plus],[epub,book],[eq,equals],[eqing,plus],[equal,equals],[equaled,equals],[equaling,equals],[equalitarian,person],[equality,equals],[equalled,equals],[equalling,equals],[equally,equals],[equals,],[equate,equals],[equated,equals],[equating,equals],[equation,tworectangle],[equations,equals],[equatorial,country],[equi,equals],[equilibrium,equals],[equip,plus],[equipment,computer],[equipped,plus],[equispace,n],[equispaced,square],[equitable,equals],[equitably,plus],[equity,plus],[equiv,equals],[equivalent,equals],[er,person],[era,line],[eradicate,xcorrection],[eradicated,xcorrection],[eras,line],[erase,xcorrection],[erased,xcorrection],[erasing,xcorrection],[erasure,xcorrection],[erc,dash],[ere,down],[erect,building],[erected,up],[erecting,up],[ereignis,box],[ergonomic,seat],[ergonomics,chair],[erica,person],[eritrea,country],[eroded,down],[erotisense,plus],[erpaccio,person],[err,minus],[erratic,minus],[erroneous,minus],[erroneously,minus],[error,xcorrection],[errors,minus],[ertain,minus],[eruption,volcano],[es,dash],[esau,person],[esc,right],[escalation,up],[escape,right],[escaped,right],[escapes,right],[eshan,person],[esl,book],[esol,book],[esophagus,tube],[esoteric,plus],[esotericnesses,plus],[especially,plus],[espeland,person],[esplanade,],[espouse,plus],[espouses,plus],[espousing,plus],[esque,plus],[ess,person],[essay,paper],[essayists,person],[essaylib,company],[essays,paper],[essence,apple],[essences,plus],[essent,box],[essential,one],[essentially,plus],[essentials,plus],[essonsciblenesses,plus],[est,equals],[establish,box],[established,zero],[establishes,box],[establishing,box],[estate,building],[estates,house],[esteem,plus],[ester,person],[esther,person],[estimate,n],[estimated,n],[estimating,equals],[estonia,country],[eswatini,country],[et,and],[etc,box],[etcetera,right],[etch,right],[etching,square],[eternal,n],[eternally,n],[eternity,n],[eth,dash],[ethel,person],[ethic,plus],[ethical,tick],[ethically,plus],[ethicist,person],[ethicists,person],[ethico,plus],[ethics,tick],[ethicst,dash],[ethiopia,country],[ethnic,person],[ethnically,person],[ethnicity,plus],[ethnographic,book],[ethnography,book],[etienne,person],[etiological,minus],[etiquette,plus],[etre,equals],[etymological,right],[etymology,square],[eu,country],[euan,person],[eucalyptus,tree],[eugenically,plus],[eukarya,person],[eukaryote,person],[eunice,person],[euro,dollarsymbol],[europe,continent],[european,continent],[eustace,person],[ev,dash],[evacuation,right],[evader,xcorrection],[eval,equals],[evaluability,plus],[evaluate,plus],[evaluated,tick],[evaluates,equals],[evaluating,plus],[evaluation,tick],[evaluations,plus],[evaluative,plus],[evaporated,up],[evaporation,up],[eve,person],[even,two],[evened,square],[evening,square],[evenings,moon],[evenly,line],[event,square],[eventbrite,company],[eventful,plus],[eventide,plus],[events,dot],[eventual,n],[eventually,n],[ever,dash],[everitt,person],[evermore,right],[every,n],[everybody,person],[everyday,square],[everyone,person],[everyones,person],[everything,a],[everyvarcovered,variable],[everyvarmentioned,box],[everywhere,box],[evidence,paper],[evident,tick],[evidential,box],[evie,person],[evil,xcorrection],[evince,plus],[evm,box],[evocative,plus],[evoke,plus],[evoked,plus],[evokes,up],[evoking,plus],[evolution,right],[evolutionary,right],[evolve,right],[evolved,plus],[evolving,right],[evonne,person],[evp,dash],[ew,right],[eway,company],[ex,left],[exacerbate,minus],[exacerbated,minus],[exact,equals],[exactly,equals],[exactness,equals],[exaggerate,plus],[exaggerated,plus],[exaggeration,plus],[exaltate,plus],[exam,paper],[examinable,plus],[examination,paper],[examinationism,eye],[examinations,paper],[examinative,plus],[examine,down],[examined,eye],[examinedness,plus],[examiner,person],[examines,eye],[examining,eye],[example,apple],[examples,apple],[exams,paper],[excalibur,sword],[excavate,box],[excavating,box],[excavation,up],[exceed,plus],[exceeded,plus],[excel,box],[excelled,plus],[excellence,a],[excellences,plus],[excellent,a],[excelsior,dot],[except,xcorrection],[excepted,minus],[exception,xcorrection],[exceptional,plus],[exceptionally,plus],[exceptions,minus],[excerpt,square],[excerpts,paper],[excess,box],[excesses,minus],[excessive,minus],[exchange,right],[exchanged,right],[exchanges,right],[excide,right],[excite,plus],[excited,plus],[excitement,plus],[exciting,plus],[exclaim,square],[exclaimed,plus],[exclamation,exclamationmark],[exclamationmark,],[exclude,minus],[excluded,minus],[excluding,xcorrection],[exclusion,dot],[exclusive,box],[exclusively,plus],[exclusivity,plus],[excrement,ball],[excrete,down],[excretory,down],[excursion,right],[excuse,square],[excuses,minus],[exe,software],[exec,square],[executable,and],[execute,tick],[executecommand,equals],[executed,right],[executes,equals],[executing,and],[execution,dash],[executive,person],[executives,person],[exegeses,book],[exegesiticals,book],[exemplary,plus],[exemplified,plus],[exemplify,plus],[exercise,shoe],[exercised,right],[exercises,paper],[exercising,leg],[exert,right],[exfoliated,flower],[exhale,air],[exhaled,right],[exhaling,right],[exhausted,minus],[exhaustion,minus],[exhaustive,plus],[exhibit,dot],[exhibited,square],[exhibition,square],[exhibitions,square],[exiciting,dash],[exigencies,plus],[exist,box],[existed,plus],[existence,dot],[existences,plus],[existent,box],[existential,box],[existentiell,square],[exister,person],[existing,a],[exists,plus],[exit,left],[exited,up],[exitfail,right],[exiting,right],[exits,right],[exocrine,organ],[exolec,book],[exon,right],[exp,square],[expand,right],[expandable,right],[expanded,tworectangle],[expander,right],[expanding,plus],[expands,box],[expanse,box],[expansion,plus],[expansionism,right],[expansionist,plus],[expansions,right],[expansive,right],[expect,plus],[expectancies,n],[expectancy,n],[expectation,box],[expectations,plus],[expected,box],[expectedness,plus],[expecting,left],[expend,plus],[expenditure,dollarsymbol],[expenses,dollarsymbol],[expensive,dollarsymbol],[experience,apple],[experienceable,plus],[experienced,plus],[experiencers,person],[experiences,box],[experiencing,plus],[experiential,plus],[experiment,tick],[experimental,tick],[experimentation,box],[experimented,plus],[experimenter,person],[experimenting,minus],[experiments,tick],[expert,person],[expertise,plus],[experts,person],[expiration,n],[expire,n],[expired,minus],[expires,n],[expiry,n],[explain,dash],[explained,plus],[explainer,plus],[explainers,plus],[explaining,speechballoon],[explains,plus],[explanation,square],[explanations,square],[explanatory,plus],[explicated,plus],[explicates,plus],[explicating,square],[explicit,plus],[explicitism,plus],[explicitly,plus],[exploit,minus],[exploitation,plus],[exploited,minus],[exploiting,plus],[exploration,right],[explorations,path],[explore,right],[explored,right],[explorer,plus],[explores,plus],[exploring,right],[explosion,up],[explosive,up],[exponent,n],[exponential,box],[exponentially,up],[exponents,n],[export,right],[exported,right],[exporting,right],[exports,right],[expos,paper],[expose,plus],[exposed,plus],[exposes,plus],[exposing,square],[expositio,paper],[exposition,paper],[expositions,paper],[exposure,n],[expounded,plus],[expr,plus],[express,right],[expressed,right],[expresses,square],[expressing,right],[expression,plus],[expressionnotatom,plus],[expressionnotheadache,xcorrection],[expressions,square],[expressive,plus],[expt,paper],[expulsion,xcorrection],[extend,right],[extended,right],[extending,n],[extension,line],[extensions,plus],[extensive,n],[extensively,plus],[extent,dash],[extents,right],[exterior,right],[external,right],[extinct,minus],[extinction,minus],[extol,plus],[extolled,plus],[extr,plus],[extra,plus],[extract,up],[extracted,up],[extraction,up],[extractmodes,up],[extracts,paper],[extracurricular,dot],[extraneous,minus],[extraordinary,plus],[extrapolate,right],[extrapolated,right],[extrapolation,right],[extrarelation,dash],[extras,plus],[extrasarguments,variable],[extraslabels,square],[extrasrelations,dash],[extravagance,minus],[extreme,minus],[extremely,plus],[extrinsic,right],[extroversion,plus],[extruded,right],[exts,right],[exuberant,plus],[exx,variable],[ey,person],[eye,],[eyebrow,],[eyebrows,brow],[eyed,eye],[eyeless,minus],[eyelid,],[eyes,eye],[eyeshadow,square],[eyesight,eye],[ez,variable],[eztalks,company],[ezzx,dash],[ezzxe,dash],[ezzxf,dash],[f,box],[fa,variable],[fab,person],[fabinyi,person],[fabric,],[fabrics,fabric],[fac,box],[face,],[facebook,paper],[faced,face],[faces,face],[facetime,n],[facets,square],[facial,face],[facilitate,plus],[facilitated,plus],[facilitates,plus],[facilitating,plus],[facilitation,plus],[facilitator,person],[facilitators,person],[facilities,building],[facility,room],[facing,right],[facitly,square],[facs,dash],[fact,a],[factor,n],[factored,n],[factorial,up],[factorisation,n],[factorise,square],[factors,dash],[factory,right],[facts,square],[factual,square],[faculties,building],[faculty,person],[fad,minus],[fade,line],[faded,down],[fader,square],[fading,line],[faeces,ball],[fahrenheit,n],[fail,xcorrection],[failed,minus],[failing,minus],[failings,minus],[failover,minus],[fails,minus],[failure,minus],[failures,minus],[faina,person],[faint,minus],[fair,plus],[faire,plus],[fairer,plus],[fairly,plus],[fairness,plus],[fairs,plus],[fairy,],[fait,plus],[faith,plus],[faithfulness,plus],[faiths,plus],[fake,minus],[fall,down],[fallace,dash],[fallacies,minus],[fallacy,minus],[fallen,down],[fallible,minus],[fallin,down],[falling,down],[fallopian,tube],[falls,down],[false,minus],[falsehood,minus],[falsely,minus],[falsified,xcorrection],[fam,person],[fame,plus],[familiar,plus],[familiarise,plus],[familiarised,plus],[families,person],[family,person],[famine,minus],[famous,person],[famously,plus],[famousness,plus],[famousnesses,plus],[fan,person],[fancy,plus],[fandom,company],[fanning,fan],[fans,person],[fantasias,plus],[fantasies,plus],[fantasised,plus],[fantastic,plus],[fantastically,plus],[fantasy,plus],[fao,company],[fapred,square],[faq,paper],[faqs,paper],[far,n],[farce,minus],[farcical,minus],[farewell,hand],[farion,person],[farm,box],[farmer,person],[farmers,person],[farming,apple],[farms,animal],[farrow,pig],[fas,dash],[fascinated,plus],[fascinating,plus],[fascium,box],[fashion,plus],[fashionable,plus],[faso,country],[fast,n],[fasted,zero],[fasten,plus],[fastened,equals],[faster,greaterthan],[fastest,n],[fat,],[fatah,person],[fatal,minus],[fate,minus],[father,person],[fathers,person],[fats,box],[fatty,fat],[fault,minus],[faultless,plus],[faults,minus],[faulty,minus],[fauna,animal],[fauve,plus],[favicon,square],[favorite,plus],[favour,plus],[favourable,plus],[favourably,plus],[favoured,plus],[favouring,plus],[favourite,plus],[favourites,plus],[favouritism,minus],[favours,plus],[fb,paper],[fbc,dash],[fbff,dash],[fbid,dash],[fc,dash],[fcre,right],[fd,dash],[fddb,box],[fdf,dash],[fe,],[fea,plus],[fear,minus],[fearless,plus],[fears,minus],[fearsome,minus],[feasibility,plus],[feasible,plus],[feasibly,plus],[feast,apple],[feasting,apple],[feat,plus],[feather,],[feathers,feather],[featherstone,person],[feature,square],[featured,square],[features,plus],[featurescawmp,square],[featuring,plus],[feb,square],[february,square],[febrvarius,person],[feces,ball],[fed,n],[federal,room],[feds,person],[fee,dollarsign],[feed,apple],[feedback,left],[feeder,down],[feedforward,right],[feeding,apple],[feeds,right],[feel,hand],[feeling,square],[feelings,plus],[feels,plus],[fees,dollarsymbol],[feet,foot],[felicity,person],[felis,person],[felix,person],[fell,down],[feller,person],[fellow,person],[fellows,person],[fellowships,plus],[felp,person],[felt,square],[feltman,person],[female,person],[females,person],[feminine,square],[femininity,person],[feminism,book],[feminist,person],[feministic,person],[feminists,person],[fence,],[ferdinand,person],[fergie,person],[fern,plant],[fernandez,person],[fernando,person],[fernfortuniversity,building],[ferrando,person],[ferrarotti,person],[ferris,wheel],[fertilisation,right],[fertilise,right],[fertilised,plus],[fertiliser,],[fertility,plus],[festiches,plus],[festival,note],[fetch,right],[fetched,box],[fetta,cheese],[feudal,n],[feudalism,n],[fever,minus],[feverishly,plus],[few,n],[fewer,n],[fewest,n],[ff,tick],[fff,dash],[fglasgow,city],[fh,dash],[fi,book],[fiance,person],[fiat,car],[fibonacci,plus],[fibre,],[fibres,box],[fibrosis,minus],[fibs,plus],[fiction,book],[fictional,book],[fiddle,violin],[fiddly,minus],[fidelity,plus],[fie,dash],[fiedler,person],[fiedlers,person],[field,box],[fields,square],[fieldwork,book],[fierce,minus],[fiesole,theatre],[fif,fiverectangle],[fifteen,fifteenrectangle],[fifteenrectangle,],[fifth,fiverectangle],[fifths,fivecrectangle],[fifties,n],[fifty,n],[fiftyastest,tick],[fiftybreasoningspersecond,f],[fig,],[fight,xcorrection],[fighting,minus],[fights,minus],[figuratively,right],[figure,person],[figured,square],[figurehead,person],[figures,number],[figuring,plus],[fiji,country],[file,paper],[filealg,and],[filecontents,paper],[filed,box],[filekeeplacomhits,dot],[filelist,square],[filemaking,paper],[filename,square],[filenames,square],[filenametime,t],[fileout,square],[filer,box],[files,paper],[filesex,right],[filet,paper],[fileticket,square],[filex,paper],[filexx,paper],[filexyz,paper],[filezilla,and],[filho,person],[filing,paper],[filipinos,person],[fill,square],[fillbuf,square],[filled,one],[filler,down],[fillers,box],[filling,box],[fills,down],[film,line],[filmed,box],[filming,box],[films,square],[filosofia,book],[filter,box],[filtered,box],[filtering,square],[filters,software],[filtrate,ball],[fin,],[final,n],[finalchar,square],[finalise,n],[finalised,n],[finalists,person],[finally,n],[finance,dollarsymbol],[finances,dollarsymbol],[financial,dollarsign],[financially,dollarsymbol],[financier,person],[financiers,dollarsymbol],[find,a],[findable,dot],[findall,tick],[findalls,eye],[findargs,variable],[findbest,plus],[finder,person],[finders,person],[finding,person],[findings,square],[findmelody,note],[findnsols,n],[findo,eye],[findprogram,square],[findr,square],[findresul,tick],[findresult,n],[findrhyme,equals],[findrulesflowingtopv,eye],[finds,person],[findsentence,square],[findsols,n],[findtypes,box],[findv,plus],[fine,plus],[finer,greaterthan],[finery,square],[finesse,plus],[finesses,plus],[finger,],[fingered,finger],[fingers,finger],[fingertip,square],[fingertips,square],[finish,n],[finished,tick],[finishes,tick],[finishing,n],[finite,n],[finitely,n],[finitism,n],[finkel,person],[finland,country],[finn,person],[finnish,country],[fire,],[firecracker,box],[fired,plus],[firefighter,person],[fireguard,blanket],[fireman,person],[fireworks,up],[firm,square],[firmament,up],[firmed,up],[firming,plus],[firmly,plus],[firs,dash],[first,one],[firstargs,variable],[firstletter,square],[firstline,line],[firstly,one],[firstname,square],[firststate,n],[firstvar,variable],[firstvarname,square],[fiscal,dollarsymbol],[fischer,person],[fish,],[fisher,person],[fishes,fish],[fiske,person],[fist,],[fit,box],[fitness,plus],[fits,equals],[fitted,down],[fitting,tick],[fitzgerald,person],[fitzgibbon,person],[fitzpatrick,person],[five,fiverectangle],[fivecrectangle,],[fiverectangle,],[fiverr,company],[fix,plus],[fixed,tick],[fixes,plus],[fixing,xcorrection],[fl,variable],[flag,square],[flagdisjunction,or],[flagella,line],[flagellum,line],[flagged,plus],[flags,n],[flamboyant,plus],[flame,],[flamingo,],[flammable,minus],[flapping,up],[flappings,up],[flappy,wing],[flare,light],[flash,box],[flashed,square],[flashing,light],[flask,],[flat,square],[flatten,down],[flattened,plane],[flattening,down],[flaunt,plus],[flavell,person],[flavours,strawberry],[flaw,minus],[flawed,minus],[flawless,plus],[flawlessly,plus],[flaws,minus],[fledged,plus],[flemington,suburb],[flesh,square],[fleshed,plus],[fleshing,up],[flew,right],[flex,dash],[flexes,dash],[flexibilities,plus],[flexibility,plus],[flexible,dash],[flexibly,right],[flexing,right],[flick,right],[flicked,tick],[flicking,tick],[flight,right],[flights,right],[flinders,person],[flip,right],[flipped,mirror],[flipping,right],[flips,mirror],[flipxy,mirror],[flipxygrid,grid],[flittering,minus],[float,one],[floated,up],[floating,up],[floats,up],[flock,duck],[flocks,duck],[flood,water],[floor,square],[floret,flower],[florida,state],[floss,],[flotation,buoy],[flour,ball],[flourish,plus],[flourishing,plus],[flow,line],[flowchart,],[flowed,right],[flower,],[flowers,flower],[flowing,right],[flown,right],[flows,line],[flp,function],[flu,virus],[fluctuations,minus],[fluent,plus],[fluently,tick],[fluffy,down],[fluid,water],[fluidity,right],[fluke,plus],[fluorite,stone],[flush,down],[flushed,down],[flute,note],[fluttering,right],[fly,right],[flyer,person],[flying,right],[flynn,person],[fm,square],[fmap,right],[fmr,country],[fn,function],[fna,right],[fnal,right],[fnalism,dash],[fnism,right],[fns,right],[fo,dash],[focal,eye],[focus,eye],[focused,eye],[focuses,eye],[focusing,eye],[fogs,box],[foisted,minus],[fold,paper],[foldable,right],[folded,down],[folder,paper],[folders,folder],[folding,down],[foldl,right],[foldr,right],[folds,line],[folk,guitar],[folklore,plus],[folks,person],[follow,right],[followed,two],[follower,person],[followers,person],[following,dash],[follows,right],[fond,plus],[fondled,hand],[fondness,plus],[font,a],[fonts,a],[fontspace,company],[food,apple],[foodchemistry,book],[foods,apple],[foodstuffs,apple],[fool,minus],[foot,],[footage,line],[football,],[footer,square],[foothills,hill],[footnote,square],[footnotes,square],[footpath,path],[footprint,],[footprintless,zero],[foottowel,towel],[footy,],[for,dash],[forall,plus],[foramen,organ],[forbidden,minus],[forbidding,xcorrection],[force,right],[forced,right],[forces,n],[forcing,minus],[ford,car],[fore,left],[forearm,forearm],[forearms,forearm],[forecast,right],[forecasts,n],[forefront,zero],[forego,xcorrection],[forehead,],[foreheads,forehead],[foreign,square],[forerunner,left],[foresaw,eye],[foresee,eye],[foreseeable,right],[foreseen,right],[foreshore,square],[forest,tree],[forestry,tree],[forests,tree],[foretold,mouth],[forever,one],[forgasz,person],[forge,down],[forget,minus],[forgetfulness,minus],[forgets,xcorrection],[forgetting,minus],[forging,plus],[forgive,xcorrection],[forgiveness,plus],[forgot,minus],[forgotten,minus],[fork,],[forked,right],[forks,dash],[form,paper],[formal,plus],[formalisation,plus],[formalism,a],[formally,plus],[format,dash],[formation,plus],[formations,plus],[formative,plus],[formatively,plus],[formats,paper],[formatted,square],[formatter,square],[formatting,paper],[formed,plus],[former,minus],[formerly,left],[formidable,minus],[forming,box],[formingness,plus],[formistical,box],[formlength,n],[formr,square],[forms,paper],[formula,plus],[formulae,and],[formulas,and],[formulate,plus],[formulated,plus],[formulation,plus],[fornix,and],[forrester,person],[forster,person],[forte,line],[forth,right],[forthcoming,right],[forthright,plus],[forthrightly,plus],[fortified,plus],[fortnight,square],[fortress,building],[fortuitous,plus],[fortuna,plus],[fortune,dollarsymbol],[fortunes,dollarsymbol],[forty,fortyrectangle],[fortyrectangle,],[forum,building],[forums,paper],[forward,right],[forwarded,right],[forwardness,right],[forwards,right],[fossen,person],[fossey,person],[fossil,],[foster,person],[fostered,plus],[fostering,plus],[fosters,plus],[foucauldian,person],[foucault,person],[fought,xcorrection],[found,plus],[foundation,square],[foundational,down],[foundations,box],[founded,down],[founder,person],[founders,person],[founding,plus],[fountain,],[four,fourrectangle],[fourrectangle,],[fours,shoe],[fourth,fourrectangle],[fox,animal],[foxtel,company],[fp,dash],[fph,right],[fpp,square],[fqmer,dash],[fr,paper],[fractals,square],[fraction,n],[fractional,n],[fractions,n],[fragile,minus],[fragility,minus],[fragment,n],[fragmentation,box],[fragments,square],[fragrance,perfume],[fragranced,perfume],[fragrant,flower],[frailty,minus],[frame,square],[framed,square],[framenumber,n],[frames,square],[framework,box],[frameworks,square],[framing,square],[framings,square],[franca,dash],[france,country],[frances,person],[francesca,person],[franchise,building],[franchised,plus],[francis,person],[francisco,city],[franco,country],[francois,person],[frangipane,flower],[frank,person],[franked,dollarsymbol],[frankenstein,person],[frankfurt,],[frankfurts,frankfurt],[frankie,person],[frankincense,],[française,book],[fraud,minus],[fraudulent,minus],[fraught,minus],[fred,person],[freddi,person],[frederick,person],[fredric,person],[free,a],[freeaccountingsoftware,company],[freebsd,plus],[freed,plus],[freedom,dash],[freefilesync,and],[freeimages,paper],[freelance,plus],[freely,plus],[freeman,person],[freemason,person],[freeness,zero],[freer,plus],[freesias,flower],[freeway,road],[freeze,zero],[freezer,],[freezing,minus],[freight,box],[french,paper],[frenchs,company],[freq,n],[freqs,n],[frequencies,f],[frequency,n],[frequent,f],[frequented,n],[frequently,n],[fresh,plus],[freshly,zero],[freshness,plus],[fret,line],[fretless,zero],[frets,minus],[freud,person],[freudian,person],[freya,person],[fri,square],[friar,person],[friday,square],[fried,oil],[friend,person],[friendlily,plus],[friendliness,dash],[friendlinesses,square],[friendly,plus],[friends,person],[friendship,plus],[friendships,plus],[fries,chip],[frieze,square],[frighten,minus],[frightened,minus],[fringes,square],[frivells,ribbon],[fro,right],[frock,dress],[frog,],[frolicked,plus],[from,dash],[frombae,person],[frombarrabool,dash],[fromglasgow,city],[fromglasgow,right],[fromlang,paper],[front,left],[frontal,left],[frontend,square],[frontier,line],[frontiers,line],[frown,minus],[frowned,minus],[frowning,minus],[froze,zero],[frozen,n],[frugally,plus],[fruit,apple],[fruiterer,person],[fruiting,apple],[fruition,plus],[fruitmonger,person],[fruits,apple],[fruity,apple],[frustrated,minus],[frustrating,minus],[frustration,minus],[frustrations,minus],[frying,pan],[fs,variable],[fsfs,square],[fst,square],[ft,dash],[ftoc,right],[ftp,right],[fu,square],[fudge,],[fuel,],[fuels,plus],[fulcrum,dot],[fulfil,tick],[fulfill,tick],[fulfilled,plus],[fulfilling,plus],[full,one],[fulladjective,plus],[fuller,person],[fullness,box],[fullstop,],[fully,n],[fume,nose],[fun,plus],[funcs,and],[function,a],[functional,square],[functionalise,function],[functionalised,down],[functionalism,function],[functionality,and],[functionally,plus],[functionarguments,square],[functioncalls,square],[functioned,plus],[functioning,plus],[functionname,square],[functionnumber,n],[functionresult,square],[functions,square],[functionymous,plus],[functionyms,dash],[functor,right],[functordis,variable],[functors,f],[fund,dollarsymbol],[fundamental,line],[fundamentalist,down],[fundamentally,down],[fundamentals,line],[funded,dollarsymbol],[funding,dollarsymbol],[fundraising,dollarsymbol],[funds,dollarsymbol],[funeral,n],[fungal,fungus],[fungus,],[funk,note],[funky,note],[funnel,],[funnelable,box],[funnelled,funnel],[funnelling,down],[funnels,funnel],[funnier,plus],[funny,smile],[funtastics,plus],[fur,],[furious,minus],[furniture,],[furrow,box],[furtado,person],[further,dot],[furthered,right],[furthering,right],[furthermore,plus],[furthest,n],[furthestfrommean,dot],[fury,minus],[fusing,equals],[fuss,minus],[fussy,plus],[future,plus],[futurelearn,company],[futures,right],[futuristic,n],[fx,tube],[fxs,square],[fz,variable],[g,box],[ga,dash],[gaant,square],[gabe,person],[gabetarian,dash],[gabon,country],[gabriel,person],[gadamer,person],[gadamerian,person],[gadgets,and],[gaelic,person],[gaffer,person],[gaga,person],[gaiety,plus],[gail,person],[gain,plus],[gained,plus],[gaining,plus],[gains,up],[galactic,box],[galactically,box],[galah,],[galanter,person],[galaxies,star],[galaxy,star],[gall,box],[gallbladder,organ],[galleries,square],[galleriic,plus],[gallipoli,city],[gallstone,minus],[gallstones,minus],[galumphs,plus],[galvanise,plus],[gamba,leg],[gambia,country],[gambling,minus],[game,a],[gameplay,plus],[games,square],[gamification,plus],[gaming,plus],[gamma,square],[gantar,person],[gao,person],[gap,square],[gapless,zero],[gaps,box],[garage,],[garageband,box],[garbage,],[garden,plant],[gardener,person],[gardeners,person],[gardening,plant],[gardens,plant],[gare,person],[garfield,person],[garland,person],[garlanded,flower],[garlard,person],[garlic,],[garment,shirt],[garments,shirt],[garner,person],[gary,person],[garydougsson,person],[gas,box],[gasper,person],[gassed,gas],[gastric,stomach],[gastrointestinal,stomach],[gastronomer,person],[gate,],[gates,person],[gateway,gate],[gather,box],[gathered,person],[gathering,box],[gathers,box],[gaud,apple],[gauge,n],[gauged,tick],[gauging,plus],[gauiea,dash],[gaut,person],[gave,pencilsharpener],[gavin,person],[gawenda,person],[gawk,and],[gay,person],[gayness,plus],[gays,person],[gaze,eye],[gazebo,],[gazebos,gazebo],[gazed,eye],[gazelles,animal],[gb,dash],[gbd,right],[gc,variable],[gcc,software],[gclid,dash],[gcloud,cloud],[gd,variable],[gdp,company],[ge,variable],[gear,n],[geared,plus],[ged,person],[geeds,person],[geeks,person],[geelong,city],[geis,person],[gel,],[gelder,person],[gem,jewel],[gemini,ball],[gems,jewel],[gemstone,],[gen,right],[gender,person],[gendered,person],[genders,person],[gene,n],[genealogy,down],[general,tick],[generalise,plus],[generalised,square],[generalises,plus],[generalist,plus],[generalities,plus],[generality,tworectangle],[generalizability,plus],[generally,one],[generally,square],[generate,plus],[generated,plus],[generatelevels,plus],[generatelyricslistsverse,square],[generatemelody,note],[generatemelodyh,note],[generatemelodym,note],[generaterange,plus],[generates,right],[generati,plus],[generating,right],[generation,square],[generations,person],[generative,plus],[generativeart,plus],[generativity,plus],[generator,right],[generators,and],[generic,one],[generous,plus],[generously,plus],[genes,n],[genesis,zero],[genetastics,plus],[genetic,a],[genetically,dot],[geneticist,person],[genetics,n],[genitals,box],[genitive,square],[genius,person],[genome,line],[genre,book],[genres,box],[gens,dot],[gentile,person],[gentle,plus],[gently,plus],[genuine,plus],[genuinely,plus],[genus,box],[genutils,right],[geocities,company],[geode,box],[geodes,box],[geoff,person],[geographic,country],[geographical,country],[geographies,country],[geography,book],[geolocation,dot],[geomatics,n],[geometers,person],[geometric,box],[geometrical,square],[geometrically,square],[geometry,box],[georg,person],[george,person],[georgia,person],[geraldine,person],[gereffi,person],[germ,],[german,paper],[germany,country],[germinate,seed],[germs,germ],[gerry,person],[gerrymandering,minus],[gertrude,person],[gerund,box],[gerundive,right],[gervais,person],[gestalt,n],[gestaltron,line],[gestate,n],[gestation,n],[gesticulated,plus],[gestures,right],[get,plus],[getchr,a],[getitemn,square],[getline,line],[getnthelem,square],[gets,left],[getting,left],[getty,company],[getv,variable],[getvalue,box],[getvalues,box],[getvar,variable],[gf,variable],[gfc,minus],[gg,right],[ggg,variable],[gggg,variable],[ggs,variable],[ggslrbv,dash],[gh,dash],[ghana,country],[ghc,and],[ghci,and],[ghei,dash],[gherkin,gherkin],[gherkins,gherkin],[ghetto,building],[ghost,person],[ghosts,minus],[giant,],[giants,giant],[gibberish,minus],[gift,box],[gifted,plus],[gifts,box],[giggle,plus],[giggled,person],[giggling,plus],[gill,person],[gillette,company],[gillian,person],[gilligan,person],[ginger,],[gingerly,plus],[ginkgo,plant],[ginseng,plant],[gip,minus],[giraffe,],[giri,person],[girl,person],[girls,person],[gist,left],[gists,square],[git,box],[gita,book],[gitenv,and],[github,book],[githubusercontent,box],[giuca,square],[giuseppes,person],[give,plus],[given,plus],[givenate,zero],[givens,plus],[giver,person],[gives,plus],[giving,plus],[gl,variable],[gla,and],[glacier,snow],[glad,plus],[glade,lawn],[glance,eye],[gland,],[glands,box],[glar,n],[glaring,plus],[glass,],[glasses,],[glaucoma,minus],[gleam,light],[gleaming,light],[gleeson,person],[glen,person],[glenhuntly,suburb],[gliding,right],[glitch,minus],[glittering,photon],[global,world],[globalisation,ball],[globalization,ball],[globalizing,planet],[globalleadershipexperience,plus],[globally,ball],[globals,box],[globe,ball],[glockenspiel,],[glockenspiels,xylophone],[gloria,plus],[gloriae,plus],[glories,plus],[glory,plus],[glossaries,book],[glossary,book],[glove,],[gloves,glove],[glow,light],[glucagon,ball],[glucose,ball],[glue,down],[glued,glue],[gluggy,minus],[glycogen,ball],[glyn,person],[glyphs,square],[gmail,paper],[gnu,software],[go,right],[goal,tick],[goals,n],[goat,],[goats,goat],[goblins,person],[god,person],[godfather,person],[godhead,head],[godly,person],[godmother,person],[godness,plus],[gods,person],[goering,person],[goers,right],[goes,right],[goethe,person],[goffee,person],[gofundme,dollarsymbol],[goggles,],[goglsgqx,dash],[gogu,person],[going,right],[goings,plus],[goji,plant],[gold,box],[goldberg,person],[golden,box],[goldilocks,person],[goldsmith,person],[goldstein,person],[goleman,person],[golf,ball],[gomez,person],[gondola,],[gone,zero],[gong,plus],[good,plus],[goodall,person],[goodbye,n],[gooddamn,dash],[goodman,person],[goodness,plus],[goodnesses,plus],[goodnight,plus],[goods,box],[google,building],[googleapis,box],[googleloc,dash],[googleplay,paper],[googlepreview,square],[googles,dash],[googletagmanager,software],[goonie,person],[goose,],[gooseberry,berry],[gorbachev,person],[gorelik,person],[gorgeous,plus],[gorkhali,person],[gossamer,],[gossip,mouth],[gossipname,square],[gosub,down],[got,left],[goto,right],[gotostates,right],[gotu,plant],[gourd,ball],[goureeve,person],[gov,government],[govender,person],[govern,plus],[governance,plus],[governed,plus],[government,],[governments,person],[governors,person],[govolunteer,website],[gown,],[gp,square],[gprt,dash],[gra,dot],[grabbed,hand],[grabbing,hand],[grabs,hand],[grace,plus],[gracious,plus],[graciously,plus],[grad,person],[grade,a],[gradebook,book],[graded,a],[grades,a],[gradient,n],[gradients,n],[grading,dash],[gradual,line],[gradually,one],[graduate,person],[graduated,paper],[graduates,person],[graduating,tick],[graduation,plus],[graduations,plus],[grafted,up],[graham,person],[grail,cup],[grain,ball],[grainge,person],[grains,],[gram,and],[gramm,and],[grammar,paper],[grammara,square],[grammarform,square],[grammarforms,square],[grammarinterpreter,dash],[grammark,and],[grammarly,tick],[grammarname,square],[grammarrulerest,square],[grammars,dash],[grammatical,dash],[grammatically,dash],[gramophone,],[grams,box],[gramsci,person],[grand,plus],[grande,person],[grandfather,person],[grandiose,plus],[grandma,person],[grandmother,person],[grandparents,person],[grandson,person],[grandviewresearch,company],[granita,],[granite,],[grant,right],[granted,plus],[granting,plus],[grants,dollarsymbol],[granularised,box],[granulated,down],[grape,],[grapefruit,],[graph,square],[graphed,square],[grapher,square],[graphic,square],[graphical,square],[graphically,square],[graphics,square],[graphing,square],[graphs,square],[grapple,hand],[grapples,plus],[gras,person],[grasp,hand],[grasped,hand],[grasps,hand],[grass,square],[grassroots,down],[grassy,square],[grate,square],[grated,down],[grateful,plus],[grater,],[grating,down],[gratitude,plus],[grattan,street],[grave,],[gravedigger,person],[gravel,ball],[graveyards,box],[gravity,n],[gray,person],[great,plus],[greater,greaterthan],[greaterthan,],[greatest,plus],[greatly,plus],[gree,person],[greece,country],[greed,minus],[greedson,person],[greek,person],[greeks,person],[green,square],[greenhouse,building],[greenie,person],[greenland,country],[greenlucian,person],[greens,person],[greensutra,square],[greer,person],[greet,plus],[greeted,plus],[greeter,face],[greeting,square],[greg,person],[gregarious,plus],[gregory,person],[greiner,person],[gremlin,person],[grenada,country],[grenadines,country],[grene,person],[greta,person],[grew,up],[grey,square],[greyhen,duck],[greying,minus],[gribble,person],[grid,],[gridline,line],[gridlines,line],[grids,square],[griegian,person],[grievance,minus],[grievances,xcorrection],[grieve,xcorrection],[griffin,person],[griffith,university],[griffiths,person],[grip,hand],[gripped,hand],[gripping,hand],[grips,hand],[grit,plus],[gritted,plus],[gritty,plus],[groan,minus],[grocery,building],[groove,box],[groovy,plus],[groped,hand],[ground,plane],[groundbreaking,plus],[grounded,down],[grounding,square],[grounds,plus],[groundsman,person],[group,square],[grouped,square],[grouping,square],[groupings,box],[groups,square],[grow,plant],[grower,person],[growing,up],[growling,line],[grown,up],[grows,up],[growth,up],[groysberg,person],[grub,],[grumbles,minus],[gs,dash],[gsbs,plus],[gst,dollarsymbol],[gt,greaterthan],[gtag,square],[gtm,software],[guache,],[guage,square],[guarantee,plus],[guaranteed,plus],[guaranteeing,plus],[guarantees,plus],[guard,person],[guarded,plus],[guardian,person],[guards,person],[guatemala,country],[guava,],[guba,person],[gudmundsdottir,person],[guerillacreative,company],[guernsey,],[guerriero,person],[guess,n],[guessed,plus],[guesses,questionmark],[guessing,n],[guest,person],[guesthouse,building],[guestlist,square],[guests,person],[gui,square],[guidance,plus],[guide,paper],[guided,right],[guidelines,square],[guides,square],[guiding,line],[guilds,box],[guilt,minus],[guiltily,minus],[guilty,minus],[guinea,country],[guirgis,person],[guitar,],[guitarplayer,person],[gulch,down],[gully,person],[gum,box],[gumley,person],[gumnut,],[gums,teeth],[gumtree,tree],[gun,minus],[gunfire,minus],[guns,minus],[gunshot,minus],[gupta,person],[gurgitated,up],[gurol,person],[guru,person],[gurus,person],[gustav,person],[gut,stomach],[guts,stomach],[gutter,],[guttman,person],[guy,person],[guyana,country],[guys,person],[gvc,dash],[gvcc,dash],[gvim,software],[gwfkgclcbgasyhq,dash],[gym,room],[gymansium,room],[gymcana,pony],[gymnasium,building],[gymnast,person],[gyms,weight],[gyrate,right],[gülcan,person],[h,variable],[ha,plus],[haapasalo,person],[habilitate,plus],[habit,plus],[habitable,plus],[habitably,plus],[habits,plus],[hack,down],[hacked,minus],[hacker,person],[hackernoon,dash],[hackers,person],[hackett,person],[hacking,down],[hackman,person],[had,square],[hadj,person],[hadn,xcorrection],[hadron,right],[haemmhorrhoids,minus],[haemorrhoid,minus],[haemorrhoids,minus],[haggedly,minus],[haggish,minus],[hagiography,person],[haha,plus],[hail,ball],[hailey,person],[hair,],[haircut,hair],[hairdresser,person],[hairdressing,scissors],[haired,hair],[hairstyles,hair],[hairstylist,person],[haiti,country],[haitsma,person],[halchitectures,square],[half,box],[halfway,n],[halides,ball],[hall,building],[halls,hall],[hallucinated,box],[hallucination,minus],[hallucinations,minus],[hallucinatory,minus],[hallucinogenic,minus],[hallway,hall],[halo,circle],[halt,box],[halted,xcorrection],[halting,zero],[halved,box],[halves,square],[ham,],[hamburger,],[hamel,person],[hamilton,person],[hamish,person],[hamlet,person],[hammer,],[hammersley,person],[hammock,],[hampstead,city],[hamster,],[hamstring,line],[hand,],[handbook,book],[handed,hand],[handful,box],[handing,hand],[handkerchief,],[handle,],[handled,hand],[handler,hand],[handlers,hand],[handles,handle],[handling,hand],[handmade,box],[hands,hand],[handshake,hand],[handstand,down],[handwriting,square],[handwritten,square],[handy,hand],[hang,person],[hanging,down],[hangs,minus],[hank,person],[hannaford,person],[hannigan,person],[hans,person],[hansard,person],[hansen,person],[hansom,car],[hao,person],[hap,dash],[happelstanded,plus],[happen,tick],[happened,tick],[happening,zero],[happenings,box],[happens,tick],[happier,plus],[happies,plus],[happiest,plus],[happily,plus],[happiness,plus],[happinesses,plus],[happisissiances,plus],[happy,],[happy,plus],[happyface,],[happynices,person],[hapsichords,plus],[harass,minus],[harassment,minus],[harbinger,person],[hard,minus],[hardback,book],[harddiskless,xcorrection],[harder,minus],[hardest,n],[hardgrave,person],[hardily,plus],[hardly,minus],[hardship,minus],[hardware,box],[hardwired,line],[hardy,person],[hargraves,person],[harlen,person],[harlequin,harlequin],[harlequinade,person],[harlequinades,person],[harlequins,harlequin],[harley,person],[harm,minus],[harmed,minus],[harmful,minus],[harming,minus],[harmless,plus],[harmlessly,plus],[harmlessness,plus],[harmonica,],[harmonics,n],[harmonies,note],[harmonious,plus],[harmonised,equals],[harmoniser,box],[harmony,note],[harmonyinstrumentnumber,n],[harmonyinstruments,tube],[harmonyinstrumentslength,n],[harmonypart,note],[harmonyparts,line],[harmonypartslength,n],[harmonyr,plus],[harms,minus],[harness,],[harnesses,right],[harnessing,plus],[harold,person],[harp,],[harper,person],[harpist,person],[harps,harp],[harpsichord,note],[harpsichorders,note],[harpsichords,note],[harraway,person],[harrington,person],[harris,person],[harrison,person],[harry,person],[harsha,person],[hart,person],[harvard,university],[harvest,plant],[harvested,grain],[harvester,up],[has,pencilsharpener],[hash,],[hashtags,square],[haskell,and],[hasn,minus],[hassaan,person],[hasseldine,person],[hat,],[hate,minus],[hated,minus],[hating,minus],[hatred,minus],[hats,hat],[hatted,hat],[haughty,minus],[hauled,up],[have,apple],[haven,home],[haverbanders,person],[havilland,person],[having,hand],[hawke,person],[hawking,person],[hawkins,person],[hawthorn,suburb],[hay,],[hayes,person],[haystack,hay],[hazelnut,nut],[hazen,person],[hazily,box],[hazy,minus],[hbb,dash],[hbr,company],[hc,variable],[hcl,],[hd,box],[hdd,box],[hdmi,square],[hdrdocuments,paper],[he,person],[head,],[headache,minus],[headaches,minus],[headdress,],[headed,right],[headedness,head],[header,square],[headers,square],[heading,square],[headings,square],[headlines,square],[headphones,],[headpiece,],[headroom,box],[heads,dot],[headset,],[headshot,square],[headsofstate,person],[headstrong,minus],[headwind,left],[heal,tick],[healed,plus],[healing,plus],[health,person],[healthand,plus],[healthier,plus],[healthily,plus],[healthiness,plus],[healthy,person],[heap,box],[heapings,ball],[heaps,n],[hear,ear],[heard,ear],[hearing,ear],[heart,],[heartbeat,heart],[hearted,plus],[heartening,plus],[heartland,city],[hearts,heart],[heat,n],[heated,n],[heater,],[heaters,heater],[heathcote,person],[heather,person],[heating,n],[heaven,zero],[heavenly,plus],[heavier,greaterthan],[heavily,n],[heaviness,n],[heavy,n],[hebrew,book],[hecklers,minus],[hecs,dollarsymbol],[hedgehog,],[hedgehogged,plus],[hedonistic,minus],[heel,],[heffalump,pig],[hegel,person],[hegelgreen,paper],[hegelian,person],[hegelpossyllabus,book],[heh,dash],[hei,person],[heidegger,person],[heideggerian,person],[heidi,person],[height,n],[heights,zline],[heiness,person],[heir,person],[heisenberg,zero],[held,hand],[helen,person],[helena,person],[helicopter,],[heliport,square],[helium,],[hell,minus],[hello,hand],[helloa,plus],[helloaa,plus],[helloc,plus],[helloca,plus],[hellocc,plus],[hellocca,plus],[hellod,plus],[hellodc,plus],[hellok,plus],[hellow,plus],[help,square],[helpdesk,desk],[helped,person],[helper,person],[helpers,person],[helpful,plus],[helpfulness,plus],[helpfulnesses,plus],[helping,plus],[helps,plus],[helpt,plus],[helter,n],[hem,line],[hemel,city],[hemisphere,],[hemispheres,hemisphere],[hemmed,left],[hen,duck],[hence,right],[henderson,person],[henle,person],[henry,person],[hens,duck],[henson,person],[heptagon,],[her,person],[herb,plant],[herbal,amount],[herbert,person],[herbology,plant],[herbs,amount],[here,down],[herea,square],[hereb,square],[herec,square],[hered,square],[heritage,square],[hermaphrodites,person],[hermaphroditic,minus],[hermeneutic,dash],[hermeneutical,book],[hermeneutically,right],[hermeneutics,square],[hermia,person],[hernán,person],[hero,person],[heroes,person],[heroic,plus],[herren,person],[herring,fish],[herrings,fish],[hers,person],[herself,person],[hersey,person],[hertz,n],[herzegovina,country],[hesh,person],[heshan,person],[heshe,person],[hesitation,minus],[hesterity,plus],[heterogeneous,notequals],[heterosexual,person],[heuristic,plus],[heuristics,and],[hew,person],[hewso,book],[hex,n],[hexadecimal,n],[hexagon,],[hexagonal,hexagon],[hexagons,hexagon],[hey,one],[hflush,down],[hhh,dash],[hhi,square],[hhii,square],[hi,hand],[hibbins,person],[hibisci,plant],[hibiscus,plant],[hibiscuses,flower],[hiccups,minus],[hickletons,plus],[hid,minus],[hidden,down],[hide,minus],[hides,box],[hiding,box],[hierarchical,dash],[hierarchically,dash],[hierarchies,dash],[hierarchy,dash],[hieroglyph,square],[hieroglyphics,square],[hieroglyphs,square],[high,a],[higher,line],[highest,n],[highlight,light],[highlighted,square],[highlighting,square],[highlights,plus],[highly,plus],[hight,n],[highton,suburb],[highway,road],[highways,road],[hike,right],[hiked,right],[hiking,boot],[hilbert,person],[hill,],[hillary,person],[hillier,person],[hills,hill],[hilsley,person],[him,person],[himlkampf,book],[himself,person],[hinder,minus],[hindered,minus],[hinders,minus],[hindi,language],[hindrances,minus],[hindsight,eye],[hindu,person],[hinduism,book],[hinge,],[hint,square],[hinted,square],[hintinesses,plus],[hints,plus],[hipaa,square],[hippies,person],[hippocampus,],[hippolyte,person],[hips,],[hiptalipuppies,puppy],[hiraffe,giraffe],[hire,dollarsymbol],[hired,plus],[hirer,person],[hires,dollarsymbol],[hiring,plus],[his,person],[hispanic,person],[hisrich,person],[hissed,minus],[hist,paper],[histogram,n],[historian,person],[historians,person],[historic,book],[historical,n],[historically,book],[histories,book],[history,square],[hit,tick],[hitch,box],[hitchens,person],[hither,right],[hithertoness,note],[hitler,person],[hits,note],[hitting,equals],[hive,],[hived,bee],[hjsdfsa,dash],[hk,dash],[hkq,dash],[hlo,dash],[hn,variable],[hnn,variable],[ho,plus],[hoax,minus],[hobbies,plus],[hoboken,person],[hoc,down],[hog,pig],[hoist,up],[hoisted,up],[hoity,plus],[holbrook,person],[hold,hand],[holder,person],[holders,hand],[holding,hand],[holds,hand],[hole,],[holes,circle],[holiday,square],[holidayed,plus],[holidaying,plus],[holidays,square],[holily,plus],[holiness,plus],[holism,plus],[holistic,plus],[holistically,plus],[hollownesses,box],[hollywood,city],[holmes,person],[holocap,],[holodeck,square],[hologram,box],[holograms,right],[hologranates,pomegranate],[holographic,box],[holy,paper],[home,house],[homebrew,software],[homeless,person],[homelessness,minus],[homemade,plus],[homeostasis,line],[homepage,paper],[homes,house],[homework,paper],[homicide,minus],[hominems,person],[homo,person],[homoeroticness,plus],[homographs,equals],[homophobe,minus],[homophones,equals],[homophonous,equals],[homosexual,person],[homosexuality,equals],[homosexuals,person],[honduras,country],[hone,square],[honed,plus],[honest,plus],[honestly,plus],[honesty,plus],[honey,],[honeycomb,hexagon],[hong,city],[honing,square],[honked,horn],[honking,horn],[honky,ball],[honorary,plus],[honorific,square],[honour,a],[honourable,a],[honourably,plus],[honoured,a],[honouringly,plus],[honours,book],[hood,person],[hook,],[hooked,hook],[hooks,hook],[hooky,hook],[hoop,],[hoops,hoop],[hop,up],[hope,plus],[hoped,plus],[hopeful,plus],[hopefully,a],[hopefully,plus],[hopes,plus],[hopetoun,city],[hoping,box],[hopkins,person],[hopping,right],[hops,right],[horace,person],[horizon,line],[horizons,horizon],[horizontal,line],[horizontally,line],[hormone,ball],[hormones,box],[horn,],[horoscope,moon],[horoscopes,plus],[horrific,minus],[horse,],[horseman,person],[horsemen,person],[horses,horse],[horticulture,plant],[hose,tube],[hosing,tube],[hospital,building],[hospitalisation,plus],[hospitalisations,plus],[hospitality,plus],[hospitals,building],[host,computer],[hosted,plus],[hostel,building],[hostility,minus],[hosting,box],[hot,n],[hotel,building],[hotline,n],[hotspots,square],[hotter,up],[houghton,person],[hour,square],[hourglass,],[hourlinesses,n],[hourly,n],[hours,square],[hoursprayer,square],[hourvaluea,variable],[hourvalueb,variable],[house,],[housed,house],[household,house],[housekeeper,person],[housekeeping,plus],[houses,house],[housing,house],[hove,person],[hover,up],[hovercar,],[how,dash],[howard,person],[howardfinestudio,company],[howdy,plus],[howe,person],[howell,company],[howells,company],[however,minus],[hows,person],[howzat,ball],[hpc,computer],[hq,plus],[hr,book],[href,dash],[hs,variable],[hsc,paper],[ht,dash],[html,paper],[htmlpreview,square],[http,tick],[httpd,software],[https,tick],[hu,person],[hub,box],[hubpages,company],[hubspot,company],[huckleys,building],[hudders,company],[hudson,company],[hug,],[huge,n],[huggable,person],[hugged,hug],[hugging,person],[hughes,person],[hugo,person],[huh,minus],[hull,box],[hulpke,person],[hum,square],[human,person],[humane,plus],[humanism,book],[humanist,person],[humanistic,person],[humanists,person],[humanitarian,person],[humanitas,book],[humanities,building],[humanity,person],[humankind,person],[humanness,plus],[humanoid,person],[humans,person],[humble,plus],[humbled,plus],[humbleness,plus],[humbling,plus],[humiliate,minus],[humility,plus],[humming,lip],[hummus,],[humorous,plus],[humour,plus],[humourous,plus],[humphrey,person],[humphries,person],[humpy,],[hun,person],[hundred,square],[hundreds,threerectangle],[hung,down],[hungary,country],[hunger,apple],[hungry,tongue],[hunt,eye],[hunted,dot],[huprich,person],[hurdle,box],[hurdles,hurdle],[hurt,minus],[hurting,minus],[hurtled,right],[hurtness,minus],[hurts,minus],[husband,person],[husbands,person],[hush,zero],[huskies,dog],[husky,dog],[husserl,person],[huston,person],[hut,building],[hutchings,person],[hutchinson,person],[hvuetwgillii,dash],[hw,paper],[hyam,person],[hybrid,two],[hybrids,plus],[hydrangeas,flower],[hydrant,water],[hydrated,water],[hydrochloric,hcl],[hydrogen,],[hydroponics,water],[hygiene,plus],[hygienic,plus],[hyle,box],[hymns,book],[hype,minus],[hyper,right],[hyperbole,up],[hypercard,software],[hyperlinks,right],[hyperlog,square],[hypermarket,dollarsymbol],[hypersensitive,minus],[hypervacillations,right],[hyphen,],[hypochondria,minus],[hypotenuse,line],[hypothalamus,box],[hypotheses,tick],[hypothesis,one],[hypothesise,one],[hypothesised,square],[hypothetical,square],[hysteresis,dash],[hysterically,plus],[hz,n],[i,person],[ia,plus],[iable,dash],[iacit,right],[iaclcbgasyhq,dash],[ian,person],[iata,book],[iax,dash],[ibid,book],[ibidem,right],[ibis,],[ibises,ibis],[ibisworld,company],[ibooks,and],[ice,person],[icecream,],[iceland,country],[icicle,],[icing,],[icon,square],[iconism,square],[icons,square],[icsamined,plus],[ict,computer],[icy,ice],[id,square],[idahobit,plus],[idea,a],[ideal,plus],[idealism,circle],[idealist,person],[ideality,plus],[ideally,plus],[ideas,tworectangle],[ideation,square],[idemic,dash],[identical,equals],[identicalness,equals],[identifiable,plus],[identification,square],[identified,eye],[identifier,n],[identifiers,square],[identifies,tick],[identify,a],[identifying,n],[identifywriters,person],[identigenitrix,plus],[identities,person],[identity,square],[ideological,plus],[ideologies,book],[ideology,square],[idiom,square],[idiosyncrasies,minus],[idiot,person],[idiots,person],[idle,zero],[ids,square],[idyll,flower],[ie,person],[ieee,organisation],[if,dash],[ifcn,dash],[ifind,plus],[iframe,square],[ifs,right],[igf,dash],[iglesias,person],[ignite,plus],[ignition,right],[ignoramus,person],[ignorance,minus],[ignore,xcorrection],[ignored,xcorrection],[ignores,xcorrection],[ignoring,xcorrection],[igo,company],[igual,dash],[ih,dash],[iherb,company],[ii,tworectangle],[iie,computer],[iii,dash],[iio,dash],[ij,square],[ikheloa,person],[ikinger,person],[il,square],[ilham,person],[ill,minus],[illegal,minus],[illegally,minus],[illicit,minus],[illinois,city],[illness,minus],[illnesses,minus],[illocutionary,plus],[illuminated,light],[illuminati,person],[illusion,plus],[illusory,minus],[illustator,software],[illustrate,square],[illustrated,square],[illustrates,square],[illustration,square],[illustrations,square],[illustrative,square],[illustrator,software],[illustrious,plus],[ilo,plus],[ilpi,right],[ilya,person],[im,company],[imac,computer],[image,square],[imagen,dash],[imageric,square],[imagery,square],[images,square],[imaginable,square],[imaginary,plus],[imagination,plus],[imaginative,plus],[imagine,square],[imagined,plus],[imagines,plus],[imaging,square],[imagining,square],[imaiangreen,person],[imbalance,minus],[imbalances,minus],[imc,company],[img,square],[imitate,right],[imitated,right],[imitates,right],[imitating,right],[imitation,box],[imm,plus],[immature,minus],[immaturity,minus],[immediate,zero],[immediately,one],[immediatism,plus],[immersed,down],[immersing,down],[immersion,down],[immigration,right],[imminent,zero],[imminently,n],[immoral,minus],[immorality,minus],[immortal,n],[immortalise,plus],[immortality,n],[immortals,person],[immune,plus],[immunity,plus],[immunogymnastics,plus],[immunology,book],[immutability,dot],[immutable,right],[immutably,right],[imogen,person],[impact,tick],[impacted,tick],[impactful,a],[impacts,plus],[impair,minus],[impaired,minus],[impairment,minus],[impairments,minus],[impart,square],[impartial,plus],[impeccable,plus],[impede,minus],[impediment,minus],[impediments,minus],[impending,zero],[impenetrable,xcorrection],[imperative,right],[imperatives,right],[imperceptible,dot],[imperceptibly,zero],[imperfect,minus],[imperfections,minus],[imperial,person],[imperialism,country],[impersonal,minus],[impetus,plus],[impinge,xcorrection],[implant,box],[implanted,down],[implants,box],[implement,plus],[implementation,plus],[implementations,and],[implemented,right],[implementing,and],[implements,right],[implicated,right],[implication,right],[implications,right],[implicit,down],[implicitly,box],[implied,right],[implies,right],[imply,right],[implying,right],[import,right],[importance,plus],[important,plus],[importantly,plus],[imported,down],[importing,down],[imports,right],[imposed,minus],[impossible,minus],[impractical,xcorrection],[impress,plus],[impressed,plus],[impression,square],[impressionably,plus],[impressionism,square],[impressive,plus],[improper,minus],[improperly,minus],[impropriety,minus],[improve,plus],[improved,up],[improvement,plus],[improvements,plus],[improves,plus],[improving,plus],[impulse,tick],[impurities,minus],[impurity,minus],[in,square],[inability,minus],[inaccessible,minus],[inaction,minus],[inactions,minus],[inactivity,minus],[inadequacies,minus],[inadequate,minus],[inadvertently,minus],[inanimate,zero],[inappropriate,minus],[inbound,right],[inbox,box],[inbuilt,box],[inc,plus],[incan,person],[incapable,minus],[incapacitated,minus],[incentive,plus],[incentives,plus],[inception,zero],[inch,n],[inches,n],[incidence,n],[incident,dot],[incidental,n],[incidents,box],[incision,knife],[incite,mouth],[incl,box],[inclination,plus],[incline,n],[inclish,suitcase],[include,plus],[included,plus],[includes,left],[including,plus],[inclusion,box],[inclusions,dash],[inclusive,box],[inclusively,plus],[inclusiveness,plus],[incognito,dash],[income,dollarsign],[incoming,right],[incompatibility,xcorrection],[incompatible,xcorrection],[incomplete,minus],[incompletely,minus],[incongruous,minus],[inconsequential,plus],[inconsistencies,minus],[inconsistent,minus],[inconvenience,minus],[incorporate,down],[incorporated,right],[incorporating,dot],[incorporation,plus],[incorrect,xcorrection],[incorrectly,minus],[increase,plus],[increased,plus],[increaser,plus],[increases,up],[increasing,plus],[increasingly,up],[incredible,plus],[increment,plus],[incremental,plus],[incrementally,right],[incubator,heater],[ind,up],[indeed,plus],[indefensible,minus],[indefinitely,n],[indefinitive,minus],[indefinitively,xcorrection],[indent,dash],[indentation,right],[indented,right],[indenting,right],[independence,plus],[independent,one],[independently,plus],[index,dash],[indexanimhighered,paper],[indexdownload,paper],[indexed,n],[indexga,dash],[indexing,n],[indexped,paper],[indextexttobr,paper],[india,country],[indian,person],[indiana,person],[indic,plus],[indicate,a],[indicated,tick],[indicates,up],[indicating,dash],[indicative,plus],[indicator,n],[indicators,i],[indices,n],[indie,plus],[indieradioshow,note],[indigeneity,person],[indigenous,person],[indirect,dot],[indirectly,right],[indispensable,plus],[indiv,person],[individual,person],[individualism,person],[individualistic,person],[individuality,plus],[individually,person],[individualness,person],[individuals,person],[individuation,plus],[indonesia,country],[indonesian,book],[indoor,building],[indoors,building],[indubitably,plus],[induc,up],[induced,right],[induct,plus],[induction,plus],[inductive,up],[inductively,up],[inductor,right],[indulge,plus],[indulging,plus],[industrial,company],[industrialisation,planet],[industries,company],[industry,building],[ineachiated,box],[ineffective,minus],[inefficient,minus],[inepretaer,dash],[inept,minus],[inequalities,greaterthan],[inequality,notequals],[inequity,minus],[inert,zero],[inessive,box],[inevitable,plus],[inexorable,plus],[inexpensive,n],[inexpensively,plus],[inexplicable,minus],[inexplicably,minus],[inextricably,plus],[infact,plus],[infallibility,plus],[infallible,plus],[infamous,minus],[infant,baby],[infants,baby],[infatuated,plus],[infatuations,plus],[infect,minus],[infected,minus],[infection,virus],[infections,minus],[infer,right],[inference,right],[inferenced,right],[inferences,right],[inferential,right],[inferred,right],[infers,right],[infertile,minus],[infiltrate,right],[infiltrating,xcorrection],[infinary,n],[infinite,circle],[infinitely,n],[infinitesimally,n],[infinitive,right],[infinitum,n],[infinity,n],[infix,plus],[inflammation,minus],[inflated,ball],[inflating,up],[inflation,n],[inflection,up],[inflow,right],[influence,person],[influenced,right],[influencers,person],[influences,right],[influencing,plus],[influential,plus],[influenza,virus],[influx,right],[info,paper],[infopreneur,person],[infopreneurs,person],[infopreneursummit,square],[inform,mouth],[informal,plus],[informally,minus],[information,paper],[informational,square],[informative,square],[informed,plus],[informer,person],[informing,plus],[informs,square],[infra,n],[infrastructure,box],[infringement,minus],[infringers,minus],[infringing,minus],[infuse,down],[infused,plus],[infusion,down],[ing,right],[ingenue,plus],[ingenuity,plus],[ingest,stomach],[inglish,hinge],[ingredient,apple],[ingredients,apple],[ingrid,person],[ingrown,minus],[ingénue,dash],[inhabit,down],[inhabitant,person],[inhabitants,person],[inhabiting,plus],[inhalation,lung],[inhale,air],[inhaled,air],[inherent,plus],[inherentana,plus],[inherently,plus],[inherit,left],[inherited,left],[inhibit,minus],[inhibiting,xcorrection],[inhibits,xcorrection],[inhumane,minus],[init,one],[initial,one],[initialisation,zero],[initialise,zero],[initialised,zero],[initialising,plus],[initialization,zero],[initially,one],[initialphilosophy,square],[initials,square],[initiate,one],[initiated,one],[initiates,one],[initiating,zero],[initiation,zero],[initiative,right],[initiatives,plus],[initiator,right],[initpredicate,square],[inject,syringe],[injecting,syringe],[injunctive,box],[injuries,minus],[injury,minus],[injustice,minus],[injustices,minus],[ink,],[inkey,square],[inks,ink],[inky,],[inkyclassic,inky],[inline,dash],[inmates,person],[inmodes,right],[innate,plus],[inner,box],[innocence,plus],[innocent,plus],[innovate,plus],[innovates,plus],[innovating,plus],[innovation,a],[innovations,plus],[innovative,plus],[innovators,plus],[inopportune,minus],[inorder,up],[input,variable],[inputasantecedant,n],[inputfile,paper],[inputs,n],[inputted,n],[inputting,right],[inputtype,square],[inputvalues,n],[inputvarlist,twobox],[inputvars,variable],[inputvarsa,variable],[inquests,line],[inquired,square],[inquirer,person],[inquiries,square],[inquiry,square],[inroads,right],[ins,box],[inscription,pen],[insect,],[insects,insect],[insensitive,minus],[insentient,minus],[inseparability,equals],[inseparable,equals],[insert,box],[insertdoublebackslashbeforequote,box],[inserted,xline],[inserting,down],[insertion,box],[insertions,box],[inserts,box],[inside,box],[insider,person],[insight,eye],[insightcrime,company],[insightful,plus],[insights,plus],[insomnia,minus],[inspect,eye],[inspected,eye],[inspecting,eye],[inspection,eye],[inspector,person],[inspiration,plus],[inspirational,plus],[inspirations,plus],[inspire,right],[inspired,tick],[inspires,plus],[inspiring,plus],[inst,note],[instability,minus],[instagram,company],[install,down],[installation,down],[installations,computer],[installed,down],[installer,down],[installers,down],[installing,down],[installs,right],[instalments,dollarsymbol],[instance,n],[instances,n],[instant,zero],[instantaneously,zero],[instantiate,plus],[instantiated,plus],[instantiation,tick],[instantly,one],[instated,plus],[instead,one],[instil,plus],[instincts,plus],[institute,company],[instituted,plus],[instituting,plus],[institution,organisation],[institutional,building],[institutionalised,plus],[institutions,building],[instr,note],[instruct,tick],[instructed,paper],[instructing,square],[instruction,square],[instructional,square],[instructions,paper],[instructor,person],[instructors,person],[instructs,paper],[instructure,square],[instrument,pen],[instrumental,guitar],[instrumentals,note],[instrumentation,note],[instrumentlist,square],[instrumentnumber,n],[instruments,violin],[insufficient,xcorrection],[insufficiently,xcorrection],[insulator,box],[insulin,box],[insult,minus],[insulted,minus],[insurance,paper],[int,n],[intact,line],[intactify,plus],[intake,right],[intangible,square],[integer,n],[integers,n],[integrate,one],[integrated,plus],[integrates,box],[integrating,down],[integration,box],[integrations,box],[integrative,dash],[integrator,equals],[integrity,plus],[integument,right],[integumentary,skin],[intell,plus],[intellect,plus],[intellectual,plus],[intellectually,brain],[intellectuals,person],[intelligence,plus],[intelligences,square],[intelligent,plus],[intelligently,and],[intend,dash],[intendant,person],[intended,right],[intends,right],[intense,n],[intensify,plus],[intensity,n],[intensive,a],[intent,plus],[intention,right],[intentional,plus],[intentions,square],[inter,dash],[interact,plus],[interacted,dash],[interacting,tick],[interaction,plus],[interactions,right],[interactive,square],[interactively,plus],[interacts,right],[intercept,c],[intercepted,equals],[intercepting,box],[intercepts,n],[interchange,right],[interchangeable,box],[interchangeably,right],[interchanged,right],[interchanges,right],[intercommunicated,right],[interconnect,right],[interconnectable,right],[interconnected,right],[interconnectedness,plus],[interconnection,right],[interconnections,right],[intercourse,square],[interdependence,plus],[interdependent,right],[interdisciplinary,tworectangle],[interest,plus],[interested,plus],[interesting,tick],[interestingengineering,company],[interestingly,plus],[interestingness,plus],[interests,square],[interface,square],[interfaced,square],[interfaces,square],[interfacing,equals],[interference,minus],[intergalactic,right],[intergalactically,dot],[intergenre,right],[interim,n],[interior,room],[interjected,mouth],[interleaved,line],[interline,square],[interludes,line],[intermediate,box],[intermingled,right],[intermittent,n],[intermittently,dot],[intermix,box],[intern,person],[internal,square],[internalised,box],[internally,box],[international,planet],[internationalisation,ball],[internationalised,square],[internationally,ball],[internet,book],[internetics,company],[internship,paper],[interobject,right],[interp,and],[interpersonal,person],[interplanetary,planet],[interplay,right],[interpolate,right],[interpolating,right],[interpolation,right],[interpred,square],[interpret,person],[interpretable,plus],[interpretation,paper],[interpretations,plus],[interpretative,plus],[interpretbody,square],[interpretbodylp,square],[interpreted,dash],[interpreter,person],[interpreters,square],[interpreting,right],[interpretpart,dash],[interprets,dash],[interpretstatement,dash],[interpretstatementlp,right],[interps,equals],[interquartile,minus],[interrelate,right],[interrelated,right],[interrelatedness,dash],[interrelation,dash],[interrelations,right],[interrelationship,right],[interrelationships,right],[interrogate,xcorrection],[interrogated,square],[interrupt,box],[interrupted,minus],[interrupting,box],[interruption,minus],[interruptions,minus],[intersect,box],[intersected,box],[intersecting,box],[intersection,and],[intersectional,box],[intersectionality,box],[intersections,box],[intersex,two],[interspecies,dash],[interspersed,right],[intersplicings,plus],[interstate,right],[interstellar,ball],[interstellarphone,right],[interstitial,box],[interstitium,box],[intersubjectively,plus],[intersubjectivity,right],[intertextual,right],[intertextualise,right],[intertextualised,right],[intertextuality,box],[intertwine,two],[intertwined,line],[intertwining,right],[intertwiningly,right],[interval,minus],[intervals,minus],[intervene,xcorrection],[intervention,box],[interventions,xcorrection],[interview,dash],[interviewed,person],[interviewer,person],[interviewers,person],[interviewing,square],[interviews,person],[interweaved,right],[interweaving,right],[intestinal,tube],[intestine,],[intestines,],[intimacy,equals],[intimate,equals],[intimating,plus],[intimation,plus],[intmath,equals],[into,square],[intolerance,xcorrection],[intoxicated,minus],[intoxicating,minus],[intra,right],[intranet,square],[intransitive,dot],[intrepid,plus],[intricate,square],[intrigued,plus],[intriguing,plus],[intrinsic,box],[intro,square],[introduce,dash],[introduced,one],[introduces,one],[introducing,dash],[introduction,square],[introductions,square],[introductory,one],[introns,right],[introversion,plus],[introvert,square],[introverted,minus],[introverts,square],[intructions,paper],[intrusion,minus],[ints,n],[intset,n],[intuition,plus],[intuitive,plus],[intuitively,plus],[intuitiveness,plus],[intuitivity,plus],[invalid,minus],[invalidates,xcorrection],[invariant,equals],[invasive,minus],[invasively,minus],[invasiveness,minus],[invent,box],[invented,box],[inventing,box],[invention,and],[inventions,and],[inventive,and],[inventors,person],[inventory,box],[invents,plus],[inverse,right],[inversely,right],[inversion,box],[inversions,left],[invert,right],[inverted,right],[inverter,x],[invertible,left],[inverting,right],[inverts,right],[invest,dollarsymbol],[invested,dollarsymbol],[investigate,plus],[investigated,eye],[investigates,eye],[investigating,eye],[investigation,tick],[investigations,book],[investing,dollarsymbol],[investism,dollarsymbol],[investment,n],[investments,dollarsymbol],[investor,person],[investors,person],[invests,dollarsymbol],[invigilated,plus],[invincibility,plus],[invincible,plus],[invisible,square],[invisibles,zero],[invisibly,zero],[invitation,paper],[invitations,square],[invite,left],[invited,plus],[invites,right],[inviting,left],[invitralised,plus],[invoke,plus],[invoked,box],[invokes,plus],[invoking,plus],[involuntarily,minus],[involuntary,zero],[involutional,equals],[involve,left],[involved,tick],[involvement,plus],[involves,left],[involving,plus],[inwards,right],[io,right],[iodine,ball],[ioi,dash],[ion,ball],[ioo,dash],[ios,square],[ip,n],[ipad,square],[iphone,],[iphones,iphone],[ipn,n],[iq,a],[iqr,minus],[iqrexcel,box],[iran,country],[iranian,person],[iraq,country],[ireland,country],[irigaray,person],[iris,circle],[irish,person],[irjci,dash],[iron,],[ironed,iron],[ironic,right],[ironically,plus],[ironing,down],[ironism,plus],[ironisms,up],[irony,right],[irrational,minus],[irrationality,minus],[irrazionali,minus],[irregular,plus],[irrel,minus],[irrelevant,minus],[irresponsibility,minus],[irreversible,minus],[irritable,minus],[irritating,minus],[irst,dash],[irwin,person],[is,equals],[isaac,person],[isbn,n],[iscomparison,equals],[iscomplex,plus],[iscomplicated,plus],[isdigit,n],[isempty,box],[iser,plus],[ishq,person],[isinfixof,box],[isla,square],[islam,religion],[islamic,person],[island,],[islands,island],[islist,square],[ism,box],[isn,minus],[iso,paper],[isolate,box],[isolated,box],[isolation,one],[isop,equals],[isoperator,equals],[isplus,plus],[israel,country],[israeli,country],[isreview,book],[iss,book],[isset,equals],[isspace,square],[issue,dash],[issued,plus],[issues,dash],[istituto,building],[isval,equals],[isvalempty,n],[isvalstr,threebox],[isvalstrempty,tworectangle],[isvalstrorundef,box],[isvar,equals],[it,down],[it,up],[italian,book],[italic,line],[italicised,square],[italics,square],[italy,country],[itch,minus],[itchiness,minus],[item,n],[itema,n],[itema,square],[itemid,n],[itemised,box],[itemlabels,square],[itemname,square],[itemnumber,n],[items,n],[itemsa,n],[itemsa,square],[iterate,n],[iterated,n],[iteration,n],[iterations,n],[iterative,n],[iterativedeepeningdepth,variable],[ith,dash],[itin,right],[itinerary,square],[itness,plus],[its,up],[itself,up],[itunes,software],[iup,book],[iv,fourrectangle],[ivci,line],[ivf,right],[ivison,person],[ivle,square],[ivn,variable],[ivns,variable],[ivo,person],[ivoire,country],[ivory,],[iwda,dash],[ixamine,plus],[ixx,n],[izcoatl,person],[izzimokays,plus],[j,],[jack,person],[jackall,person],[jackdaw,bird],[jacket,],[jackman,person],[jackova,person],[jackson,person],[jacob,person],[jacqueline,person],[jacques,person],[jag,person],[jagged,minus],[jail,building],[jailed,xcorrection],[jailings,xcorrection],[jairo,person],[jakat,person],[jake,person],[jam,],[jamaica,country],[james,person],[jameson,person],[jamesroyalmelbournehospital,person],[jamie,person],[jan,person],[jane,person],[janette,person],[jangle,plus],[january,square],[japan,country],[japanese,book],[japonica,flower],[jar,],[jarful,jar],[jargon,square],[jarrah,person],[jarret,person],[jarvis,person],[jase,person],[jaskula,person],[jasmine,person],[jason,person],[jasp,person],[java,and],[javascript,square],[jaw,],[jay,person],[jaynes,person],[jazz,note],[jazzed,note],[jb,dash],[jc,variable],[jcep,company],[jcm,dash],[je,person],[jealous,minus],[jed,person],[jeffrey,person],[jeffs,person],[jekyll,person],[jellioes,lolly],[jelly,],[jeloquated,plus],[jelucian,person],[jennifer,person],[jenny,person],[jensen,person],[jeopardy,minus],[jepsen,person],[jeremy,person],[jerked,right],[jerome,person],[jerry,person],[jersey,dot],[jess,person],[jesse,person],[jessica,person],[jest,plus],[jester,person],[jesuit,person],[jesus,person],[jet,plane],[jetde,dash],[jets,jet],[jettilise,xcorrection],[jewel,],[jewels,jewel],[jewish,person],[jews,person],[jezebel,person],[jf,dash],[jhrktec,dash],[jian,ball],[jig,square],[jiggled,up],[jiggling,up],[jigsaw,square],[jill,person],[jillian,person],[jilted,minus],[jim,person],[jimbo,person],[jimenez,person],[jimmy,person],[jimoh,person],[jing,person],[jingles,note],[jirga,person],[jit,box],[jitterbug,bug],[jive,note],[jives,note],[jl,variable],[jmir,dash],[jms,dash],[jn,dash],[jo,person],[joan,person],[job,person],[jobmedicine,plus],[jobs,person],[joe,person],[joel,person],[joensuu,dash],[joey,person],[jog,right],[jogged,right],[jogging,right],[john,person],[johnson,person],[join,tick],[joined,plus],[joiner,plus],[joining,tworectangle],[joins,box],[joint,box],[joints,dot],[jointure,equals],[joke,plus],[joked,plus],[jokers,person],[jokes,plus],[jokester,person],[joking,plus],[jolt,xcorrection],[jompelise,dash],[jonason,person],[jonathan,person],[jones,person],[jong,person],[jonno,person],[jonny,person],[jonquil,flower],[joon,person],[jordan,person],[jose,person],[joseph,person],[josh,person],[joshii,person],[jost,person],[jostle,minus],[josé,person],[journal,book],[journalcode,n],[journalism,paper],[journalist,person],[journals,book],[journey,path],[journeyed,right],[journeys,right],[jovial,plus],[joy,plus],[joyful,plus],[joyfully,plus],[joyously,plus],[joysticks,rod],[jp,dash],[jpeg,square],[jpg,square],[jquery,plus],[jr,dash],[js,square],[jsbasic,and],[json,dash],[jt,dash],[jtgz,dash],[jube,],[jubilacious,plus],[jubilant,plus],[jubilantly,plus],[judge,person],[judged,plus],[judgement,plus],[judgements,tick],[judges,person],[judging,plus],[judgment,],[judgmentally,plus],[judgments,square],[judy,person],[jug,],[jughead,person],[juice,],[juiced,apple],[juices,],[juicily,juice],[juicing,apple],[juicy,water],[jul,square],[julia,person],[julian,person],[julie,person],[juliet,person],[july,square],[julz,person],[jump,up],[jumped,right],[jumper,],[jumping,up],[jumps,up],[jun,dash],[junction,equals],[june,square],[jungian,person],[jungle,tree],[juni,person],[junior,down],[juniper,],[jupiter,planet],[jupyter,software],[jurisdiction,square],[jury,person],[just,one],[justice,plus],[justices,person],[justifiable,plus],[justification,plus],[justified,plus],[justify,right],[justifying,plus],[justin,person],[justly,plus],[juvenile,person],[juxtaposing,square],[jvcf,dash],[jx,square],[jyfz,dash],[jyotish,plus],[k,variable],[ka,n],[kadenze,company],[kadyrov,person],[kagan,person],[kakkonen,person],[kaleidoscope,],[kalff,person],[kalimba,box],[kamahen,person],[kamil,person],[kanai,person],[kangaroo,],[kant,person],[kantian,person],[karagoz,person],[karamazov,person],[kardinia,dot],[karen,person],[karena,person],[karl,person],[karlsson,person],[karma,plus],[karp,person],[karsten,person],[kastaniotis,person],[kat,person],[kataria,person],[kate,person],[katerelos,person],[katherine,person],[kathleea,person],[kathleen,person],[kathrin,person],[kathryn,person],[kathy,person],[katie,person],[katy,person],[katz,person],[kaufmann,person],[kavussanu,person],[kazakhstan,country],[kb,box],[kdp,software],[keats,person],[keep,one],[keeper,person],[keeping,box],[keeps,right],[keiko,person],[keith,person],[kelly,person],[kelsey,person],[kelson,person],[ken,person],[kennedy,person],[kenny,person],[kenya,country],[kenzhaliyev,person],[kept,plus],[ker,plus],[keras,and],[kernel,and],[kernie,right],[kerry,person],[kettle,],[kevin,person],[key,],[keyboard,],[keyboards,keyboard],[keyhole,],[keypad,box],[keypress,box],[keypresses,box],[keys,key],[keysort,right],[keystroke,square],[keystrokes,square],[keyvalue,n],[keyword,square],[keywords,square],[kfc,company],[kg,dot],[khamenei,person],[khan,person],[khurram,person],[khz,f],[kick,foot],[kickboard,],[kicked,foot],[kicking,leg],[kid,child],[kidding,plus],[kidman,person],[kidney,],[kidneys,kidney],[kids,child],[kie,dash],[kilda,person],[kill,minus],[killed,minus],[killer,person],[killers,person],[killing,minus],[kim,person],[kimberley,person],[kinaesthetic,hand],[kind,variable],[kinder,plus],[kindergarten,building],[kindle,product],[kindling,stick],[kindly,plus],[kindness,plus],[kinds,box],[kinesthetic,right],[kinetic,right],[king,person],[kingdom,person],[kingdoms,person],[kinglish,paper],[kings,person],[kinin,right],[kip,person],[kiribati,country],[kirsten,person],[kirsty,person],[kiss,plus],[kissed,mouth],[kissing,mouth],[kit,box],[kitchen,person],[kitching,person],[kite,],[kitt,person],[kitten,],[kitts,country],[kiwi,],[kizlik,person],[kjmdxpeaw,dash],[kkft,dash],[kl,square],[klaussinani,person],[klein,person],[klenowski,person],[km,plus],[kmlf,building],[knaves,person],[knee,],[knees,knee],[knelt,down],[knew,tick],[knickerbocker,plus],[knife,],[knight,person],[knights,person],[knit,right],[knitting,fabric],[knived,knife],[knn,n],[knns,equals],[knoch,person],[knock,equals],[knocked,right],[knocking,equals],[knockout,right],[knot,right],[knots,dot],[know,person],[knowing,tick],[knowingly,plus],[knowledge,book],[knowledgeable,plus],[known,plus],[knowness,plus],[knownness,plus],[knowns,plus],[knows,plus],[ko,person],[kobylarz,person],[koch,person],[kodály,person],[kohlberg,person],[kola,plant],[kolaci,person],[kolmogorov,person],[kolt,person],[kompozer,pen],[kong,city],[konstantatos,person],[kookaburra,bird],[korea,country],[korean,country],[korevaar,person],[kost,person],[kostakidis,person],[koto,box],[kpi,plus],[kpis,tick],[kr,square],[krezi,person],[kripke,person],[krishna,person],[kritikos,person],[kronberg,person],[kteily,person],[kumar,person],[kundalini,dot],[kunzite,stone],[kurt,person],[kuwait,country],[kvale,person],[kw,square],[kwlk,dash],[kyhmsopfy,dash],[kyrgyzstan,country],[l,variable],[la,building],[lab,room],[label,square],[labelall,square],[labeled,square],[labeling,square],[labelled,square],[labelling,square],[labels,square],[lability,minus],[labor,room],[laboratories,room],[laboratory,room],[laborious,dash],[laboriously,minus],[labors,plus],[labour,hand],[labourer,person],[labrador,dog],[labs,room],[laced,right],[laces,shoelaces],[lachlan,person],[lachy,person],[lacing,right],[lack,minus],[lacked,minus],[lacking,minus],[lacom,paper],[lacomfile,square],[lacrosse,ball],[lactic,box],[lactose,],[ladbury,person],[ladder,],[ladders,ladder],[laden,down],[ladies,person],[lady,person],[lag,n],[lagging,minus],[lah,dot],[lai,person],[laid,down],[laissez,plus],[lake,water],[lakeside,right],[lama,person],[lamb,person],[lambda,square],[lambropoulos,person],[lamp,light],[lan,square],[lancefield,person],[land,],[landed,down],[landing,square],[landmarks,dot],[lands,square],[landslide,down],[lane,],[lanes,lane],[lang,paper],[langprolog,and],[langs,paper],[language,book],[languageprolog,and],[languages,book],[lanka,country],[lanolin,],[lanyard,paper],[lanzer,person],[laos,country],[laoshi,person],[laozi,person],[lap,box],[lapel,],[lapels,lapel],[lapis,],[lapping,water],[laptop,],[lareau,person],[large,n],[largely,plus],[largenesses,plus],[larger,greaterthan],[largest,n],[larrikin,person],[larrikinism,plus],[larry,person],[laryngitis,minus],[larynx,box],[las,note],[lasagne,],[lascelles,right],[lasso,],[lassoed,lassoo],[lassoo,],[last,n],[lastchar,square],[lastcharisaid,square],[lastcharpartnersaid,square],[lastcstrings,variable],[lasted,n],[lasting,plus],[lastline,line],[lastly,n],[lastname,square],[lastperson,person],[lastrule,square],[lasts,n],[lastsyllable,square],[lat,dash],[latch,equals],[late,minus],[latency,n],[later,two],[lateral,right],[latest,n],[latex,square],[lather,person],[latin,book],[latitude,n],[latter,two],[latvia,country],[lau,person],[laugh,plus],[laughed,plus],[laughing,plus],[laughter,a],[launch,up],[launched,up],[launches,up],[launching,plus],[launchpad,and],[laundry,water],[laura,person],[laurel,flower],[laurels,flower],[lavender,],[law,square],[lawful,square],[lawfully,plus],[lawn,],[lawrence,person],[laws,and],[lawsuit,book],[lawyer,person],[lawyers,person],[lay,down],[layer,box],[layered,box],[layering,line],[layers,box],[laying,box],[layout,paper],[lays,down],[lazuli,],[lazy,minus],[lb,dash],[lc,v],[lcms,and],[lcritique,variable],[lcs,variable],[lctd,square],[lctda,variable],[ldmg,person],[le,dash],[lead,plus],[leader,person],[leadermode,right],[leaders,person],[leadership,person],[leading,one],[leads,right],[leaf,],[leaflet,paper],[league,dash],[leagues,dash],[leah,person],[lean,line],[leaning,down],[leanne,person],[leant,arm],[leap,up],[leaped,right],[leaper,person],[leaps,right],[leard,person],[learn,tick],[learned,plus],[learner,person],[learners,person],[learning,book],[learnmeditationnow,line],[learns,plus],[learnt,plus],[learntd,square],[learntm,square],[learnty,square],[lease,dollarsymbol],[leash,],[least,n],[leather,box],[leave,right],[leaves,tick],[leaving,right],[lebanon,country],[lec,mouth],[lechte,person],[lecs,book],[lectern,],[lects,book],[lecture,paper],[lectured,book],[lecturer,person],[lecturers,person],[lectures,paper],[lecturing,mouth],[led,right],[leder,person],[ledge,box],[ledger,book],[ledwidge,person],[lee,person],[leece,dash],[leeway,right],[left,],[leftbracket,],[leftmost,left],[leftover,n],[leftovers,box],[leg,line],[legacy,paper],[legal,square],[legalities,book],[legally,plus],[legible,square],[legislating,plus],[legislation,square],[legislative,book],[legitimate,plus],[legs,leg],[leh,dash],[leianne,person],[leila,person],[leisure,plus],[lejos,dash],[lem,variable],[lemanis,person],[lemon,],[lemonade,],[len,n],[lend,hand],[lending,right],[lends,plus],[length,twobox],[lengthed,n],[lengthened,right],[lengthmeditatorsanddoctors,n],[lengthphil,n],[lengths,n],[lengtht,variable],[lengthways,right],[lengthwise,line],[lengthy,n],[lenient,plus],[lenin,person],[lens,],[lenses,lens],[lent,right],[lentil,],[leo,person],[leon,person],[leonard,person],[leonardo,person],[leonardodavinci,duck],[leone,country],[leorke,person],[leprosy,xcorrection],[ler,square],[les,person],[leslie,person],[lesotho,country],[less,minus],[lessened,down],[lessening,down],[lesser,down],[lesson,paper],[lessons,square],[lessthan,],[leste,country],[let,equals],[lets,dash],[letter,paper],[lettera,square],[letterbox,],[letterc,variable],[lettering,square],[letters,paper],[letting,plus],[lettuce,],[lettuces,lettuce],[leu,variable],[leukaemia,minus],[lev,dash],[level,square],[levelled,n],[levels,tworectangle],[lever,rod],[leverage,right],[leveraged,plus],[leveraging,plus],[levi,person],[levinas,person],[levine,person],[levinthal,person],[levitate,up],[levity,minus],[levy,person],[lewin,person],[lewis,person],[lex,square],[lexicon,square],[lexicool,dash],[ley,variable],[leye,person],[lf,square],[lff,right],[lfl,dash],[lg,person],[lgalgs,box],[lgbtiq,person],[lgbtiqa,person],[lgbtiqas,person],[lgbtqi,person],[lgbtqia,person],[lgreen,person],[lgtext,box],[li,person],[liabilities,minus],[liability,minus],[liable,minus],[liaise,plus],[liaison,person],[liaisons,person],[lib,book],[libby,person],[libdyld,book],[libedit,pen],[liberal,plus],[liberalism,book],[liberality,plus],[liberally,plus],[liberation,plus],[liberia,country],[libexec,book],[librarian,person],[librarians,person],[libraries,book],[library,book],[libs,book],[libswipl,book],[libsystem,book],[libya,country],[licence,square],[licences,square],[license,paper],[licensed,paper],[licenses,paper],[licensing,square],[liceo,person],[lick,tongue],[licked,tongue],[licking,tongue],[licks,tongue],[licky,tongue],[licorice,],[liculia,plus],[lid,],[lie,minus],[liechtenstein,country],[lied,minus],[liegle,person],[lien,person],[lies,minus],[lieutenant,person],[liew,person],[life,person],[lifeless,minus],[lifeline,line],[lifelong,n],[lifelongness,plus],[lifespan,n],[lifespans,line],[lifestyle,dot],[lifetime,line],[lifetimes,line],[lift,up],[lifted,up],[lifter,up],[lifting,up],[lifts,up],[ligaments,right],[light,line],[lighted,dot],[lighter,n],[lightest,n],[lighthouse,],[lighting,light],[lightly,n],[lightness,n],[lightning,down],[lights,light],[likable,plus],[like,plus],[liked,plus],[likelihood,plus],[likely,plus],[likened,plus],[likeness,plus],[likenesses,plus],[likes,plus],[likewise,plus],[liking,plus],[lilibet,person],[lilo,],[lilting,up],[lily,flower],[lim,square],[limahl,person],[limbered,plus],[limbs,arm],[limit,n],[limitation,right],[limitations,minus],[limited,one],[limiter,n],[limiting,n],[limits,n],[limousine,],[limreached,n],[lin,person],[lincoln,person],[lindy,person],[line,],[lineage,line],[linear,line],[lineareqn,equals],[linearity,right],[linearly,line],[lined,plane],[linen,fabric],[liner,box],[lines,line],[lineup,line],[ling,person],[lingard,person],[lingua,paper],[linguistic,paper],[linguistically,paper],[linguistics,paper],[lining,box],[link,dash],[linkclick,right],[linked,dash],[linkedin,company],[linker,right],[linking,right],[links,dash],[linn,person],[lino,],[linode,dash],[linux,operatingsystem],[lion,],[lioness,lion],[lions,lion],[lip,mouth],[lipid,fat],[lipids,ball],[lipinit,zero],[lips,n],[lipstick,],[lipv,tick],[liquefied,water],[liquid,],[liquids,liquid],[lisa,person],[lisp,minus],[list,tworectangle],[lista,variable],[listb,variable],[listc,variable],[listd,variable],[listed,square],[listen,ear],[listenable,note],[listened,ear],[listener,person],[listeners,person],[listening,ear],[lister,person],[listhead,square],[listing,paper],[listings,square],[listitemnumber,n],[listlessness,minus],[listof,square],[listoflists,variable],[listoutputs,square],[listprolog,software],[listprologinterpreter,equals],[listrecursion,circle],[listrest,square],[lists,tworectangle],[listsorvars,or],[lit,light],[literacy,a],[literally,equals],[literariness,book],[literary,book],[literature,book],[lithium,],[lithuania,country],[lithuanian,book],[litigation,xcorrection],[litre,n],[litres,n],[little,n],[liturgical,book],[liu,person],[liv,organisation],[live,person],[lived,plus],[livelihood,plus],[livelihoods,plus],[lively,plus],[liver,],[lives,line],[living,plus],[livn,variable],[lizard,],[ll,right],[llb,paper],[llc,company],[lld,variable],[llen,variable],[llist,square],[llistitem,square],[llm,variable],[llms,and],[lloyd,person],[llvm,and],[lly,variable],[lm,person],[lmedic,book],[lms,square],[lmy,company],[ln,variable],[lns,variable],[lo,dash],[load,box],[loaded,up],[loading,up],[loads,up],[loadt,up],[loaf,],[loan,dollarsymbol],[loans,dollarsymbol],[loathe,minus],[lobbying,plus],[lobe,brain],[lobes,ball],[lobster,],[loc,dot],[local,one],[locale,square],[localhost,computer],[locally,suburb],[locals,person],[locate,dot],[located,dot],[locating,dot],[location,dot],[locations,dot],[locative,square],[lock,],[locked,equals],[lockerbie,city],[locking,equals],[locs,n],[locsin,dash],[locus,n],[lodge,house],[lodgment,right],[loeb,person],[log,],[logarithm,square],[logarithmic,square],[logged,paper],[logging,tick],[logic,and],[logical,and],[logicalconjunction,and],[logicaldisjunction,or],[logically,and],[logicalnot,xcorrection],[logicise,and],[logicism,and],[logico,and],[logics,and],[logicus,book],[login,square],[logins,square],[logistics,dash],[logo,square],[logos,square],[logout,down],[logowriter,and],[logs,log],[loiterer,person],[lolled,tongue],[lollies,lolly],[lolling,tongue],[lolliop,],[lollipop,],[lolly,],[london,city],[lone,square],[lonely,minus],[long,line],[longed,plus],[longer,greaterthan],[longest,n],[longestprefix,square],[longevities,n],[longevity,n],[longing,plus],[longingly,plus],[longitude,n],[longitudinal,line],[longness,n],[longtoshortform,right],[longue,person],[longueur,n],[look,eye],[lookahead,right],[lookalike,plus],[looked,eye],[looking,eye],[lookout,eye],[looks,eye],[lookup,eye],[loop,circle],[loopback,left],[looped,circle],[loophole,hole],[looping,circle],[loops,circle],[loose,minus],[loosely,plus],[loosened,minus],[looseness,plus],[loosening,right],[lopes,person],[lord,person],[lords,person],[lorelle,person],[loren,person],[lorian,house],[lorikeet,],[lorna,person],[lorraine,person],[lorry,truck],[los,city],[losada,person],[lose,minus],[losers,person],[loses,minus],[losing,minus],[loss,minus],[losses,minus],[lost,minus],[lot,n],[lote,book],[loted,paper],[lots,n],[lotus,flower],[loud,n],[louder,greaterthan],[loudest,n],[louis,person],[louisa,person],[louise,person],[louisegreen,person],[lounge,sofa],[love,heart],[loved,heart],[loveliana,person],[lovely,plus],[lover,person],[lovers,person],[loves,plus],[loving,heart],[lovingkindness,plus],[lovingly,heart],[lovingtude,plus],[low,n],[lower,square],[lowera,a],[lowerb,b],[lowerc,c],[lowercase,square],[lowerd,d],[lowere,e],[lowered,down],[lowerf,f],[lowerg,g],[lowerh,h],[loweri,i],[lowering,down],[lowerj,j],[lowerk,k],[lowerl,l],[lowerm,m],[lowern,n],[lowero,o],[lowerp,p],[lowerq,q],[lowerr,r],[lowers,s],[lowert,t],[loweru,u],[lowerv,v],[lowerw,w],[lowerx,x],[lowery,y],[lowerz,z],[lowest,n],[lowliest,down],[loyal,person],[loyalties,plus],[loyalty,tick],[lozenge,],[lp,variable],[lpcawmp,and],[lpcl,square],[lpconverter,right],[lpd,variable],[lpi,square],[lpiv,and],[lpiverify,tick],[lpm,variable],[lpo,building],[lpp,variable],[lppm,plus],[lpredstestdel,dash],[lpv,tick],[lpverify,plus],[lpy,variable],[lr,square],[lrjj,dash],[ls,variable],[lss,variable],[lst,line],[lstm,and],[lstms,right],[lt,lessthan],[ltbranch,line],[ltd,n],[lth,l],[ltleaf,dash],[ltree,dash],[ltrees,dash],[lu,person],[lub,person],[lubricant,],[lubricated,oil],[lubricating,lubricant],[luc,person],[luca,person],[lucan,person],[lucca,city],[luce,light],[lucia,country],[lucian,person],[lucianacademy,person],[lucianacademyapis,software],[luciancicd,right],[luciandmgreen,person],[luciangreen,person],[luciangreenfringe,person],[luciangreenmusic,note],[luciangreensphilosophyapril,box],[luciangreensphilosophyaugust,box],[luciangreensphilosophydecember,book],[luciangreensphilosophyfebruary,folder],[luciangreensphilosophyjanuary,paper],[luciangreensphilosophyjune,book],[luciangreensphilosophymarch,box],[luciangreensphilosophymay,box],[luciangreensphilosophynotebooks,book],[luciangreensphilosophynovember,paper],[luciangreensphilosophyoctober,box],[luciangreensphilosophyseptember,box],[lucianic,person],[lucianiccommentasacelebrityreport,paper],[lucianiccomputationalenglishreport,paper],[lucianicdaoistheadachemedicinetexttobr,paper],[lucianicmedicinesuccessfulconceptionandpreventmiscarriage,paper],[lucianicmeditation,square],[lucianicmeditationapps,software],[lucianicpedagogyanarchyquiz,paper],[lucianicpedagogycreateandhelpapedagoguereport,paper],[lucianicpedagogylecturerreport,paper],[lucianicpedagogyrecordingsreport,paper],[lucianictexttobr,paper],[lucianism,book],[lucianmantrapureform,square],[lucianmantrasunsafety,square],[lucianos,and],[lucianpedia,paper],[lucianphilosopher,person],[lucianpl,right],[lucians,person],[luciansair,computer],[lucianshand,hand],[lucianshandbitmap,dot],[lucianshd,box],[lucianspedagogy,book],[luciansphilosophy,square],[lucid,plus],[lucien,person],[luck,plus],[luckier,plus],[luckies,plus],[luckily,plus],[lucky,plus],[lucy,person],[lud,variable],[ludo,],[ludocytes,cell],[ludwig,person],[luggage,bag],[lugoondo,plus],[luke,person],[lukewarm,n],[lulang,plus],[lullaby,note],[lulu,person],[lum,variable],[lump,],[lumps,box],[luna,moon],[lunar,moon],[lunch,apple],[lunches,apple],[lunchtime,apple],[lung,],[lungfuls,lung],[lunging,right],[lungs,lung],[lur,dash],[lurking,minus],[lush,water],[lust,dash],[lustful,plus],[lustrous,plus],[lute,],[lutephonics,note],[luu,variable],[luxembourg,country],[luxury,plus],[luy,variable],[luís,person],[ly,square],[lycra,],[lyft,company],[lying,minus],[lymph,],[lymphatic,lymph],[lyn,person],[lynch,person],[lynxlet,and],[lyons,person],[lyotard,],[lyre,],[lyric,square],[lyrics,square],[lyricsa,square],[lyricsv,square],[lysander,person],[lyzeme,right],[m,box],[ma,dash],[maak,person],[maas,person],[mable,person],[mac,box],[macadamia,nut],[macbook,],[macca,person],[macedonia,country],[macfarlane,person],[mach,person],[machete,],[machiavelli,person],[machiavellian,person],[machiavellianism,minus],[machina,box],[machinations,right],[machine,box],[machinery,and],[machines,and],[macintosh,computer],[macmillan,company],[macos,box],[macpath,square],[macquarie,university],[macqueen,person],[macrae,person],[macro,n],[macrocombos,box],[macroeconomics,dollarsymbol],[macs,computer],[macvim,box],[mad,minus],[madagascar,country],[madam,person],[madang,person],[madcatsound,building],[made,box],[madeleine,person],[madeness,box],[madeup,plus],[madness,minus],[madonna,person],[madrid,city],[maestro,person],[magazine,],[magazines,book],[magda,person],[maggot,],[magic,star],[magical,plus],[magicians,person],[magister,person],[magistero,person],[magistri,person],[magna,n],[magnesium,ball],[magnet,],[magnetic,right],[magnetosphere,ball],[magnificent,plus],[magnifying,multiplication],[magnitude,n],[magnum,plus],[magpie,bird],[magulous,plus],[magut,person],[maharishi,person],[maharishisutra,square],[mahasti,person],[maher,person],[mahoganies,],[mahogany,wood],[maid,person],[mail,paper],[mailbox,box],[mailer,right],[mailing,paper],[mailto,paper],[main,one],[mainloop,circle],[mainly,one],[mainness,plus],[mainrole,person],[mainstream,plus],[maintain,dash],[maintained,plus],[maintainer,person],[maintaining,dash],[maintains,tick],[maintenance,right],[maize,plant],[major,happyface],[majoring,plus],[majority,n],[majorly,plus],[majors,square],[make,box],[makebasecase,square],[makecode,and],[makename,square],[makenames,square],[maker,person],[makerandomlist,square],[makerid,n],[makers,person],[makes,hand],[making,box],[mal,person],[maladministration,minus],[malaecotopics,plus],[malaria,minus],[malatesta,person],[malawi,country],[malaysia,country],[malaysian,person],[malcolm,person],[malcontents,minus],[maldives,country],[male,person],[malebranches,person],[maleficence,minus],[males,person],[malfunction,minus],[malfunctioned,minus],[malfunctioning,minus],[malfunctions,minus],[malhesian,person],[mali,country],[malibu,city],[mallet,rod],[malloc,box],[malloy,person],[malnourishment,minus],[malta,country],[malterud,person],[maltodextrin,ball],[malus,apple],[malvern,suburb],[malware,minus],[mambo,square],[mamet,person],[mammary,breast],[man,person],[manage,plus],[manageable,plus],[managed,plus],[management,plus],[manager,person],[managerial,person],[managers,person],[manages,plus],[managing,plus],[manahimhorisit,plus],[manaia,person],[mandarin,],[mandatory,plus],[mandy,person],[mangelsdorf,person],[mangione,person],[mango,],[manifest,square],[manifestation,plus],[manifested,plus],[manifestfile,square],[manifesting,tick],[manifesto,book],[manifests,plus],[manipulate,hand],[manipulated,hand],[manipulates,right],[manipulating,minus],[manipulation,right],[mannequin,],[manner,plus],[mannerisms,right],[manners,plus],[manny,person],[mantainers,person],[mantel,box],[mantelpiece,],[mantelpieces,mantelpiece],[mantissa,n],[mantle,square],[mantra,a],[mantras,square],[manual,book],[manually,hand],[manufacture,box],[manufactured,box],[manufacturer,person],[manufacturers,person],[manufacturing,box],[manup,person],[manuscript,paper],[manuscripts,paper],[manwarring,person],[many,n],[map,square],[maple,tree],[maplist,tworectangle],[maplists,right],[mapm,right],[mapped,map],[mapping,square],[maps,square],[mar,and],[maracas,],[marachusanchuchay,plus],[maraded,plus],[maranatha,square],[marble,ball],[marbles,ball],[marc,person],[marca,person],[march,person],[marched,right],[marchers,right],[marching,right],[mardi,person],[maremma,dog],[margarine,],[margin,line],[marginalised,minus],[margins,n],[maria,person],[mariam,person],[marie,person],[marimba,],[marina,person],[marine,water],[marino,country],[mario,person],[marion,person],[marital,right],[mark,lowera],[markdown,paper],[marked,tick],[markedly,plus],[marker,plus],[marker,square],[markers,square],[market,dollarsymbol],[marketed,square],[marketer,person],[marketers,person],[marketing,dollarsymbol],[marketplace,building],[markets,dollarsymbol],[marking,square],[markle,person],[marks,a],[markup,square],[marlebong,city],[marmalade,],[maroon,person],[marquee,],[marriage,two],[marriages,dash],[married,plus],[marrion,person],[marrow,box],[marry,plus],[marrying,right],[mars,planet],[marshall,person],[marshalling,right],[marshmallow,],[marson,person],[martha,person],[martin,person],[martino,person],[martorana,person],[marx,person],[marxian,person],[marxism,book],[marxist,person],[marxs,person],[mary,person],[marzipan,],[masculine,square],[masculinities,book],[masculinity,person],[mashed,down],[mask,],[masking,mask],[masks,mask],[maslow,person],[mason,person],[masonry,organisation],[mass,n],[massage,hand],[massaged,hand],[massaging,hand],[masse,person],[masses,person],[massive,n],[master,person],[mastered,n],[masterer,n],[mastering,n],[masterpiece,square],[masters,person],[mastery,plus],[mat,],[mataura,person],[match,equals],[matched,equals],[matches,equals],[matching,equals],[matchingness,equals],[mate,person],[material,box],[materialisable,plus],[materialisation,plus],[materialise,box],[materialised,box],[materialiser,plus],[materialisers,plus],[materialising,plus],[materialism,box],[materialistic,box],[materials,box],[materna,person],[maternity,baby],[math,plus],[mathematical,plus],[mathematically,equals],[mathematician,person],[mathematicians,person],[mathematics,multiply],[mathison,person],[mathjeopardy,plus],[maths,plus],[mathsisfun,equals],[mathworks,plus],[matics,up],[matilda,person],[matlabcentral,plus],[matriarchs,person],[matrices,n],[matrix,grid],[matt,person],[matter,box],[mattered,plus],[mattering,plus],[matters,plus],[matthew,person],[mattress,],[mature,n],[maturity,n],[mauboy,person],[maude,person],[maunsang,person],[maura,person],[maurice,person],[mauritania,country],[mauritius,country],[mawk,person],[max,n],[maxclauses,variable],[maxdepth,n],[maximal,plus],[maximally,a],[maxime,person],[maximise,plus],[maximised,plus],[maximising,plus],[maximum,n],[maxlength,n],[maxn,n],[maxpredicates,variable],[maxs,n],[maxterms,variable],[maxwell,person],[may,dash],[maya,country],[maybe,zero],[maybeapply,plus],[mayeroff,person],[mayfair,robot],[mayhem,minus],[mayonnaise,],[maypole,],[maze,],[mazes,box],[mb,square],[mba,paper],[mbarelation,dash],[mbas,paper],[mbc,dash],[mbti,n],[mc,person],[mcall,dash],[mcawp,and],[mccall,person],[mccallum,person],[mccarthy,person],[mcclure,person],[mccutcheon,person],[mcdermott,person],[mcdonalds,company],[mcewan,person],[mcgrath,person],[mcintyre,person],[mckelvey,person],[mckinsey,person],[mclean,person],[mclellan,person],[mcnally,person],[mcnamara,person],[mcowan,person],[mcpherson,person],[mcq,square],[mcqs,square],[md,person],[mdb,plus],[me,person],[mea,down],[meaf,dash],[meal,apple],[meals,carrot],[mean,dash],[meandered,right],[meaning,apple],[meaningful,plus],[meaningfulness,plus],[meaningless,minus],[meanings,dash],[meanjin,book],[means,dash],[meant,tick],[meantime,line],[meantness,plus],[measurable,n],[measure,n],[measured,n],[measurement,n],[measurements,n],[measures,plus],[measuring,n],[measuringly,n],[meat,minus],[meath,person],[meats,meat],[mechanic,person],[mechanical,right],[mechanically,right],[mechanics,right],[mechanism,right],[mechanisms,right],[med,plus],[medal,],[medi,plus],[media,square],[median,two],[mediated,plus],[mediating,plus],[mediation,plus],[medibank,company],[medic,book],[medical,plus],[medically,book],[medicare,company],[medication,],[medications,switch],[medicinal,tablet],[medicine,paper],[medicinenoreplace,plus],[medicines,box],[medieval,book],[medit,line],[meditate,tick],[meditated,meditator],[meditates,dot],[meditating,meditator],[meditation,meditator],[meditational,plus],[meditationally,mat],[meditationincreasedbrainpotential,up],[meditationindicatordecreasedstress,down],[meditationindicatorincreasedbloodflow,up],[meditationindicatorlowerriskofcancerandotherdiseasesinworkersandbroadcasters,down],[meditationnoreplace,dot],[meditations,square],[meditationteachersutra,square],[meditative,plus],[meditatively,plus],[meditator,person],[meditators,person],[meditatorsanddoctors,person],[mediterranean,person],[meditnoreplace,right],[medits,person],[medium,box],[medtech,company],[meet,dash],[meeting,dash],[meetings,dash],[meets,dash],[meetup,company],[meg,person],[megalopolises,city],[megan,person],[megapixels,square],[megascreendom,plus],[meghan,person],[mei,person],[mein,person],[meinong,person],[meisner,person],[mel,city],[melancholia,minus],[melancholy,minus],[melanie,person],[melb,city],[melbourne,city],[melchior,],[melinda,person],[melissa,person],[mellitus,minus],[mellow,plus],[melodic,note],[melodies,note],[melody,note],[melodyharmony,note],[melodyinstrumentnumber,n],[melodyinstruments,tube],[melodyinstrumentslength,n],[melodypart,note],[melodyparts,line],[melodypartslength,n],[melon,],[melt,down],[melted,down],[melting,minus],[melts,down],[mem,up],[member,person],[membera,box],[memberchk,box],[memberlp,box],[memberprogram,box],[memberr,tworectangle],[members,person],[membership,paper],[memberships,folder],[membrane,box],[meme,square],[memes,square],[memo,paper],[memorable,n],[memories,box],[memorisation,square],[memorise,tick],[memorised,plus],[memorises,square],[memorising,down],[memory,box],[memphis,city],[men,person],[mena,company],[menace,minus],[menacing,minus],[mend,plus],[mene,plus],[meniscus,n],[meniscuses,meniscus],[menken,person],[menkoff,person],[meno,person],[mens,person],[mensicus,line],[menstrual,blood],[mental,brain],[mentally,brain],[mentee,person],[mentees,person],[mention,dash],[mentioned,dash],[mentioning,square],[mentions,mouth],[mentor,person],[mentored,plus],[mentoring,plus],[mentors,person],[menu,square],[menulog,company],[menus,square],[meontological,box],[meontology,box],[meoworld,sphere],[merch,product],[merchandise,box],[merchant,person],[merchantability,dollarsymbol],[merchantid,dash],[merchants,person],[mercurially,mercury],[mercury,],[mercy,plus],[mere,plus],[merely,plus],[merge,one],[merged,right],[mergedtree,tree],[merger,box],[mergers,one],[merges,box],[mergesort,up],[mergetexttobrdict,threerectangle],[merging,right],[meringue,],[meristem,line],[merit,plus],[merited,plus],[meritocracy,plus],[meritocratic,plus],[merleau,person],[merman,person],[meronym,box],[meronymic,equals],[meronymnal,box],[meronyms,box],[merrington,person],[merror,xcorrection],[mes,dash],[mesentery,organ],[mesh,square],[mesmerized,plus],[mess,minus],[message,square],[messager,square],[messages,square],[messaging,square],[messences,ball],[messenger,right],[messing,minus],[messy,minus],[met,dash],[meta,square],[metabolic,right],[metabolise,down],[metabolism,right],[metabolites,ball],[metacognition,circle],[metacognitively,plus],[metadata,square],[metal,],[metallic,square],[metals,metal],[metamucil,plant],[metaphilosophy,book],[metaphor,apple],[metaphorical,box],[metaphorically,right],[metaphorist,person],[metaphors,square],[metaphysical,plus],[metaphysically,box],[metaphysician,person],[metaphysics,dot],[metaprogramming,square],[meter,one],[metered,line],[metering,n],[meters,n],[method,plus],[methodical,plus],[methodically,plus],[methodological,right],[methodologies,right],[methodology,square],[methods,dash],[methuselah,person],[meticulous,plus],[meticulously,plus],[metodologici,plus],[metre,line],[metres,square],[metric,n],[metrics,n],[metrolyrics,site],[mexception,dash],[mexican,country],[mexico,country],[mexit,zero],[mfail,xcorrection],[mfalse,xcorrection],[mfile,paper],[mg,n],[mgrammar,right],[mgs,school],[mhealth,company],[mhr,person],[mhu,dash],[mi,minus],[miami,city],[mic,microphone],[michael,person],[michaelreturnedfromthailand,person],[michaels,person],[michel,person],[michelle,person],[michigan,city],[mick,person],[micky,person],[micro,n],[microbiology,book],[microchip,and],[microchips,and],[microcircuit,and],[microcircuits,and],[microcred,paper],[microeconomics,dollarsymbol],[microlevel,down],[micromanagement,down],[micromentor,company],[micronesia,country],[microphone,],[microprocessor,and],[microprocessors,and],[microscope,],[microsoft,building],[mid,note],[midday,n],[middle,two],[middles,n],[midgley,person],[midi,note],[midiutils,right],[midlying,dot],[midnight,zero],[midpoint,dot],[mids,note],[midsummer,n],[midway,n],[mifflin,person],[might,dash],[migraines,minus],[migrant,person],[migrate,right],[migrated,right],[migrating,right],[migration,right],[mike,person],[mil,n],[mild,plus],[milder,n],[mildly,plus],[mile,n],[milestone,box],[milestones,dot],[milieu,box],[military,minus],[milk,],[milked,milk],[milking,milk],[milkmaid,person],[milks,milk],[milkshake,milk],[milkshakes,cup],[milky,milk],[millar,person],[millenia,line],[millennia,line],[millennials,person],[miller,person],[millinery,hat],[million,line],[millionaire,person],[millions,n],[millipede,],[millswyn,path],[milne,person],[mimetic,right],[mimic,right],[mimicked,equals],[mimicking,equals],[mimickry,plus],[mimicry,tworectangle],[mimics,two],[min,n],[mince,],[minced,box],[mind,brain],[minded,plus],[mindedness,plus],[mindful,plus],[mindfully,plus],[mindfulness,plus],[minding,plus],[mindmap,dash],[mindmapping,dash],[mindread,left],[mindreader,eye],[mindreading,brain],[mindreadingcaw,and],[mindreadtest,tick],[mindreadtesta,tick],[mindreadtestb,tick],[mindreadtestcharacters,a],[mindreadteste,tick],[mindreadtestlang,plus],[mindreadtestmeditation,up],[mindreadtestminus,minus],[mindreadtestminusunrelatedthought,minus],[mindreadtestmusiccomposer,note],[mindreadtestne,tick],[mindreadtestobj,apple],[mindreadtestpersoncomputer,computer],[mindreadtestpsychiatrist,person],[mindreadtestsec,plus],[mindreadtestsecthoughts,box],[mindreadtestsecurity,xcorrection],[mindreadtestshared,plus],[mindreadtestz,tick],[minds,brain],[mindset,plus],[mindsuite,brain],[mindtools,plus],[mine,down],[mineral,],[minerals,mineral],[minestrone,soup],[mingle,right],[mingliang,person],[mini,n],[miniature,down],[minimal,one],[minimalism,down],[minimalist,box],[minimax,company],[minimaxir,algorithm],[minimisation,down],[minimise,minus],[minimised,down],[minimiser,down],[minimises,down],[minimising,down],[minimum,n],[mining,down],[minions,person],[minister,person],[ministers,person],[ministries,box],[ministry,plus],[minor,sadface],[minorities,person],[minority,n],[mins,square],[mint,plant],[mintzberg,person],[minus,],[minute,square],[minutes,paper],[minutevaluea,variable],[minutevalueb,variable],[mir,dash],[miracle,plus],[miracles,plus],[miraculous,plus],[miraculously,plus],[miraculousness,plus],[miranda,person],[miriam,person],[miriammorris,person],[mirriam,person],[mirror,],[mirrors,mirror],[mirth,happyface],[mis,minus],[misaligned,notequals],[misbehaving,minus],[misbehaviour,minus],[miscalculate,minus],[miscarriage,minus],[miscarriages,minus],[miscellaneous,right],[miscellany,box],[misconceived,minus],[misconduct,minus],[miscounted,minus],[misdoings,minus],[miseducative,minus],[misery,minus],[misfit,minus],[misfortunes,minus],[misguided,minus],[misha,person],[mishandling,minus],[misheard,minus],[mishra,person],[misinformation,minus],[misinformed,minus],[mismatch,notequals],[misnamed,minus],[miso,],[misrepresentation,minus],[misrepresented,minus],[misrepresenting,minus],[miss,person],[missed,minus],[misses,minus],[missing,minus],[mission,plus],[missionaries,person],[missioncloud,right],[missions,right],[misspelled,minus],[misspellings,minus],[mistake,xcorrection],[mistaken,minus],[mistakes,xcorrection],[mistress,person],[mistyped,minus],[mistypes,minus],[misunderstand,minus],[misunderstanding,minus],[misunderstandings,minus],[misunderstood,minus],[misused,minus],[mit,university],[mited,ball],[mitigate,plus],[mitigated,plus],[mitigation,xcorrection],[mitochondria,],[mitsea,person],[mix,dot],[mixed,plus],[mixer,n],[mixes,box],[mixing,n],[mixture,ball],[mixtures,amount],[mkcid,dash],[mkevt,dash],[mkgroupid,dash],[mklykpuce,dash],[mkrid,dash],[mktemp,variable],[mktype,dash],[ml,dash],[mlb,company],[mlblawyers,company],[mleash,leash],[mls,n],[mm,],[mmc,and],[mn,person],[mnemonic,square],[mnemonics,square],[mnode,dash],[mnws,dash],[mo,person],[mobile,box],[mobiles,iphone],[mobility,right],[mock,plus],[mocktail,glass],[mockup,plus],[mod,n],[modal,n],[modalities,m],[modalities,n],[modality,n],[mode,b],[moded,right],[model,box],[modeled,box],[modelled,right],[modelling,box],[models,and],[moderate,plus],[moderated,plus],[moderately,plus],[moderation,plus],[modern,plus],[modernist,plus],[modernity,plus],[moderns,person],[modes,n],[modespec,square],[modestatements,square],[modestly,plus],[modesty,plus],[modifiable,plus],[modification,plus],[modifications,right],[modified,right],[modifier,plus],[modifiers,key],[modifies,right],[modify,right],[modifying,right],[modifyitem,plus],[modularisation,box],[modularise,dash],[modularised,box],[module,box],[modules,book],[modus,n],[modusponens,right],[modw,square],[mohammad,person],[mohammadfneish,person],[mohammed,person],[moistened,square],[mol,n],[molars,tooth],[mold,box],[molding,mold],[moldova,country],[molecular,ball],[molecularly,ball],[molecule,ball],[molecules,ball],[molly,person],[molyhedrons,box],[mom,person],[moment,one],[momentarily,one],[momentary,n],[moments,one],[mon,square],[monaco,country],[monad,and],[monadalisation,right],[monadalised,line],[monadic,and],[monarch,person],[monarchs,person],[monarchy,king],[monash,university],[monastery,building],[monastic,person],[monastics,person],[monday,square],[mondragón,equals],[monetary,dollarsymbol],[monetise,dollarsymbol],[money,dollarsign],[moneyless,zero],[moneymaking,dollarsymbol],[mongolia,country],[monies,dollarsymbol],[moniker,plus],[monitor,square],[monitored,plus],[monitoring,eye],[monitors,plus],[moniz,person],[monk,person],[monkey,],[mono,box],[monocle,circle],[monogamy,box],[monologue,paper],[monologues,paper],[monopoles,up],[monopoly,box],[monos,box],[monotheism,person],[monotheistic,person],[monotone,one],[monotonicities,plus],[monster,person],[montelhedrons,box],[montenegro,country],[montero,person],[montessori,person],[month,square],[monthdob,n],[monthlearned,square],[monthly,],[months,square],[monthvaluea,variable],[monthvalueb,variable],[montreal,city],[mooc,paper],[moocs,book],[mood,square],[moods,variable],[moody,person],[moog,note],[moon,],[moonbelt,ball],[mooney,person],[moonlight,moon],[moonwalk,right],[mop,],[mopped,mop],[moral,tick],[morale,plus],[morality,tick],[morally,plus],[morals,plus],[more,plus],[moreover,and],[morgan,person],[moriac,suburb],[mormonisms,person],[morning,sun],[mornings,sun],[morocco,country],[morphs,right],[morris,person],[mortal,n],[mortality,n],[mortals,person],[mortar,],[mortarboard,],[mortem,n],[mortgage,n],[moslem,person],[mosquito,mosquito],[mosquitoes,mosquito],[mossop,person],[most,one],[mostly,one],[mother,person],[motherhood,plus],[mothers,person],[moti,right],[motion,right],[motioning,right],[motions,right],[motivate,plus],[motivated,plus],[motivates,plus],[motivating,plus],[motivation,plus],[motivational,plus],[motivations,plus],[motives,plus],[motor,right],[motto,square],[mould,box],[moulded,box],[moules,person],[mound,earth],[mount,up],[mountain,],[mountaineer,person],[mountains,mountain],[mounted,down],[mouse,],[mouseovers,dot],[mousse,],[moustache,],[moustached,moustache],[mouth,],[mouthful,mouth],[mouthfuls,cube],[mouthing,mouth],[mouthpiece,mouth],[mouthwash,],[move,right],[moved,right],[movement,right],[movements,right],[mover,right],[moves,right],[movie,line],[moviegoer,person],[movies,line],[moviesandsales,square],[moviestorm,software],[moving,right],[movingappearances,right],[movingappearancespurusha,square],[mow,right],[moxibustion,dash],[moyn,person],[mozambique,country],[mozart,person],[mozilla,application],[mp,dash],[mpa,book],[mr,variable],[mrcaw,and],[mrcawmp,square],[mredo,two],[mrs,person],[mrtree,dash],[mrtsthoughts,square],[mrwed,company],[ms,building],[mscore,n],[mscp,school],[msetup,n],[msg,square],[msn,company],[msort,right],[mssbtl,mat],[mt,mountain],[mteach,book],[mteaching,book],[mth,m],[mtjcbct,dash],[mtotal,n],[mtrace,dash],[mtree,dash],[mtrees,dash],[mtrue,one],[mts,square],[much,one],[mucous,box],[mueller,person],[muesli,],[muffin,],[muffins,muffin],[mug,],[muhammad,person],[mukesh,person],[mul,n],[mulch,box],[mulched,box],[mulling,plus],[mulready,person],[mult,multiplication],[multi,n],[multichoice,n],[multiclause,square],[multiclauses,square],[multiconnections,right],[multicultural,tworectangle],[multiculturalism,plus],[multidim,box],[multidimensional,dash],[multidisciplinary,book],[multifile,paper],[multileveled,dash],[multiline,two],[multilingual,book],[multimedia,square],[multimethod,plus],[multinational,ball],[multiness,n],[multiple,n],[multiples,multiplication],[multiplication,multiplication],[multiplications,multiplication],[multiplicity,n],[multiplied,multiply],[multiplier,n],[multiplies,multiplication],[multiply,],[multiplybytwo,multiply],[multiplying,multiplication],[multireps,box],[multistage,n],[multistate,square],[multitask,plus],[multitasking,n],[multithreaded,line],[multithreading,line],[multitrait,box],[multitude,two],[multiverse,box],[multiverses,box],[multividual,person],[multividuals,person],[mulvaney,person],[mum,university],[mummery,company],[mummoco,person],[mummy,person],[mums,person],[mundane,minus],[munery,plus],[munify,equals],[munster,person],[muradbd,person],[murch,plus],[murder,minus],[murdered,minus],[murderer,person],[murderers,person],[murdering,minus],[muriel,person],[murnaghan,person],[murphy,person],[murray,person],[mus,note],[musc,dash],[muscle,box],[muscles,box],[muscomp,note],[muscovy,duck],[muscular,muscle],[mushroom,plant],[mushrooms,mushroom],[music,note],[musical,note],[musically,note],[musicals,note],[musiccomposer,software],[musician,person],[musicians,person],[musicking,note],[musicles,box],[musiclibrary,book],[musings,plus],[muslims,person],[must,dash],[mustafa,person],[mutants,person],[mutate,right],[mutated,right],[mutating,right],[mutation,n],[muted,zero],[mutex,box],[mutexed,box],[mutexes,box],[mutt,software],[mutual,plus],[mutually,tworectangle],[mutuallyexclusive,notequals],[mv,right],[mvisible,square],[mvm,dash],[mvs,dash],[mwarning,xcorrection],[mwt,company],[mwyeqclcbgasyhq,dash],[mx,variable],[my,person],[myadmissionessay,company],[myanmar,country],[mycorrhizae,],[myelem,square],[myers,person],[myface,company],[myhead,square],[myki,square],[mymind,company],[myness,person],[myproduct,multiplication],[myreverse,left],[myriad,two],[myrrh,],[myself,person],[mysql,and],[mysteries,questionmark],[mysterious,plus],[mystery,plus],[mystic,plus],[mystical,plus],[mysum,plus],[mytail,square],[myth,minus],[myths,square],[myune,paper],[mywhile,plus],[mzi,dash],[n,variable],[na,dash],[nab,company],[nac,dash],[nacl,],[nad,dash],[nadia,person],[nagel,person],[nagging,minus],[naif,person],[nail,down],[nailed,nail],[nails,nail],[naive,plus],[nakar,person],[naked,zero],[nal,variable],[namaskar,hand],[namaskara,plus],[name,threerectangle],[nameable,square],[named,square],[namely,square],[names,a],[nameserver,square],[namibia,country],[naming,square],[namogoo,company],[nan,person],[nana,person],[nancy,person],[nanga,city],[nanny,person],[nanometres,line],[nanotode,down],[nanotubes,box],[naomi,person],[nap,bed],[napa,tree],[napkin,],[naplan,paper],[naples,city],[napoletana,tomato],[nappies,nappy],[nappy,],[narcissism,minus],[narcissist,minus],[narcissistic,minus],[narcissists,minus],[narcissus,person],[nare,dash],[narrated,mouth],[narrating,mouth],[narration,book],[narrative,square],[narratives,square],[narratology,mouth],[narrator,person],[narrow,box],[narrowed,down],[narrowing,minus],[narrows,minus],[narst,person],[nasa,up],[nasal,nose],[nascendi,right],[natalie,person],[nathalie,person],[nathan,person],[nation,square],[national,country],[nationalism,country],[nationalist,person],[nationality,square],[nationally,country],[nations,square],[native,person],[natively,plus],[nativity,baby],[natural,plus],[naturalistic,plus],[naturally,plus],[naturalness,plus],[nature,sun],[natureofcode,and],[natures,plus],[naughty,minus],[nauru,country],[nautilus,square],[nav,square],[naval,sea],[navel,orange],[navigate,right],[navigated,right],[navigating,right],[navigation,right],[navigational,right],[navigator,and],[navy,person],[nay,minus],[nazarene,person],[nazi,person],[nazis,person],[nazism,person],[naïve,minus],[nb,plus],[nba,n],[nbsp,dash],[nby,left],[nc,dash],[ncbi,company],[ncolour,square],[ncurl,dash],[nd,dash],[ndis,right],[ne,dash],[near,n],[nearby,equals],[neared,plus],[nearest,equals],[nearing,right],[nearly,plus],[neat,plus],[neaten,plus],[neatened,plus],[neatly,plus],[neatness,plus],[nebuchadnezzar,person],[nebula,nebula],[nebulous,nebula],[nec,plus],[necessarily,tick],[necessary,one],[necessitate,plus],[necessitating,plus],[necessitivist,plus],[necessity,plus],[neck,],[necking,equals],[necklace,],[nectar,],[nectarine,],[nectars,nectar],[nee,dash],[need,left],[needaccess,dash],[needed,left],[needing,left],[needle,],[needles,needle],[needless,xcorrection],[needlessly,minus],[needs,left],[needy,minus],[nef,dash],[neg,minus],[negatable,minus],[negatably,minus],[negate,xcorrection],[negated,xcorrection],[negates,xcorrection],[negating,xcorrection],[negation,minus],[negative,minus],[negatively,minus],[negativity,minus],[negeia,minus],[negentropic,down],[neglected,minus],[negligence,minus],[negotiate,plus],[negotiated,plus],[negotiating,plus],[negotiation,plus],[negotiations,square],[negotiator,person],[nei,person],[neiess,person],[neiey,person],[neigh,program],[neighborhood,suburb],[neighbour,equals],[neighbourhood,suburb],[neighbouring,equals],[neighbours,person],[neil,person],[neiler,person],[neiney,person],[neither,xcorrection],[nel,person],[nellie,person],[nelly,person],[nelson,person],[neo,plus],[neof,square],[neoliberalism,plus],[neon,square],[nepal,country],[nephew,person],[nephtali,person],[ner,dash],[nerd,person],[nerve,],[nerves,right],[nervous,nerve],[nervousness,minus],[nesn,company],[ness,plus],[nest,],[nested,box],[nesting,nest],[nestlé,company],[net,box],[netherlands,country],[network,dot],[networked,line],[networking,star],[networks,dash],[neumann,person],[neural,brain],[neurally,brain],[neuro,brain],[neuroalgorithms,and],[neurobot,person],[neurocode,n],[neurodiverse,person],[neurofeatures,plus],[neurointerpreter,and],[neuromodel,right],[neuron,star],[neuronal,neuron],[neuronetwork,plus],[neuronetworks,plus],[neurons,star],[neuroplastic,square],[neuroplasticity,plus],[neurorecordings,square],[neuroscience,brain],[neuroscientist,person],[neurosolver,plus],[neurospected,eye],[neurotechnologies,brain],[neurotic,minus],[neuroticism,minus],[neurotypical,plus],[neuse,plus],[neuter,square],[neutral,zero],[never,zero],[nevertheless,plus],[nevis,country],[new,plus],[newborns,baby],[newbranch,dash],[newbranchifcall,dash],[newcastle,city],[newcat,and],[newcomers,person],[newer,one],[newland,person],[newline,square],[newlines,square],[newlist,square],[newly,plus],[newn,plus],[newness,one],[newrule,square],[newrulenumber,n],[news,paper],[newsletter,paper],[newsletters,paper],[newspaper,paper],[newspapers,book],[newsreader,person],[newsworthy,paper],[newton,person],[next,right],[ney,dash],[nfns,right],[nfrom,dash],[ng,person],[ngaire,person],[nhalt,dash],[nhandle,dash],[nhmrc,book],[ni,square],[niall,person],[niaz,person],[nib,],[nibbled,tooth],[nicaragua,country],[niccolò,person],[niccoló,person],[nice,plus],[nicely,plus],[nicer,greaterthan],[nicest,plus],[niche,box],[niches,box],[nicholas,person],[nicholls,person],[nick,person],[nickered,minus],[nicknames,square],[nicknaming,square],[nicola,person],[nicole,person],[nida,university],[nidaacttech,square],[nidaamericanaccent,square],[niece,person],[nielsen,person],[niet,person],[nieto,person],[nietzche,person],[nietzsche,person],[nietzschean,person],[niger,country],[nigeria,country],[night,square],[nightclubs,building],[nighter,square],[nightfall,n],[nightingale,],[nightmare,minus],[nightmares,minus],[nights,square],[nih,company],[nike,person],[nikola,person],[nil,zero],[nile,river],[nine,ninerectangle],[ninerectangle,],[ninja,person],[ninjitsu,book],[ninstallation,down],[nint,dash],[ninth,n],[nirit,person],[nirvana,zero],[nitesh,person],[nitin,person],[nk,dash],[nl,square],[nleash,dash],[nlm,square],[nlp,bracket],[nls,down],[nlucian,person],[nm,dash],[nmain,dash],[nmany,dash],[nmr,n],[nn,right],[nna,square],[nnb,square],[nnc,square],[nnd,square],[nne,square],[nnf,variable],[nng,variable],[nnh,variable],[nni,variable],[nnit,box],[nnitt,box],[nnl,variable],[nnmy,box],[nno,dash],[nnobzgawdoxnmxdjgpyvege,dash],[nns,right],[nnzss,dash],[no,xcorrection],[noam,person],[nobel,plus],[noble,plus],[nobles,person],[nobodyproblemsapp,software],[nocut,xcorrection],[noddings,person],[node,dot],[nodes,dot],[nodisplay,square],[nogating,xcorrection],[noheadaches,xcorrection],[noheadachesapp,box],[noise,zero],[nola,person],[nolan,person],[nomenclature,square],[nominalisation,square],[nominalised,square],[nominate,square],[nominated,plus],[nominative,square],[non,xcorrection],[nonabort,plus],[nonaligned,minus],[nonbeing,person],[nonbeings,person],[nonbreaking,square],[nondet,n],[nondeterminism,two],[nondeterministic,or],[nondeterministically,n],[nondurable,minus],[none,zero],[nonempty,square],[nonemptycord,square],[nonequally,notequals],[nonhuman,animal],[nonmonotonicities,minus],[nonmonotonicity,plus],[nonprofits,zero],[nonrec,right],[nonrecursive,dot],[nonsense,minus],[nontechnical,right],[nonvar,square],[nonverbal,paper],[nonviolent,plus],[noodle,],[noodles,noodle],[noon,n],[nopqrstuvwxyz,dash],[noprotocol,xcorrection],[nor,zero],[noradrenaline,],[norberto,person],[nordlinger,person],[norepinephrine,],[noreply,minus],[norm,plus],[normal,plus],[normalising,down],[normally,plus],[normative,n],[normativise,field],[normativity,plus],[norms,plus],[norover,dash],[norris,person],[north,up],[northwest,right],[norway,country],[norwegian,person],[noscript,square],[nose,],[nosepieces,peg],[nosing,nose],[nossal,person],[nostril,],[nostrils,nostril],[not,xcorrection],[notable,plus],[notably,plus],[notation,square],[notations,square],[notcher,down],[notchers,down],[note,],[notebook,book],[notebooks,book],[noted,plus],[notepad,paper],[notequals,],[notes,paper],[notestonames,note],[noteworthy,plus],[nothing,zero],[nothingness,zero],[notice,eye],[noticeable,plus],[noticed,person],[noticing,square],[notification,plus],[notifications,plus],[notified,square],[notifies,tick],[notify,plus],[notifying,square],[noting,square],[notion,square],[notions,box],[notrace,xcorrection],[notranslate,xcorrection],[notree,dash],[nots,xcorrection],[noumena,box],[noumenal,dot],[noumenalist,person],[noumenon,apple],[noumenonisation,dot],[noun,apple],[nouns,square],[nourish,plus],[nourished,plus],[nourishing,plus],[nourishment,plus],[nov,square],[novaes,person],[novel,book],[novels,book],[november,square],[now,zero],[nowell,person],[nowhere,box],[nowrap,equals],[nozzle,box],[np,square],[npackage,box],[npm,down],[npp,dash],[npredicate,square],[nq,square],[nr,dash],[nrectangle,],[ns,n],[nsay,dash],[nsw,square],[nswipl,dash],[nsys,square],[nt,square],[ntexttobr,apple],[nth,n],[ntime,dash],[ntitle,square],[ntotal,n],[ntotal,right],[nuance,plus],[nuances,plus],[nuclear,minus],[nucleus,ball],[nude,minus],[nudging,right],[nudity,person],[nuggets,box],[nuland,person],[null,zero],[num,n],[number,one],[numbera,variable],[numbered,n],[numbering,n],[numberofinstruments,n],[numberofphils,n],[numbers,n],[numberstring,square],[numeracy,one],[numerals,n],[numeric,n],[numerical,number],[numerous,n],[numin,n],[numinputs,variable],[numout,n],[numoutputs,variable],[nums,n],[nuptial,dash],[nur,plus],[nurse,person],[nursery,building],[nursing,plus],[nurture,plus],[nurtured,plus],[nurturers,person],[nurtures,plus],[nurturing,plus],[nusrat,person],[nussbaum,person],[nut,],[nuted,plus],[nutmeg,plant],[nutrient,ball],[nutrients,apple],[nutrifactored,apple],[nutrition,apple],[nutritional,apple],[nutritious,apple],[nuts,nut],[nutshell,nut],[nuzzle,mouth],[nuzzled,mouth],[nv,square],[nvivo,square],[nwcxu,dash],[nwhen,dash],[nwhere,dash],[nx,dash],[ny,variable],[nylon,line],[nyou,dash],[nyse,dash],[nz,n],[nǚ,person],[nǚzǐ,person],[o,variable],[oak,tree],[oaks,tree],[oar,],[oarsman,person],[oasis,],[oat,],[oats,oat],[obd,book],[obedience,plus],[obesity,fat],[obey,plus],[obeyed,plus],[obj,apple],[object,apple],[objected,xcorrection],[objecting,xcorrection],[objection,xcorrection],[objectionable,minus],[objections,xcorrection],[objective,box],[objectively,plus],[objectives,dot],[objectivity,box],[objectnames,square],[objectpath,line],[objects,apple],[objectstofinish,box],[objectstoprepare,apple],[objecttofinish,box],[objecttofinishdict,book],[objecttofinishdifferencet,d],[objecttofinishdt,d],[objecttofinishend,variable],[objecttofinishlength,n],[objecttofinishlengtht,n],[objecttofinishstring,variable],[objecttofinishstringth,variable],[objecttofinishvalues,variable],[objecttofinishx,variable],[objecttofinishy,variable],[objecttofinishz,variable],[objecttoprepare,apple],[objecttopreparedict,book],[objecttopreparedifferencet,d],[objecttopreparedt,d],[objecttoprepareend,variable],[objecttopreparelength,n],[objecttopreparelengtht,n],[objecttopreparestring,variable],[objecttopreparestringth,variable],[objecttopreparevalues,variable],[objecttopreparex,variable],[objecttopreparey,variable],[objecttopreparez,variable],[objs,apple],[oblate,person],[oblates,person],[obligate,plus],[obligated,plus],[obligates,plus],[obligating,plus],[obligation,plus],[obligations,plus],[obliged,plus],[oboe,tube],[obs,box],[obscure,minus],[observable,plus],[observant,eye],[observation,eye],[observational,eye],[observations,n],[observatory,star],[observe,eye],[observed,eye],[observer,person],[observers,person],[observing,eye],[obsessed,minus],[obsolescence,minus],[obsolete,minus],[obsoleted,xcorrection],[obsoletion,xcorrection],[obstacle,box],[obstacles,box],[obstruct,box],[obstruction,box],[obtain,left],[obtained,right],[obvious,plus],[obviously,plus],[obviousness,plus],[ocarina,box],[occasion,square],[occasionally,plus],[occasions,plus],[occupant,person],[occupants,person],[occupation,paper],[occupational,paper],[occupied,plus],[occupies,dot],[occupy,square],[occupying,plus],[occur,plus],[occuring,box],[occurred,plus],[occurrence,plus],[occurrences,plus],[occurring,dot],[occurs,dot],[ocean,water],[oceanographer,person],[oceans,water],[oclass,variable],[ocr,and],[oct,eightrectangle],[octagon,],[octahedral,octahedron],[octahedron,],[octahedrons,octahedron],[octave,eightrectangle],[octaves,line],[octet,eightrectangle],[october,square],[octopus,],[ocw,book],[odd,n],[oddly,minus],[odds,p],[odwyer,person],[oedipal,person],[oedipus,person],[oesophagus,tube],[oeuvre,book],[oevre,book],[of,dash],[off,xcorrection],[offable,tick],[offend,minus],[offended,minus],[offender,person],[offending,minus],[offensive,minus],[offer,plus],[offered,right],[offering,hand],[offerings,box],[offers,apple],[office,room],[officer,person],[officers,person],[offices,room],[officeworks,company],[official,plus],[offing,down],[offline,zero],[offs,down],[offset,n],[offsets,n],[offside,right],[offspring,person],[ofh,box],[often,one],[oga,dash],[ogvoh,dash],[oh,plus],[ohdvoxc,dash],[ohio,person],[oi,dash],[oii,dash],[oil,],[oiled,oil],[oiling,oil],[oio,dash],[oivn,variable],[ok,plus],[okay,plus],[ol,variable],[old,dash],[olddoctors,person],[older,greaterthan],[oldest,n],[oldham,person],[oldmeditators,person],[olds,person],[olfactory,nose],[olive,],[oliver,person],[olivia,person],[olkin,person],[olsson,person],[olympiad,book],[olympic,ball],[olympics,ball],[om,person],[oman,country],[omar,person],[omega,square],[omerbsezer,person],[omissions,minus],[omit,xcorrection],[omits,minus],[omitted,zero],[omitting,xcorrection],[on,plus],[onboard,plus],[onboarding,dot],[once,one],[oncoming,square],[ond,dash],[one,],[oneanother,person],[onelonghandle,handle],[oneness,one],[ones,one],[oneself,person],[onezero,one],[onfray,person],[ong,person],[ongoing,line],[onings,apple],[onion,],[onlily,one],[online,dash],[onlinelibrary,book],[only,one],[onnahope,plus],[onness,square],[onnonletter,square],[onoy,person],[ons,dot],[onset,line],[ont,square],[ontario,city],[ontesol,book],[ontic,square],[ontinue,dash],[onto,down],[ontol,box],[ontological,square],[ontologically,and],[ontologies,square],[ontologise,square],[ontologised,box],[ontology,and],[onward,right],[onwards,right],[oo,dot],[ooh,plus],[oohs,note],[ooi,dash],[ool,dash],[ooo,right],[oop,minus],[op,right],[opaque,square],[open,dash],[openbracket,],[opened,up],[openeditor,square],[openeditorwitherror,xcorrection],[opening,up],[openings,box],[openly,tick],[openmind,company],[openness,plus],[openroundbracket,],[opens,square],[opensquarebracket,],[opera,book],[operand,square],[operate,hand],[operated,box],[operates,plus],[operating,line],[operatingsystem,],[operation,and],[operational,tick],[operations,and],[operative,and],[operativity,plus],[operator,and],[operators,and],[ophelia,person],[opiate,plus],[opie,person],[opinion,square],[opinions,square],[opponent,person],[opponents,person],[opportunities,plus],[opportunity,plus],[oppose,xcorrection],[opposed,xcorrection],[opposing,dash],[opposite,dash],[opposites,xcorrection],[opposition,minus],[oppositions,xcorrection],[oppress,minus],[oppressed,minus],[oppression,minus],[oppressions,minus],[oppressive,minus],[oppressiveness,minus],[oprah,person],[oprotocol,dash],[ops,box],[opt,plus],[optative,plus],[optical,eye],[optimal,plus],[optimally,one],[optimisation,one],[optimisations,down],[optimise,one],[optimisecode,one],[optimised,one],[optimiser,one],[optimisers,down],[optimises,down],[optimising,down],[optimism,plus],[optimistic,plus],[optimization,plus],[optimum,plus],[option,dash],[optional,plus],[optionally,plus],[options,plus],[optometry,eye],[opus,book],[opusman,person],[or,],[oral,mouth],[orally,mouth],[orange,],[oranges,orange],[orangutan,],[oranoos,person],[orb,ball],[orbiting,circle],[orch,violin],[orchestra,instrument],[orchestral,baton],[orcutorifthen,right],[ord,n],[ordained,plus],[order,n],[ordered,n],[ordering,paper],[orders,n],[ordinary,plus],[ordinate,n],[ordinated,plus],[ordinates,n],[ordination,plus],[ordinator,person],[ords,n],[ore,dash],[oreo,],[org,building],[organ,box],[organic,apple],[organisation,building],[organisational,company],[organisations,organisation],[organise,plus],[organised,tick],[organiser,person],[organising,dash],[organism,person],[organisms,person],[organization,building],[organizational,company],[organizations,building],[organized,plus],[organizer,person],[organizers,person],[organs,box],[orhan,person],[orient,right],[orientation,right],[orientations,line],[oriented,right],[orienteered,right],[orienteering,right],[orienteers,person],[orienting,right],[orig,plus],[origin,box],[original,one],[originality,plus],[originally,one],[originals,one],[originate,zero],[originated,dot],[originating,dot],[origins,dot],[orlando,person],[ornament,plus],[orphanage,building],[orphaned,dot],[orphanedalgorithms,variable],[orphanedbreasonings,apple],[orphanedbreathsonings,variable],[orphaneddirections,variable],[orphanedobjectstofinish,variable],[orphanedobjectstoprepare,variable],[orphanedpartsofrooms,variable],[orphanedrooms,variable],[orsola,person],[orthodontic,tooth],[orthodontist,person],[orthodox,plus],[orthogonal,square],[ory,person],[os,box],[osaka,city],[osborne,person],[oscar,person],[oscillating,right],[ost,note],[osxdaily,dash],[ot,right],[otac,variable],[oth,dash],[other,person],[otherdepartment,building],[othered,two],[otherlander,person],[others,person],[otherwise,minus],[otte,person],[ou,dash],[oua,company],[ouch,minus],[oui,box],[ouptut,square],[our,dash],[ours,person],[ourselves,person],[out,minus],[outages,minus],[outback,tree],[outbreak,minus],[outbursts,minus],[outcome,n],[outcomes,right],[outdoor,plant],[outdoors,right],[outed,right],[outer,right],[outermost,right],[outfit,trousers],[outfits,shirt],[outflow,right],[outgoing,plus],[outlandish,minus],[outlasting,n],[outlawed,xcorrection],[outlawing,xcorrection],[outlay,down],[outlaying,square],[outlet,building],[outlets,box],[outlier,dot],[outliers,minus],[outline,square],[outlined,square],[outlines,paper],[outlining,dash],[outlook,eye],[outlooks,eye],[outlying,dot],[outmodes,right],[outness,right],[outpatients,person],[outperform,plus],[outperforming,plus],[outpost,city],[output,variable],[outputarguments,variable],[outputasconsequent,n],[outputformat,n],[outputlabels,square],[outputless,zero],[outputlyrics,square],[outputnumber,n],[outputs,variable],[outputted,n],[outputting,right],[outputtype,square],[outputvalues,n],[outputvar,variable],[outputvarlist,twobox],[outputvars,box],[outputvarsl,n],[outro,n],[outs,right],[outset,n],[outside,square],[outsider,person],[outsiders,person],[outsource,right],[outsourced,right],[outsourcing,right],[outstanding,plus],[outturned,right],[outward,right],[outwardly,right],[outwards,right],[outweigh,greaterthan],[ov,dash],[oval,square],[ovale,oval],[ovar,variable],[ovary,organ],[oven,],[over,xcorrection],[overactive,up],[overall,n],[overarching,box],[overbearing,xcorrection],[overbearingly,xcorrection],[overcame,up],[overcast,sky],[overcharged,minus],[overcome,xcorrection],[overcomes,xcorrection],[overcoming,xcorrection],[overconfidence,minus],[overconfident,minus],[overdo,minus],[overdoing,minus],[overdone,plus],[overdriven,up],[overeating,minus],[overemphasis,minus],[overflow,minus],[overhanging,right],[overhead,up],[overheard,ear],[overlap,square],[overlapped,n],[overlapping,box],[overlaps,square],[overload,minus],[overlooked,minus],[overlooks,minus],[overly,plus],[overnight,square],[overreliance,minus],[override,right],[overriding,plus],[overs,right],[overseas,dot],[oversee,eye],[overseer,person],[overseers,person],[overshadowed,minus],[oversight,minus],[overspend,dollarsymbol],[overtake,right],[overtaken,xcorrection],[overtakes,right],[overthrow,xcorrection],[overthrowing,xcorrection],[overtime,plus],[overtook,right],[overture,note],[overturned,up],[overturning,plus],[overuse,minus],[overview,square],[overviews,plus],[overwatered,water],[overwhelmed,minus],[overwhelming,minus],[overwork,minus],[overwrite,down],[overwriting,left],[overwrote,down],[overzealous,plus],[ovid,person],[ovn,variable],[ovns,variable],[owing,dollarsymbol],[owl,],[owls,owl],[own,dash],[owned,box],[owner,person],[ownerisation,plus],[owners,person],[ownership,box],[owning,dollarsymbol],[owns,box],[oxe,dash],[oxford,university],[oxley,person],[oxygen,],[oxygenated,box],[oyqym,dash],[oz,person],[ozemail,company],[ozone,],[p,a],[pa,dash],[pablo,person],[pace,n],[pachelbel,person],[pacific,water],[pacing,n],[pack,box],[package,box],[packaged,box],[packages,software],[packaging,box],[packed,box],[packet,],[packing,down],[packs,box],[pad,line],[padded,box],[padding,box],[paddled,right],[paddock,square],[pads,line],[paedophile,person],[paedophiles,person],[paedophilia,minus],[paella,],[page,paper],[pagerank,n],[pages,paper],[paginated,paper],[pagination,paper],[pagliarella,person],[paid,dollarsign],[paidós,person],[pain,minus],[painful,minus],[painless,plus],[pains,minus],[painstaking,plus],[painstakingly,plus],[paint,],[paintbrush,brush],[painted,paint],[painter,person],[painting,],[paintings,painting],[paints,paint],[pair,two],[paired,box],[pairs,tworectangle],[pairwise,box],[pak,person],[pakarinen,person],[pakistan,country],[pal,person],[palace,building],[palacebos,dash],[palau,country],[palestine,country],[palette,],[palimpsest,paper],[pallet,],[pallot,person],[palm,up],[palmer,person],[palms,palm],[palpation,dash],[palsy,minus],[pam,person],[pamphlet,],[pamphlets,pamphlet],[pan,],[panama,country],[pancake,],[panchan,person],[pancreas,],[pandemic,minus],[pane,square],[panegyric,plus],[panel,square],[panforte,],[pangs,minus],[panic,minus],[panning,dash],[pansies,flower],[pant,],[pantry,],[pants,],[panty,underpants],[papa,person],[paper,],[paperback,book],[papers,paper],[papersga,dash],[papua,country],[para,square],[parabola,n],[paracosm,plus],[parade,right],[paraded,person],[paradigm,right],[paradigmatic,plus],[paradigms,right],[parading,person],[paradox,minus],[paradoxical,minus],[paradoxically,minus],[paragraph,square],[paragraphs,square],[paraguay,country],[parakeet,bird],[paralink,company],[parallel,line],[parallels,line],[paralysed,minus],[parameter,n],[parameters,n],[paramilitary,person],[parampalli,person],[params,variable],[paraphrase,square],[paraphrased,square],[paraphraser,right],[paraphrasers,right],[paraphrases,right],[paraphrasing,square],[paraphrasings,equals],[paraprogramming,plus],[paras,square],[parasol,],[parathyroid,box],[parcel,box],[parchment,paper],[pareil,equals],[parent,up],[parental,person],[parentheses,square],[parenthesis,brackets],[parenthesised,square],[parenthood,person],[parenting,person],[parents,person],[pareto,plus],[parietal,brain],[paris,city],[parises,city],[parisian,city],[park,],[parke,person],[parked,dot],[parking,car],[parkinson,person],[parkinsons,minus],[parks,plant],[parliament,building],[parliamentarians,person],[parliamentary,book],[parlour,room],[parmar,person],[parochialism,minus],[parodied,plus],[parodies,plus],[paronamastically,equals],[paronomastic,equals],[paronomastically,plus],[paronomasticism,dash],[parriage,plus],[parrot,],[parsana,person],[parse,down],[parsed,down],[parser,dash],[parsers,right],[parses,dash],[parsesentence,square],[parshina,person],[parsing,down],[part,box],[partake,plus],[partaking,plus],[parted,right],[parth,dash],[parthh,dash],[partial,n],[partially,one],[participant,person],[participants,person],[participate,tick],[participated,plus],[participating,tick],[participation,plus],[participatory,plus],[participle,plus],[participles,plus],[particle,ball],[particles,box],[particular,one],[particularly,plus],[particulars,plus],[parties,person],[partisan,plus],[partlength,n],[partly,plus],[partner,person],[partnered,right],[partnering,right],[partners,person],[partnership,plus],[partnerships,dash],[partofroom,table],[partofroomdict,book],[partofroomdifferencet,d],[partofroomdt,variable],[partofroomend,variable],[partofroomlength,n],[partofroomlengtht,n],[partofroomstring,variable],[partofroomstringth,variable],[partofroomvalues,variable],[partofroomx,variable],[partofroomy,variable],[partofroomz,variable],[parts,tworectangle],[partsofrooms,table],[party,house],[pas,plus],[pasa,city],[pasadena,suburb],[pashphalt,plus],[pass,dash],[passage,right],[passages,hall],[passcode,n],[passed,tick],[passenger,person],[passengers,person],[passer,person],[passers,person],[passes,right],[passing,dash],[passion,plus],[passionate,plus],[passionne,plus],[passive,zero],[passphrase,square],[passport,book],[passwd,square],[password,square],[passwordatom,box],[passwords,square],[passwordstring,square],[past,left],[pasta,],[pastable,square],[paste,square],[pasted,square],[pastime,n],[pasting,square],[pastry,],[pasttries,left],[pasty,],[pat,hand],[pataki,person],[patches,square],[patents,plus],[paternalistic,person],[path,],[pathetic,minus],[pathogen,minus],[pathogenesis,line],[pathogenic,line],[pathogens,bacterium],[pathological,minus],[pathologically,minus],[pathology,minus],[paths,path],[pathway,],[pathways,path],[patience,plus],[patient,person],[patients,person],[patriage,plus],[patriarchy,person],[patricia,person],[patrick,person],[patrol,person],[patrolled,plus],[patron,person],[patrons,person],[patted,hand],[pattern,square],[patterns,square],[patting,hand],[patty,],[paul,person],[paula,person],[paulhus,person],[paull,person],[pauls,person],[paultramlgreturningfromshowreel,person],[pause,line],[paused,zero],[pauses,box],[pavane,paper],[pavement,path],[paves,right],[paving,plane],[paw,],[pawing,right],[pawn,person],[pawns,person],[paws,paw],[pax,line],[pay,dollarsign],[payanimhighered,dollarsymbol],[paycheck,dollarsymbol],[paycommentasacelebrity,a],[paydaoistheadachemedicinetexttobr,dollarsign],[payer,person],[paying,dollarsymbol],[payment,dollarsign],[payments,dollarsymbol],[payne,person],[paypal,company],[paypalapis,company],[pays,dollarsymbol],[pbm,square],[pbook,book],[pbt,dash],[pc,box],[pcap,dash],[pce,and],[pck,book],[pckg,box],[pconverter,right],[pcre,right],[pdf,paper],[pdhnkk,dash],[pea,],[peace,a],[peaceful,plus],[peacefully,plus],[peach,],[peaches,peach],[peacock,peacock],[peacocks,peacock],[peak,n],[peaks,dot],[peanut,nut],[peanuts,nut],[pear,],[pearl,person],[pears,pear],[pearson,company],[peas,pea],[peasants,person],[pecan,],[pecking,seed],[ped,book],[pedagogical,paper],[pedagogically,book],[pedagogies,book],[pedagogise,book],[pedagogue,person],[pedagogues,person],[pedagogy,book],[pedal,pedal],[pedalling,pedal],[pedanticals,person],[pedestal,],[pedestrian,person],[pedestrians,person],[pedocracy,one],[pedophile,person],[pedophilia,minus],[pedroza,person],[peds,person],[pee,dot],[peek,eye],[peeked,eye],[peeking,eye],[peel,box],[peeled,apple],[peeling,up],[peephole,hole],[peer,person],[peers,person],[peg,],[pegboard,],[peirce,person],[pelicanstore,dollarsymbol],[pellas,person],[pellets,],[peloponnesia,city],[pen,],[penalised,xcorrection],[penalties,xcorrection],[penalty,minus],[pencil,],[pencilsharpener,],[pending,plus],[pendulum,],[penetrate,right],[penetrating,down],[penetration,right],[pengines,square],[penguin,],[penis,],[penned,pen],[penning,pen],[penny,person],[pennycook,person],[pens,pen],[pensiero,box],[pension,dollarsymbol],[pensions,dollarsymbol],[pentagon,],[pentose,sugar],[penultimatevars,variable],[peo,person],[people,person],[peoples,person],[pepper,],[peppered,pepper],[peppermint,plant],[peppers,capsicum],[peptides,],[per,dash],[perceive,eye],[perceived,eye],[perceiving,plus],[percent,n],[percentage,n],[percentile,n],[perception,square],[perceptions,eye],[perceptron,eye],[perceptual,eye],[percussion,drum],[percussive,equals],[pereira,person],[perennial,line],[perez,person],[perfect,a],[perfection,one],[perfectionism,plus],[perfectly,one],[perfects,plus],[perforated,line],[perform,a],[performance,stage],[performances,box],[performative,plus],[performativity,plus],[performed,person],[performer,person],[performers,person],[performerstuff,person],[performing,person],[performs,priscilla],[perfume,],[perfusion,right],[pergola,],[perhaps,zero],[period,line],[periodically,t],[periods,line],[peripheral,right],[periphery,n],[perishable,minus],[peristaltic,down],[perks,plus],[perlin,person],[perm,plus],[permanent,plus],[permanently,plus],[permeable,right],[permeate,down],[permission,plus],[permits,tick],[permitted,plus],[permutation,right],[permutations,right],[perpendicular,square],[perpendicularly,square],[perpetual,n],[perpetuate,plus],[perpetuity,n],[perron,person],[perry,person],[perseverance,plus],[persevering,plus],[persia,country],[persist,plus],[persistence,plus],[persistent,plus],[persistently,plus],[persists,plus],[person,],[personable,plus],[personae,person],[personal,dot],[personalised,plus],[personalism,person],[personalities,person],[personality,person],[personalityforge,company],[personalizing,plus],[personally,person],[personcoords,n],[personell,person],[personhood,plus],[personnel,person],[persons,person],[perspectival,eye],[perspective,eye],[perspectives,dot],[perspectivism,eye],[perspiration,water],[persps,eye],[persson,person],[persuade,plus],[persuaded,plus],[persuading,plus],[persuasive,plus],[pertain,plus],[pertaining,right],[pertinent,plus],[peru,country],[pessimising,minus],[pestel,plus],[pestle,],[pet,animal],[petal,],[petals,petal],[peter,person],[peters,person],[petersburg,city],[petersburgs,city],[petersen,person],[petissiences,plus],[pets,animal],[petty,person],[pf,square],[pfile,paper],[pfs,and],[pft,box],[pg,paper],[pgrad,person],[pgst,dash],[pgtd,square],[ph,dash],[phaggusemes,equals],[phallus,rod],[phalluses,rod],[phantasmagoria,box],[phantom,person],[pharmaceuticals,medicine],[pharmacological,ball],[pharmacology,ball],[pharmacy,building],[pharynx,tube],[phase,line],[phd,book],[phds,book],[pheasant,],[phenomena,box],[phenomenological,right],[phenomenologist,person],[phenomenology,square],[phenomenon,square],[pher,square],[phi,square],[phil,a],[philanthropical,plus],[philanthropist,person],[philanthropists,person],[philanthropy,right],[philatelist,person],[philip,person],[philippines,country],[philips,person],[phillip,person],[phillips,person],[philn,paper],[philosopher,person],[philosophers,person],[philosophic,dash],[philosophical,dash],[philosophically,right],[philosophicon,square],[philosophicus,right],[philosophies,paper],[philosophise,square],[philosophised,book],[philosophy,book],[phils,book],[philslengthlist,square],[phine,dash],[phoenix,bird],[phone,n],[phonebook,n],[phoneme,square],[phonemes,square],[phones,phone],[phonetic,square],[phontology,mouth],[photo,square],[photograph,square],[photographed,square],[photographer,person],[photographic,square],[photographing,square],[photographs,square],[photography,square],[photon,],[photons,ball],[photos,square],[photoshop,software],[photosynthesis,right],[photosynthetic,right],[php,paper],[phpversion,n],[phrase,square],[phrases,square],[phrasesfile,paper],[phrasevalue,n],[phrasevarname,square],[phrasing,square],[phrasings,square],[phryne,person],[phyllis,person],[phylogenetic,dash],[phys,box],[physic,square],[physical,box],[physicalism,box],[physically,box],[physician,person],[physicians,person],[physicist,person],[physics,plus],[physiological,body],[physiologically,person],[physiologies,body],[physiologist,person],[physiology,person],[physiotherapy,book],[physis,right],[pi,],[pia,person],[pianissimos,line],[pianist,person],[piano,],[pic,square],[picas,n],[piccolo,note],[pick,plus],[picked,apple],[pickering,person],[pickies,n],[picking,tick],[pickle,],[pickled,n],[picks,tick],[picky,plus],[picture,square],[pictured,square],[pictures,square],[picturing,square],[pid,dash],[pie,],[piece,paper],[pieces,box],[piecing,right],[pierced,dot],[piercings,hole],[pierre,person],[piety,plus],[pig,],[pigeon,],[pigeonhole,box],[pigment,square],[pilcher,person],[pile,up],[pill,tablet],[pillar,cylinder],[pillars,rod],[pillow,],[pillowed,pillow],[pillows,pillow],[pilot,person],[piloting,plus],[pimple,],[pin,],[pinball,ball],[pinch,minus],[pine,tree],[pineal,gland],[pineapple,],[pinecone,],[pined,plus],[pinhead,dot],[pinhole,hole],[pink,square],[pinkies,finger],[pinkwhistles,whistle],[pinky,finger],[pinnacle,dot],[pinned,dot],[pinpoint,dot],[pins,pin],[pinter,person],[pinterest,company],[pinx,square],[pio,right],[pious,plus],[pip,],[pipe,],[pipeline,line],[pipelines,line],[piper,person],[pipes,pipe],[pipette,pipette],[pipetted,pipette],[pippin,apple],[pips,pip],[pipsqueaks,minus],[pisa,city],[pistachio,nut],[pistrui,person],[pitch,tick],[pitched,plus],[pitches,tick],[pitchouli,],[pitchproof,note],[pitfalls,minus],[pithfulnesses,down],[pitrisaur,dinosaur],[pitted,stone],[pittosporum,plant],[pituitary,box],[pity,minus],[pivot,right],[pivotal,dot],[pixar,company],[pixel,square],[pixelate,square],[pixelated,square],[pixellated,square],[pixels,square],[pixie,person],[pixies,person],[pizza,],[pizzicato,finger],[pl,square],[pla,dash],[place,building],[placebo,tablet],[placed,hand],[placeholder,dot],[placeholders,dot],[placement,square],[placenta,organ],[places,tree],[placing,down],[plagiarise,minus],[plagiarised,minus],[plagiarises,minus],[plagiarising,minus],[plagiarism,minus],[plagues,minus],[plain,plus],[plainer,plus],[plainised,right],[plainness,plus],[plaintiffs,person],[plan,paper],[plane,],[planes,plane],[planet,],[planetarium,star],[planetary,planet],[planets,ball],[plank,],[planned,paper],[planner,square],[planners,right],[planning,right],[plans,paper],[plant,],[planted,seed],[planting,seed],[plants,plant],[plaque,minus],[plasma,],[plastic,plane],[plasticated,plastic],[plasticity,n],[plate,],[plateau,box],[platelet,],[platelets,platelet],[platform,box],[platforms,square],[platinum,ball],[plato,person],[platolucian,person],[platonic,person],[platonism,book],[platonist,person],[platter,plate],[plausible,plus],[play,ball],[playback,right],[played,ball],[player,person],[players,person],[playful,ball],[playfully,plus],[playground,swings],[playing,plus],[playlist,square],[plays,book],[playwright,person],[pldoc,square],[ple,person],[plea,plus],[pleasant,plus],[please,plus],[pleased,plus],[pleases,plus],[pleasing,plus],[pleasure,plus],[pleasures,plus],[plebeian,person],[plectrum,plectrum],[plectrums,plectrum],[pleiotropic,n],[plentiful,n],[plenty,plus],[pless,person],[pliers,],[plimsoll,line],[plode,box],[plogue,company],[plos,book],[plot,dot],[plots,dot],[plotted,paper],[plotting,dot],[plough,],[ploughed,right],[pls,square],[plucked,right],[plucking,right],[plug,box],[plugged,right],[plugins,box],[plugs,right],[pluhar,person],[plum,],[plumber,up],[plume,feather],[plunger,down],[pluperfect,right],[plural,n],[pluralism,box],[pluralistic,box],[plus,],[plusone,plus],[plustwo,plus],[pluto,planet],[pm,dash],[pmc,square],[pmi,square],[pms,software],[pn,n],[pnal,n],[pnals,n],[png,paper],[po,university],[pocket,],[pocketing,box],[pocketwatch,],[pod,square],[podcast,paper],[podcaster,person],[podiatrist,person],[podium,],[podophile,person],[pods,pod],[poem,paper],[poems,equals],[poet,person],[poetic,square],[poetics,book],[poetry,square],[poh,person],[poi,dash],[point,dot],[pointed,dot],[pointedness,dot],[pointer,dot],[pointers,dot],[pointing,down],[pointless,xcorrection],[points,dot],[poisson,person],[poked,down],[poking,right],[pol,box],[poland,country],[polanyi,person],[polarity,rod],[polastrini,person],[pole,dot],[polemical,minus],[poles,line],[police,person],[policeman,person],[policies,square],[policy,paper],[polis,city],[polish,plus],[polished,plus],[polishing,square],[polite,person],[politely,plus],[politeness,plus],[politenesses,plus],[political,up],[politically,dot],[politician,person],[politicians,person],[politicity,plus],[politico,dot],[politics,dash],[politicsrelation,dash],[polkinghorns,plus],[poll,plus],[pollution,box],[polly,person],[polonialnesses,person],[poltergeist,minus],[polycaring,plus],[polyglot,n],[polygon,square],[polygons,square],[polyhedron,box],[polyhedrons,box],[polymath,person],[polymorphism,box],[polynomial,n],[polynomials,line],[polyp,ball],[polysynth,n],[polytechnic,university],[polzin,person],[pom,tomato],[pome,apple],[pomegranate,],[pommelles,plus],[pomodoro,tomato],[pomodoros,paper],[pomology,dash],[poms,book],[pond,water],[ponds,suburb],[pone,dash],[ponens,hand],[ponty,person],[pony,],[poo,person],[poofters,person],[pooh,bear],[pool,],[poor,minus],[poorly,minus],[pooty,person],[pop,bubble],[popclassical,ball],[popclassicalcomposition,note],[popcorn,],[pope,person],[popogogy,book],[popol,book],[popological,person],[popologically,person],[popology,book],[poppadum,],[popped,up],[poppies,flower],[popping,air],[poppy,person],[pops,bubble],[popsicle,],[popular,plus],[popularities,plus],[popularity,plus],[popularized,plus],[populate,down],[populated,person],[populatevars,variable],[populating,person],[population,n],[populations,n],[populum,person],[porcupine,],[pork,],[porridge,],[port,box],[portable,right],[portalid,n],[ported,right],[porter,person],[portfolio,book],[portfolios,book],[porting,right],[portion,box],[portions,box],[portrait,square],[portray,square],[portugal,country],[portuguese,paper],[pos,plus],[pose,plus],[posed,plus],[poseia,plus],[poses,plus],[posing,plus],[posited,plus],[positing,plus],[position,n],[positioned,n],[positioning,plus],[positionlist,square],[positions,person],[positive,plus],[positively,plus],[positives,plus],[positivestate,plus],[positivism,plus],[positivist,plus],[positivity,plus],[positivityscore,plus],[posits,plus],[poss,plus],[possess,box],[possessing,box],[possession,plus],[possibilities,dash],[possibility,dash],[possible,plus],[possibly,one],[possiblynotworking,minus],[post,right],[postal,paper],[postcode,square],[postcolonial,right],[postcolonialism,country],[posted,letter],[poster,paper],[posteriori,right],[posterity,n],[posters,paper],[postfix,right],[postgrads,person],[postgraduate,person],[posthumanism,right],[posting,square],[postkey,n],[postludetudine,square],[postnet,paper],[postobon,dash],[postpone,xcorrection],[posts,square],[postsong,note],[poststructural,book],[poststructuralism,right],[postulated,plus],[posture,line],[pot,],[potato,],[potatoes,potato],[potbelly,],[potency,n],[potential,tick],[potentiality,plus],[potentially,plus],[potentials,plus],[potholes,down],[potion,],[potoroo,],[potpourri,flower],[pots,pot],[potter,person],[pottery,pot],[pouch,bag],[pouches,bag],[poulton,person],[pounder,down],[pounding,down],[pounds,n],[pour,right],[poured,water],[pouring,down],[pov,dot],[poverty,minus],[powder,box],[powell,person],[power,plus],[powered,right],[powerful,plus],[powerfully,plus],[powering,n],[powerless,zero],[powerlessness,minus],[powerload,n],[powerman,person],[powerpoint,software],[powers,person],[powerschool,company],[poynter,person],[pozible,company],[pp,square],[ppca,company],[ppi,n],[ppm,paper],[ppx,dash],[pq,line],[pr,square],[pra,dash],[prac,plus],[pract,dash],[practica,paper],[practical,plus],[practicality,plus],[practically,plus],[practice,plus],[practiced,plus],[practices,square],[practicing,plus],[practicum,paper],[practicums,paper],[practise,plus],[practised,plus],[practisers,person],[practises,plus],[practising,plus],[practitioner,person],[practitioners,person],[pragmatic,plus],[pragmatism,right],[prahran,suburb],[praise,plus],[praised,plus],[praising,plus],[pranayama,yline],[praxemes,square],[pray,plus],[prayed,plus],[prayer,paper],[prayers,square],[praying,brain],[pre,left],[preamble,square],[prec,left],[precative,up],[precaution,plus],[precautions,xcorrection],[precede,right],[preceded,left],[precedence,up],[precedes,right],[preceeding,left],[precious,plus],[precipice,up],[precise,plus],[precisely,equals],[precision,plus],[precludes,xcorrection],[precomputed,and],[precondition,plus],[precur,left],[precursor,left],[precursors,left],[pred,square],[predation,animal],[predationism,up],[predator,minus],[predatorial,up],[predators,animals],[predefined,tick],[predetermined,plus],[predicate,n],[predicateer,person],[predicateform,square],[predicateforms,square],[predicatename,square],[predicatenamen,square],[predicates,square],[predicatesa,square],[predicatesdictionary,and],[predicatised,square],[predict,two],[predictability,plus],[predictable,dot],[predicted,right],[predicting,right],[prediction,square],[predictions,square],[predictive,left],[predictively,plus],[predictor,variable],[predicts,up],[prednamearity,n],[prednamearitylist,square],[predominantly,plus],[preds,square],[preened,plus],[preening,plus],[prefer,plus],[preferable,plus],[preferably,plus],[preference,tick],[preferences,tick],[preferred,plus],[preferring,plus],[prefers,plus],[prefix,left],[prefixes,square],[prefixof,left],[preg,dash],[pregnancies,baby],[pregnancy,line],[pregnant,person],[prehistoric,line],[prehistory,line],[preincrement,plus],[preincrements,plus],[prejudice,minus],[prejudices,minus],[preliminarily,one],[preliminary,one],[prelude,note],[preludes,left],[premise,square],[premises,room],[premium,one],[premiums,dollarsymbol],[première,one],[preoccupation,plus],[preoedipal,right],[prep,right],[prepaid,dollarsymbol],[prepar,plus],[preparation,left],[preparations,plus],[preparatory,right],[prepare,right],[prepared,plus],[preparedness,plus],[prepares,plus],[preparing,plus],[prepensive,left],[preplpi,and],[preposition,box],[prepositioned,right],[prepositions,box],[preprocessed,plus],[prequel,book],[prereqs,right],[prerequisite,right],[prerequisites,right],[prerogative,plus],[presage,n],[preschool,building],[prescribe,square],[prescribed,paper],[prescribing,paper],[prescription,paper],[preselected,plus],[presence,person],[present,box],[presentation,square],[presentations,square],[presented,square],[presenter,person],[presenters,person],[presenting,square],[presentness,plus],[presents,square],[preservation,plus],[preserve,one],[preserved,right],[preserver,plus],[preserves,right],[preserving,plus],[preset,one],[preside,plus],[president,person],[prespises,plus],[press,box],[pressed,down],[presser,down],[presses,finger],[pressing,down],[pressure,n],[prestige,plus],[prestigious,plus],[prestigiousness,plus],[presto,plus],[preston,person],[prestring,square],[presumption,square],[presuppositions,square],[pretend,plus],[pretended,plus],[pretending,plus],[prettily,plus],[pretty,plus],[prettyprint,square],[prev,left],[prevalent,plus],[prevent,xcorrection],[preventable,xcorrection],[preventative,plus],[preventbodyproblems,xcorrection],[prevented,xcorrection],[preventer,xcorrection],[preventheadaches,xcorrection],[preventing,xcorrection],[prevention,xcorrection],[preventive,xcorrection],[prevents,xcorrection],[preview,square],[previews,square],[previous,left],[previousbt,left],[previously,minus],[prevstate,n],[prey,down],[preying,down],[price,dollarsign],[priced,dollarsymbol],[prices,dollarsymbol],[pricing,dollarsymbol],[prickly,spine],[pride,plus],[priest,person],[prig,dash],[prim,one],[primarily,one],[primary,one],[prime,one],[primed,plus],[primer,paper],[primera,one],[primes,n],[primitive,down],[primordial,n],[prince,person],[princes,person],[princess,person],[princesses,person],[principal,person],[principals,person],[principe,country],[principias,book],[principle,square],[principles,square],[print,square],[printable,paper],[printed,square],[printer,],[printers,paper],[printf,square],[printheader,square],[printing,square],[printline,line],[printmaking,square],[printout,square],[printphonebook,book],[prints,square],[prior,left],[priori,left],[priorities,n],[prioritise,plus],[prioritised,plus],[priority,one],[priscilla,],[prism,],[prisms,cube],[prisoner,person],[prisons,xcorrection],[pristine,plus],[privacy,box],[private,box],[privately,plus],[privateness,plus],[privilege,plus],[privileged,plus],[privileges,plus],[prize,box],[prizes,plus],[prlote,paper],[prlotereview,box],[prlr,box],[prnewswire,company],[pro,plus],[proactive,plus],[probabilistic,n],[probability,one],[probable,one],[probably,plus],[probe,right],[probed,down],[probiotic,plant],[problem,xcorrection],[problematic,minus],[problematise,xcorrection],[problematised,xcorrection],[problems,a],[proboscis,right],[proc,plus],[procedural,right],[procedure,and],[procedures,right],[proceed,right],[proceeded,right],[proceedings,line],[proceeds,dollarsymbol],[process,line],[processcode,and],[processed,right],[processes,right],[processing,right],[processor,and],[processors,box],[processual,right],[proclaim,square],[proclaimed,plus],[proclamation,square],[procrastinator,person],[procreate,down],[procure,up],[procurement,right],[procures,hand],[prod,box],[prodigious,plus],[prodos,box],[prods,product],[produce,right],[produced,right],[producer,person],[producers,person],[produces,right],[producing,right],[product,leash],[production,right],[productions,box],[productive,plus],[productively,plus],[productivity,plus],[products,apple],[prof,person],[profane,minus],[profession,book],[professional,person],[professionalism,tick],[professionally,plus],[professionals,person],[professor,person],[professorial,person],[professors,person],[professorships,person],[proficient,plus],[profile,paper],[profiled,paper],[profit,plus],[profitability,dollarsymbol],[profitable,dollarsymbol],[profits,dollarsymbol],[proforma,paper],[profoundly,plus],[profs,person],[prog,square],[program,b],[programa,and],[programfinder,square],[programfindercall,right],[programmability,and],[programmable,and],[programmatic,and],[programme,book],[programmed,and],[programmer,person],[programmers,person],[programmes,book],[programming,and],[programs,square],[progress,right],[progressed,right],[progresses,right],[progressing,right],[progression,nrectangle],[progressions,line],[progressive,plus],[progs,square],[prohibited,xcorrection],[prohibitive,minus],[project,box],[projected,right],[projectile,ball],[projecting,square],[projection,square],[projections,up],[projector,right],[projectors,right],[projects,paper],[prolactin,],[prolapse,minus],[prolegomenon,square],[proletarian,person],[proletariats,person],[prolifically,n],[proline,],[prolog,paper],[prologtoplevel,up],[prologue,book],[prolong,right],[prolonged,n],[prolongs,n],[promenade,right],[prominence,plus],[prominent,plus],[prominently,plus],[promiscuity,minus],[promise,plus],[promised,plus],[promises,plus],[promising,plus],[promote,plus],[promoted,plus],[promoters,person],[promotes,plus],[promoting,plus],[promotion,up],[promotional,plus],[promotions,up],[prompt,square],[prompted,dash],[promptedread,square],[prompting,plus],[promptly,plus],[prompts,square],[prone,plus],[pronoun,person],[pronounce,mouth],[pronounced,mouth],[pronouncement,square],[pronouncing,tongue],[pronouns,person],[pronunciation,mouth],[proof,tick],[prooflistened,ear],[proofread,eye],[proofreader,person],[proofreading,paper],[proofs,paper],[prop,apple],[propaganda,minus],[propagate,right],[propagated,right],[propagating,right],[propagation,right],[propel,right],[propeller,],[propensity,plus],[proper,plus],[properly,plus],[properties,n],[property,dash],[prophet,person],[proponents,person],[proportion,n],[proportional,n],[proportionality,equals],[proportions,box],[proposal,plus],[proposals,paper],[propose,right],[proposed,paper],[proposes,plus],[proposing,plus],[proposition,square],[propositional,tick],[propositions,a],[propped,strut],[proprietary,dollarsymbol],[props,apple],[propulsion,right],[proquest,and],[pros,plus],[prose,paper],[prosecute,xcorrection],[prosody,note],[prospect,person],[prospected,plus],[prospective,plus],[prospects,plus],[prospectus,book],[prosperity,plus],[prosperous,dollarsymbol],[prostate,box],[prostheses,leg],[prosthetic,],[prostitutes,person],[prostitution,minus],[protect,plus],[protected,plus],[protectedness,plus],[protecting,plus],[protection,plus],[protectionism,plus],[protections,plus],[protective,plus],[protector,plus],[protectors,square],[protects,plus],[protein,ball],[proteins,protein],[proto,plus],[protocol,line],[protocols,dash],[protonmail,paper],[prototype,software],[prototypes,and],[protractor,n],[protruded,right],[protrudes,right],[proud,plus],[proudly,plus],[proulx,person],[proust,person],[prove,right],[proved,plus],[proven,plus],[prover,plus],[proves,right],[provide,right],[provided,right],[provider,company],[providers,person],[provides,right],[providing,right],[province,square],[proving,right],[provision,right],[provisional,plus],[proviso,plus],[provoke,minus],[provoked,right],[provoking,plus],[proximal,n],[proximity,n],[proxy,dash],[prozacs,tablet],[prozesky,person],[prue,person],[prune,minus],[pruned,n],[prunes,box],[pruning,xcorrection],[présent,zero],[ps,dash],[psc,dash],[pseudo,square],[pseudonym,square],[pseudospecs,n],[psipsina,square],[psu,university],[psych,person],[psychiatric,brain],[psychiatrically,brain],[psychiatrist,person],[psychiatrists,person],[psychiatry,person],[psychic,person],[psychoanalysis,brain],[psychoanalyst,person],[psychoanalytic,brain],[psychographic,brain],[psychological,brain],[psychologically,brain],[psychologies,square],[psychologist,person],[psychologists,person],[psychology,paper],[psychopaths,person],[psychopathy,minus],[psychosis,minus],[pt,dash],[ptsd,minus],[pty,plus],[pub,plus],[public,paper],[publication,book],[publications,book],[publicisation,plus],[publicise,plus],[publicised,plus],[publicising,plus],[publicist,person],[publicity,paper],[publicly,plus],[publish,paper],[publishable,book],[published,book],[publisher,person],[publishers,company],[publishes,book],[publishing,book],[pudding,],[puddle,water],[puffin,],[puffs,air],[pugh,person],[puja,plus],[pull,left],[pulled,right],[pulling,right],[pulls,right],[pulp,],[pulse,square],[pummeled,down],[pummeling,down],[pummelled,hand],[pummelling,hand],[pump,box],[pumped,pump],[pumping,right],[pumpkin,],[pun,equals],[punch,magazine],[punct,square],[punctual,n],[punctuation,fullstop],[punish,minus],[punished,xcorrection],[punishment,minus],[punkt,dot],[pup,],[pupils,person],[pupkebqf,dash],[puppet,],[puppets,puppet],[puppies,puppy],[puppy,],[purchase,dollarsymbol],[purchased,dollarsymbol],[purchasers,person],[purchases,dollarsymbol],[purchasing,dollarsymbol],[pure,box],[puree,],[purely,plus],[purified,plus],[purist,equals],[purity,plus],[purple,square],[purported,plus],[purporters,person],[purpose,dash],[purposeful,plus],[purposes,dash],[purse,coin],[pursue,right],[pursued,right],[pursuing,right],[pursuit,right],[pursuits,right],[purusha,air],[purushans,person],[purushas,person],[push,right],[pushed,right],[pushing,right],[pushkin,person],[puspita,person],[pussy,cat],[put,right],[putchar,square],[putin,person],[putonghua,book],[puts,right],[putstr,square],[putstrln,n],[putting,right],[puttogether,plus],[putvalue,box],[putvalues,down],[putvar,down],[puzzle,box],[puzzles,box],[pv,dash],[pvc,],[pw,square],[pwd,box],[pws,variable],[px,dash],[py,software],[pyes,tick],[pyramid,],[python,and],[pz,variable],[pǔtōnghua,book],[pǔtōnghuà,book],[q,dash],[qa,plus],[qadb,right],[qatar,country],[qb,box],[qbmusic,note],[qbpl,box],[qbrbqeiwal,dash],[qe,dash],[qi,dot],[qigong,book],[qigongbrocades,plus],[qigongmantra,square],[qigongsutra,square],[qingyu,person],[qm,dash],[qp,variable],[qrom,dash],[qs,square],[qsort,up],[qsp,dash],[qsuhxoccdwqavd,dash],[qsuxdqninknuubrqyba,dash],[qtdi,dash],[qu,square],[qua,down],[quadb,right],[quadcycles,car],[quaderni,fourrectangle],[quadrant,book],[quadrants,square],[quadratic,two],[quadrilateral,square],[quadroots,n],[quadruple,fourrectangle],[quake,minus],[qual,dash],[qualia,n],[qualification,paper],[qualificationism,dollarsymbol],[qualifications,paper],[qualified,plus],[qualify,plus],[qualifying,plus],[qualitative,n],[qualitatively,plus],[qualities,square],[quality,a],[qualitygurus,person],[qualms,minus],[quals,paper],[quantification,n],[quantified,n],[quantitative,n],[quantities,n],[quantitive,n],[quantity,n],[quantum,n],[quantumbox,box],[quantumlink,right],[quarrelled,minus],[quarryise,stone],[quarter,box],[quartered,box],[quarterly,n],[quarters,room],[quartile,square],[quartz,],[quasi,plus],[quasifontanaland,city],[quasilogics,f],[quasiquotation,square],[quason,plus],[quaver,note],[qubit,n],[queen,person],[queenie,person],[queenly,plus],[queens,person],[queensland,square],[queer,person],[quell,plus],[quench,water],[quenched,water],[quenching,water],[quentin,person],[queried,square],[querier,person],[queries,questionmark],[query,questionmark],[queryable,square],[queryb,square],[querying,square],[question,questionmark],[questionable,minus],[questioned,questionmark],[questioner,person],[questioning,questionmark],[questionmark,],[questionmode,right],[questionnaire,paper],[questionnaires,paper],[questions,questionmark],[queue,line],[queued,line],[queueing,line],[queues,threerectangle],[quick,n],[quicker,greaterthan],[quickly,plus],[quickness,n],[quicksort,up],[quicktime,and],[quiet,n],[quietly,zero],[quince,],[quinces,quince],[quincy,person],[quinlan,person],[quinn,person],[quinoa,],[quip,plus],[quips,plus],[quipu,string],[quipus,string],[quirk,minus],[quirks,minus],[quirky,minus],[quit,right],[quite,plus],[quits,left],[quitting,left],[quivers,right],[quiz,paper],[quizmaze,plus],[quizzed,paper],[quizzes,paper],[quo,person],[quoll,animal],[quora,company],[quorum,person],[quot,square],[quota,n],[quotation,square],[quote,square],[quoted,square],[quotes,square],[quoth,mouth],[quotient,n],[quoting,square],[qutie,dog],[qv,variable],[qvahhcqz,dash],[qwfmqsneubo,dash],[qx,variable],[qy,variable],[qz,variable],[r,box],[ra,dash],[raab,person],[rabbit,],[rabbits,rabbit],[rabia,person],[rabiashahid,person],[raboude,person],[rac,right],[race,right],[races,person],[rachel,person],[racial,person],[racing,right],[racism,minus],[racist,minus],[rack,],[racket,plus],[radial,circle],[radians,right],[radiation,],[radical,two],[radicalism,plus],[radically,plus],[radio,zline],[radioactive,minus],[radioairplay,company],[radios,right],[radish,],[radius,n],[rae,person],[raedt,person],[raft,],[rag,],[rage,minus],[raggatt,person],[raggatts,person],[raichel,person],[rail,line],[rain,down],[rainbow,square],[rained,water],[rainforest,tree],[raining,water],[raise,up],[raised,up],[raises,up],[raisin,raisin],[raising,up],[raisins,raisin],[raison,square],[raj,person],[rajendra,person],[rake,],[raked,rake],[rally,person],[ralph,person],[ram,],[rambada,right],[ramifications,right],[ramirez,person],[ramp,],[ramping,up],[ramponponed,person],[ramzan,person],[ran,path],[ranamukhaarachchi,person],[rancid,minus],[rancière,person],[rand,n],[random,n],[randomfn,n],[randomfns,n],[randomisation,n],[randomise,n],[randomised,n],[randomises,n],[randomized,n],[randomlist,n],[randomly,n],[randomness,n],[randvars,variable],[rang,n],[range,line],[ranged,right],[ranger,person],[ranges,line],[ranging,n],[rango,dog],[rani,person],[ranjit,person],[rank,n],[ranked,n],[ranking,n],[rankings,n],[ranks,square],[ransacked,minus],[rape,minus],[rapid,n],[rapidly,n],[rapidssl,box],[rapidtables,dash],[rapport,plus],[rapprochements,plus],[raptures,plus],[rapturous,plus],[rapturously,plus],[rapunzel,person],[rard,dash],[rare,plus],[rarely,minus],[rash,minus],[rashti,person],[rasp,minus],[raspberries,raspberry],[raspberry,berry],[rasping,minus],[rastapopolous,person],[rata,plus],[rate,n],[rated,n],[ratepayers,person],[rates,n],[rathbowne,person],[rather,minus],[ratified,plus],[ratify,plus],[rating,n],[ratings,n],[ratio,divide],[rational,plus],[rationale,paper],[rationales,square],[rationalisation,plus],[rationalist,person],[rationality,plus],[rationalizations,plus],[rationalized,plus],[rationally,plus],[ratios,r],[raven,],[raw,one],[rawgit,box],[ray,line],[rayner,person],[rays,right],[raza,person],[razor,blade],[rb,dash],[rbv,tree],[rc,dash],[rcaw,square],[rcawmp,n],[rcawp,and],[rcawpa,square],[rcawpastea,square],[rcawpspec,paper],[rcmp,person],[rct,right],[rd,dash],[rdbc,dash],[re,square],[rea,dash],[reach,dot],[reachable,plus],[reached,right],[reachedness,plus],[reaches,dot],[reaching,dot],[react,tick],[reacted,right],[reacting,square],[reaction,right],[reactions,right],[reactivity,plus],[read,book],[readability,eye],[readable,plus],[readd,eye],[readee,person],[reader,person],[readers,eye],[readfile,paper],[readily,plus],[readin,eye],[readiness,plus],[reading,book],[readinginstructions,eye],[readings,square],[readline,eye],[readme,paper],[readmejson,paper],[readmes,square],[reado,apple],[reads,book],[readsc,n],[readthedocs,eye],[readv,right],[ready,plus],[real,box],[realclean,plus],[realisation,plus],[realise,tick],[realised,plus],[realises,plus],[realising,tick],[realism,box],[realist,box],[realistic,plus],[realistically,plus],[realities,box],[reality,box],[really,plus],[realm,country],[realpeoplecastings,company],[realtime,zero],[realtimesync,and],[reap,right],[reappear,square],[reappears,plus],[reapplied,plus],[reapply,plus],[rear,left],[reared,plus],[rearrangement,n],[rearranging,right],[reason,square],[reasonable,square],[reasonableness,plus],[reasonably,plus],[reasoned,square],[reasoner,person],[reasoning,square],[reasonings,square],[reasons,square],[reassemble,box],[reassembled,plus],[reassess,plus],[reassign,equals],[reassigned,number],[reassurance,plus],[reassure,plus],[reassured,plus],[reassuring,plus],[reassuringly,plus],[reattached,plus],[reattaches,dash],[reattaching,plus],[reb,xcorrection],[rebecca,person],[rebelled,minus],[rebellious,minus],[rebelliousness,minus],[rebirth,zero],[reborn,zero],[rebound,right],[rebounder,u],[rebr,one],[rebrand,right],[rebreason,equals],[rebreasoned,equals],[rebreasoning,one],[rebreasonings,equals],[rebreathsoned,plus],[rebreathsoning,plus],[rebreathsonings,hand],[rebuilding,up],[rebuilt,building],[rebut,xcorrection],[rebuttal,xcorrection],[rebuttals,xcorrection],[rebutted,xcorrection],[rebutting,xcorrection],[rec,tick],[recalculate,plus],[recalculated,equals],[recalibrate,n],[recall,down],[recalling,plus],[recast,plus],[receipt,paper],[receipts,square],[receive,left],[received,left],[receiver,box],[receivers,receiver],[receives,left],[receiving,left],[recent,left],[recently,minus],[receptacle,box],[reception,plus],[receptionist,person],[receptive,plus],[receptor,box],[recession,minus],[recharge,plus],[recheck,plus],[recipe,paper],[recipes,apple],[recipient,person],[recipients,person],[reciprocation,right],[reciprocity,right],[recite,mouth],[recited,mouth],[recklessness,minus],[recklinghausen,minus],[reclaimed,plus],[recline,down],[reclined,down],[reclining,down],[reclusive,minus],[recn,circle],[recog,plus],[recognisability,eye],[recognisable,tick],[recognise,eye],[recognised,eye],[recogniser,tick],[recognises,tick],[recognising,eye],[recognition,plus],[recognized,eye],[recognizing,plus],[recollected,plus],[recombined,down],[recommend,plus],[recommendation,plus],[recommendations,plus],[recommended,plus],[recommending,plus],[recommends,tick],[recompile,right],[recompiling,right],[recompute,plus],[recomputed,right],[reconceptualisation,square],[reconciled,plus],[reconciles,tick],[reconciliation,plus],[reconciling,plus],[reconfigurations,plus],[reconfigured,right],[reconnect,dash],[reconnected,dash],[reconnecting,equals],[reconsider,plus],[reconstruct,up],[reconstructed,up],[reconstructing,up],[reconstruction,up],[reconstructs,box],[recontinue,right],[reconvert,right],[reconverted,right],[record,square],[recorded,line],[recordequins,person],[recorder,paper],[recorders,line],[recording,square],[recordings,square],[records,down],[recounted,n],[recover,right],[recovered,right],[recovering,xcorrection],[recovery,plus],[recreate,plus],[recreated,plus],[recreating,plus],[recreation,plus],[recruit,up],[recruited,plus],[recruiter,person],[recruiters,person],[recruiting,up],[recruitment,plus],[rect,square],[rectangle,square],[rectangles,square],[rectangular,square],[rectified,plus],[rectify,xcorrection],[rectum,tube],[recuperate,plus],[recur,plus],[recurred,circle],[recurrent,n],[recurring,circle],[recurs,circle],[recurse,circle],[recursion,circle],[recursions,circle],[recursive,dash],[recursivecall,circle],[recursively,circle],[recursivety,circle],[recursor,circle],[recyclables,circle],[recycle,plus],[recycled,amount],[recycler,plus],[recycling,circle],[red,square],[redblackduck,duck],[redcoats,person],[reddit,company],[redeem,tick],[redefine,down],[redefined,square],[redefining,right],[redemption,tick],[redesign,pen],[redesigned,paper],[redesigning,plus],[redid,plus],[redirect,right],[redirected,right],[rediscover,eye],[redisplayed,square],[redistribute,right],[redistributed,right],[redistribution,right],[redistributions,right],[redo,two],[redoing,left],[redone,tick],[redraft,paper],[redrafted,paper],[redrafting,paper],[redrafts,paper],[redrawn,pen],[redress,right],[redshift,n],[reduce,minus],[reduced,minus],[reducer,down],[reduces,minus],[reducing,one],[reductio,down],[reduction,minus],[reductionism,down],[reductions,right],[reductive,down],[reductivist,down],[redundancy,minus],[redundant,minus],[reed,tube],[reedoei,dash],[reeds,plant],[reefman,person],[reenter,down],[reentered,right],[reentering,right],[rees,person],[ref,left],[refactoring,plus],[refer,right],[referee,person],[referees,person],[reference,right],[referenced,right],[references,square],[referencing,right],[referendum,paper],[referral,paper],[referred,right],[referrer,right],[referring,dash],[refers,dash],[refill,box],[refine,plus],[refined,down],[refinement,plus],[refinements,plus],[refining,plus],[refit,plus],[reflect,n],[reflected,line],[reflecting,n],[reflection,square],[reflections,right],[reflective,right],[reflector,right],[reflects,dot],[reflex,right],[reflexively,circle],[reflexivity,circle],[reflexology,foot],[reform,plus],[reformation,plus],[reformatted,square],[reforming,plus],[reforms,plus],[reformulation,right],[refound,plus],[refracted,n],[refraction,n],[refractive,n],[reframe,square],[reframing,square],[refreeze,zero],[refreezing,box],[refresh,plus],[refreshed,plus],[refreshes,plus],[refreshing,plus],[refreshments,water],[refrigerator,],[refs,square],[refuelling,fuel],[refuge,plus],[refugee,person],[refugees,person],[refund,dollarsymbol],[refunded,dollarsymbol],[refunds,right],[refused,minus],[refutations,xcorrection],[reg,plus],[regained,right],[regal,person],[regan,person],[regard,plus],[regarded,plus],[regarding,dash],[regardless,plus],[regards,dash],[regatta,boat],[regenerate,plus],[regenerated,plus],[regenerating,plus],[regeneration,plus],[regime,square],[regimen,paper],[regiment,person],[regimes,dash],[region,square],[regional,square],[regionally,square],[regions,square],[register,paper],[registeracompany,plus],[registered,n],[registering,square],[registeringcompany,company],[registers,plus],[registrar,person],[registration,plus],[registry,square],[regogitation,minus],[regress,left],[regression,down],[regrowing,up],[regular,one],[regularity,n],[regularly,n],[regulate,line],[regulated,plus],[regulating,line],[regulation,book],[regulations,square],[regulatory,plus],[regurgitated,up],[rehabilitation,plus],[rehearsal,paper],[rehearse,plus],[rehearsed,note],[rehearsing,plus],[rehse,person],[reid,person],[reification,plus],[reified,plus],[reigned,plus],[reigning,plus],[reimagine,plus],[reimplement,plus],[reincarnation,plus],[reine,equals],[reiner,n],[reinforce,box],[reinforced,plus],[reinforcement,plus],[reinforcing,plus],[reinitialise,zero],[reinsert,box],[reinserted,right],[reinstating,plus],[reinterpret,two],[reinterpreting,book],[reintroduce,plus],[reinvented,plus],[reishi,plant],[reject,xcorrection],[rejected,xcorrection],[rejecting,xcorrection],[rejection,xcorrection],[rejects,xcorrection],[rejoiced,plus],[rejoin,plus],[rejoined,right],[rejuvenate,plus],[rejuvenated,plus],[rel,dash],[relabelled,square],[relabelling,square],[relatable,plus],[relate,dash],[related,dash],[relates,dash],[relating,dash],[relation,dash],[relational,right],[relations,dash],[relationship,right],[relationships,dash],[relative,person],[relatively,minus],[relativeness,right],[relatives,person],[relativism,right],[relativity,right],[relax,person],[relaxation,plus],[relaxed,person],[relaxes,down],[relaxing,plus],[relearning,plus],[release,right],[released,right],[releases,up],[releasing,right],[relegate,down],[relevance,equals],[relevant,tick],[relevantly,plus],[reliability,plus],[reliable,plus],[reliably,plus],[reliance,right],[reliant,plus],[relic,minus],[relied,right],[relief,plus],[relies,left],[relieve,plus],[relieved,plus],[relig,person],[religion,book],[religions,person],[religious,organisation],[relish,],[relishment,plus],[reload,plus],[reloaded,up],[reloading,up],[reloads,up],[relocate,right],[rels,dash],[reluctance,minus],[rely,right],[relying,left],[rem,brain],[remain,one],[remainder,n],[remainders,n],[remained,dot],[remaining,tworectangle],[remains,plus],[remap,right],[remark,square],[remarkable,plus],[remarks,square],[remastered,plus],[remediation,plus],[remedied,plus],[remedies,plus],[remember,brain],[remembered,plus],[remembering,right],[remembers,box],[remembrance,up],[remind,plus],[reminded,equals],[reminder,n],[reminders,square],[reminding,square],[reminds,square],[remix,note],[remixes,paper],[remnants,dot],[remorse,minus],[remote,dot],[remotehost,computer],[remotely,box],[remoteuser,person],[removal,minus],[removals,right],[remove,minus],[removebrackets,minus],[removebrackets,xcorrection],[removed,minus],[removenotice,xcorrection],[removenotrhyming,xcorrection],[remover,up],[removerepeatedterm,xcorrection],[removers,minus],[removes,xcorrection],[removetoolong,xcorrection],[removetoolongandnotrhyming,xcorrection],[removing,xcorrection],[remunerate,dollarsymbol],[remunerated,dollarsymbol],[remuneration,dollarsymbol],[remvdup,minus],[rena,person],[renaissance,square],[renal,kidney],[rename,right],[renamed,square],[renames,right],[renaming,right],[render,square],[rendered,square],[renderer,square],[renderh,note],[rendering,square],[renderline,line],[renderlineh,line],[renderlinerests,box],[renderlines,line],[renderm,note],[renders,square],[rendersong,square],[renderv,square],[renditions,plus],[renegade,person],[renegades,person],[renew,plus],[renewable,plus],[renewal,plus],[renewed,plus],[renewing,plus],[renogitation,minus],[renovated,plus],[renowned,plus],[rent,dollarsymbol],[rentable,dollarsymbol],[rental,building],[rented,dollarsymbol],[renumber,n],[reopen,up],[reorder,n],[reordered,dash],[reordering,line],[reorders,tick],[reorganisation,plus],[reorganised,plus],[reorganize,plus],[reoutputted,n],[rep,square],[repair,plus],[repaired,plus],[repairing,plus],[repairs,plus],[repay,dollarsymbol],[repeat,n],[repeated,n],[repeatedly,n],[repeating,n],[repeatlastnote,n],[repeatlastnoteh,note],[repeats,n],[repel,xcorrection],[repellant,plus],[repels,xcorrection],[repetition,n],[repetitions,n],[repetitive,two],[replace,dash],[replaceable,plus],[replacecard,card],[replaced,dash],[replacement,dash],[replacements,dash],[replacer,right],[replaces,dash],[replacesynonyms,right],[replacing,right],[replay,line],[replayed,right],[replaying,plus],[repleteness,n],[repli,plus],[replic,plus],[replicant,person],[replicants,person],[replicat,company],[replicate,two],[replicated,plus],[replicates,plus],[replicating,plus],[replication,plus],[replications,plus],[replicator,box],[replicators,plus],[replied,square],[replies,square],[reply,a],[replying,left],[repo,box],[repoint,up],[report,paper],[reported,paper],[reportedly,plus],[reporter,person],[reporters,person],[reporting,paper],[reports,paper],[reportspam,xcorrection],[repos,box],[reposition,right],[repositioning,right],[repositories,box],[repository,paper],[repositoryname,square],[reposting,square],[reprehensible,minus],[represent,right],[representation,square],[representations,square],[representative,person],[representatives,person],[represented,square],[representing,right],[represents,square],[reprint,paper],[reprocesses,right],[reproduce,right],[reproducing,two],[reproduction,right],[reproductive,plus],[reprogrammed,and],[reps,square],[republic,country],[republican,person],[repurchase,dollarsymbol],[reputable,plus],[reputation,plus],[request,left],[requested,questionmark],[requester,person],[requesters,person],[requesting,square],[requests,left],[require,left],[required,left],[requirement,tick],[requirements,paper],[requires,left],[requiring,left],[requisite,plus],[requisites,right],[reran,right],[reranked,n],[rereading,eye],[rerun,plus],[rerunning,right],[res,paper],[reschedule,right],[rescued,plus],[rescuer,person],[rescuing,plus],[resealable,bag],[research,paper],[researchable,paper],[researched,paper],[researcher,person],[researchers,person],[researchgate,paper],[researching,tick],[reseller,person],[reselling,dollarsymbol],[resemble,plus],[resembled,equals],[resembling,right],[resend,right],[resent,right],[reservation,plus],[reserve,plus],[reserved,plus],[reservedness,plus],[reserves,box],[reset,zero],[resetcps,right],[resetcpstohere,dot],[resets,left],[resetting,zero],[residences,house],[resident,person],[residential,house],[residents,person],[resides,plus],[residing,house],[residue,box],[resilience,plus],[resist,xcorrection],[resistance,minus],[resistant,plus],[resists,xcorrection],[resolute,line],[resolutely,plus],[resolution,square],[resolutions,square],[resolve,tick],[resolved,plus],[resolves,tick],[resolving,plus],[resonance,n],[resonate,plus],[resonated,plus],[resonates,plus],[resonating,plus],[resort,building],[resounded,plus],[resource,box],[resourced,plus],[resources,box],[resourcesfulnesses,plus],[resp,box],[respecified,two],[respecify,two],[respect,plus],[respected,plus],[respectful,plus],[respecting,plus],[respective,box],[respectively,tworectangle],[respects,plus],[respiratory,lung],[respond,plus],[responded,square],[respondents,person],[responder,right],[responding,right],[responds,plus],[response,tick],[responses,tick],[responsibilities,paper],[responsibility,plus],[responsible,dash],[responsibly,plus],[responsive,plus],[responsiveness,plus],[rest,threebox],[restart,dot],[restarted,right],[restarting,right],[restated,square],[restating,left],[restaurant,building],[restaurants,company],[rested,down],[resting,zero],[restlast,box],[restofgrammar,square],[restore,left],[restored,down],[restores,left],[restoring,plus],[restrain,xcorrection],[restraint,plus],[restrict,n],[restricted,box],[restrictions,minus],[restrictive,minus],[restricts,xcorrection],[restructure,box],[rests,box],[resubmission,up],[resubmit,right],[resubmitting,right],[result,n],[resulted,right],[resulting,equals],[results,a],[resume,paper],[resumes,paper],[resuming,right],[resupply,down],[resuscitate,plus],[resuscitated,plus],[resuscitating,up],[resynth,star],[resynthesis,star],[resynthesise,star],[resynthesised,star],[retail,dollarsymbol],[retailers,person],[retain,plus],[retained,plus],[retaining,plus],[retains,plus],[reteach,plus],[reteaches,square],[retention,plus],[retest,dot],[retested,plus],[rethink,square],[rethinking,brain],[retina,circle],[retired,plus],[retirement,n],[retouched,plus],[retract,left],[retractall,one],[retracted,left],[retracting,left],[retracts,left],[retrain,book],[retraining,right],[retranslate,right],[retranslated,right],[retransplantation,right],[retreat,building],[retreats,left],[retried,plus],[retries,plus],[retrievable,plus],[retrieval,plus],[retrieve,up],[retrieved,right],[retrieves,left],[retrieving,right],[retro,plus],[retry,tick],[retrying,plus],[return,left],[returnable,right],[returned,right],[returnedfromthailand,right],[returner,up],[returning,left],[returns,left],[retweet,plus],[retweeted,plus],[retyping,square],[reuploading,up],[reusable,plus],[reuse,tick],[reused,tick],[reuser,person],[reuses,tick],[reusing,tick],[rev,left],[reveal,plus],[revealed,plus],[revealing,box],[reveals,square],[revelation,plus],[revenue,dollarsymbol],[reverbnation,company],[revered,plus],[reverehealth,heart],[reversal,left],[reverse,threerectangle],[reversealgorithmfirstline,square],[reversealgorithmfourthline,square],[reversealgorithmsecondline,square],[reversealgorithmthirdline,square],[reversed,mirror],[reverses,left],[reversing,right],[revert,left],[reverted,left],[reverter,right],[reverting,left],[review,paper],[reviewed,tick],[reviewer,person],[reviewers,person],[reviewing,paper],[reviews,paper],[revise,book],[revised,eye],[revising,plus],[revision,plus],[revisited,dot],[revitalising,plus],[revived,plus],[revoke,xcorrection],[revoked,xcorrection],[revolt,minus],[revolution,circle],[revolutionary,plus],[revolutionised,plus],[revolutions,circle],[revolve,plus],[revolved,right],[reward,plus],[rewarded,plus],[rewarding,plus],[rewards,plus],[reword,square],[reworded,square],[rewording,right],[rework,plus],[reworked,plus],[rewrite,pen],[rewriter,pen],[rewriters,plus],[rewrites,two],[rewriting,pen],[rewritten,paper],[rewrote,pen],[rex,king],[reyes,person],[reynardine,person],[reynolds,person],[rezai,person],[rf,variable],[rff,right],[rgb,n],[rhapsody,note],[rhesus,monkey],[rhetoric,square],[rhetorical,right],[rhetorically,right],[rhetorician,person],[rhino,rhinoceros],[rhinoceros,rhinoceros],[rhizomatic,dash],[rhizome,dash],[rhizomes,dash],[rhizomic,dash],[rhizomicity,dash],[rhoden,person],[rhodochrosite,stone],[rhodopsin,ball],[rhomboid,square],[rhs,right],[rhubarb,],[rhyme,equals],[rhymed,equals],[rhymes,equals],[rhyming,equals],[rhys,person],[rhythm,note],[rhythmic,note],[rhythms,note],[ri,dash],[riable,dash],[ribbon,],[ribbons,square],[rica,country],[rice,person],[rich,coin],[richard,person],[richardson,person],[richer,dollarsign],[richmond,suburb],[rick,person],[ricky,person],[ricocheting,right],[ricoeur,person],[rid,xcorrection],[ridden,minus],[ride,car],[ridge,box],[ridiculed,minus],[riding,right],[ridley,person],[rife,minus],[riff,note],[rig,book],[rigatoni,],[right,],[rightbracketnext,square],[rightful,plus],[rightmost,right],[rightness,tick],[rightnesses,plus],[rights,plus],[rightup,up],[rigid,box],[rigmaroles,plus],[rigor,plus],[rigorous,tick],[rigorously,plus],[rigorousness,tick],[rigour,plus],[riley,dog],[rim,box],[ring,],[ringing,n],[rinsed,water],[rinsing,water],[rip,person],[ripe,plus],[ripenesses,plus],[rise,up],[rises,up],[rising,up],[risk,xcorrection],[risking,minus],[risks,minus],[risky,minus],[rissole,],[rita,person],[ritetag,company],[rittel,person],[rivalry,minus],[river,],[rivers,right],[rivista,person],[rizzacasa,person],[rizzo,person],[rl,dash],[rli,institute],[rlist,line],[rlr,right],[rlsatarget,dash],[rm,xcorrection],[rmit,building],[rmoldtmpfile,paper],[rms,n],[rn,dash],[rna,n],[rnh,company],[rnn,right],[rnns,right],[ro,right],[road,],[roadblock,minus],[roadhouse,house],[roads,road],[roadside,right],[roald,person],[roared,lion],[roast,n],[roasted,n],[roasting,n],[rob,person],[robbie,person],[robbins,person],[robe,],[robin,person],[robopod,],[robot,person],[robotic,person],[roboticist,person],[robotics,person],[robots,box],[robust,plus],[robyn,person],[rochelle,person],[rock,note],[rocked,plus],[rocket,],[rocking,right],[rocks,rock],[rococo,square],[rod,person],[rode,right],[rodrigues,person],[rods,rod],[rog,person],[rogaining,plus],[roger,person],[rohan,person],[roi,person],[roity,plus],[rold,dash],[role,person],[roleplay,paper],[roles,person],[roll,],[rolled,ball],[rolling,ball],[roman,person],[romania,country],[rome,city],[romeo,person],[romeos,restaurant],[ron,person],[ronson,person],[roof,],[rook,],[room,],[roomdict,book],[roomdifferencet,d],[roomdt,variable],[roomend,variable],[roomlength,n],[roomlengtht,n],[roompartname,square],[rooms,room],[roomstring,variable],[roomstringth,variable],[roomvalues,variable],[roomx,variable],[roomy,variable],[roomz,variable],[roosting,down],[root,dash],[roots,right],[rope,],[ropensci,software],[ropes,rope],[rorty,person],[rose,],[rosemary,person],[rosemont,person],[rosenberg,person],[rosenkranz,person],[roses,rose],[rosettacode,and],[rosin,],[ross,person],[rossman,person],[rosuly,rose],[rosy,rose],[rot,circle],[rota,company],[rotarian,person],[rotarians,person],[rotary,building],[rotaryprahran,company],[rotate,semicircle],[rotated,arc],[rotating,right],[rotation,right],[rote,plus],[rotoract,dash],[rots,right],[rotunda,],[rough,minus],[roughly,minus],[round,dot],[rounded,circle],[rounding,down],[rounds,right],[roundtable,table],[roused,plus],[rousing,plus],[rousseau,person],[route,right],[routenote,company],[router,line],[routes,right],[routine,paper],[routinely,plus],[routines,and],[routining,left],[routledge,book],[roux,],[row,line],[rowdy,minus],[rowed,right],[rower,person],[rowing,right],[rows,line],[royal,king],[royalmelbournehospital,hospital],[royals,person],[royalties,dollarsymbol],[royalty,person],[rpg,plus],[rpl,tick],[rpv,company],[rqidlbhwp,dash],[rr,dash],[rrs,variable],[rs,variable],[rsa,tick],[rst,dash],[rsvp,left],[rsync,right],[rtch,dot],[rtcmiux,dash],[rtf,paper],[rto,school],[ru,paper],[rub,down],[rubbed,down],[rubber,box],[rubbing,equals],[rubbish,minus],[rubinstein,person],[rubric,v],[rubrics,square],[ruby,],[rudd,person],[rude,minus],[rudeness,minus],[rudimental,box],[rudolf,person],[rue,dash],[rug,],[rugby,ball],[ruishihealthcare,plus],[rule,plus],[rulea,square],[ruled,plus],[rulename,square],[ruler,],[rules,and],[rulesx,plus],[ruling,plus],[ruminating,minus],[rumination,minus],[rummaged,down],[run,path],[runa,tick],[runabout,box],[runall,right],[runb,tick],[rune,tick],[rung,],[rungrammarly,software],[rungs,rung],[runhosting,company],[runn,dash],[runne,tick],[runner,person],[runners,right],[running,shoe],[runny,water],[runs,path],[runtime,n],[runz,tick],[rural,paddock],[rush,right],[rushing,right],[russell,person],[russia,country],[russian,paper],[rut,box],[ruth,person],[ruts,box],[rv,dash],[rvawki,dash],[rvs,dash],[rw,dash],[rwanda,country],[rxcawp,and],[ryan,person],[ryde,person],[rye,bread],[s,box],[sa,dash],[saas,dollarsymbol],[sabalcore,company],[sac,plus],[saccharine,sugar],[sack,],[sacked,xcorrection],[sacking,xcorrection],[sacrament,paper],[sacramento,city],[sacred,plus],[sacrifice,minus],[sacrifices,minus],[sacrificing,xcorrection],[sacrosanctnesses,plus],[sacrosancts,plus],[sad,tear],[sadface,],[sadler,person],[sadly,minus],[sadness,],[safari,and],[safe,a],[safeguard,plus],[safeguarding,plus],[safeguards,plus],[safely,plus],[safer,plus],[safest,tick],[safety,plus],[sage,person],[sages,person],[saggy,down],[saharan,sand],[said,speechballoon],[sail,boat],[sailed,right],[sailor,person],[sailors,person],[sails,sail],[saint,person],[saints,person],[sake,plus],[sal,variable],[salad,tomato],[salami,],[salaries,dollarsymbol],[salary,dollarsymbol],[saldana,person],[sale,dollarsign],[saleable,dollarsymbol],[salek,person],[salem,person],[salerno,city],[sales,dollarsign],[salespeople,person],[salesperson,person],[salivary,liquid],[salivating,water],[sally,person],[salmon,square],[salome,person],[salon,building],[salt,],[saltaté,right],[salted,salt],[salts,crystal],[salty,salt],[salute,plus],[saluted,plus],[salvador,country],[salvage,plus],[sam,person],[samad,person],[samadhi,plus],[samantha,person],[samaritan,person],[samaritans,person],[samatha,plus],[same,equals],[sameexp,equals],[sameexperience,dot],[sameness,equals],[samenesses,equals],[samepn,equals],[samoa,country],[samovar,tea],[sample,box],[samplereport,paper],[samples,n],[samplestock,box],[sampling,n],[samsung,tablet],[samwalrus,person],[san,city],[sanctioning,plus],[sanctity,plus],[sand,],[sandals,],[sandbox,box],[sandelowski,person],[sandiford,person],[sandpaper,],[sandra,person],[sands,person],[sandstone,],[sandwich,],[sandwiches,sandwich],[sandy,person],[sane,plus],[sang,note],[sanitary,square],[sanity,plus],[sank,down],[sanskrit,square],[sansserifprint,box],[santa,city],[santo,person],[santos,person],[sao,country],[sap,],[sapient,plus],[sapling,tree],[saplings,tree],[sapub,dash],[sara,person],[sarah,person],[sarasota,person],[sarkozys,person],[sarte,person],[sasnett,person],[sassmaiden,person],[sat,seat],[satanism,religion],[satchwell,person],[satell,person],[satellite,],[satiated,plus],[satisfaction,plus],[satisfactorily,plus],[satisfactory,plus],[satisfiability,one],[satisfiable,plus],[satisfied,plus],[satisfies,tick],[satisfy,tick],[satisfying,tick],[saturated,water],[saturday,square],[sauce,],[saucepan,],[saucer,],[saucers,saucer],[sauces,sauce],[saucy,plus],[saudi,country],[sauer,person],[saunders,person],[sausage,],[sav,eye],[savant,person],[savants,person],[save,plus],[saveable,down],[saved,tick],[saver,plus],[savers,plus],[saves,tick],[saving,plus],[savings,plus],[savoured,plus],[savoury,mayonnaise],[savvy,company],[saw,eye],[sawtooth,square],[sawyer,person],[sax,tube],[saxophone,],[say,speechballoon],[sayer,person],[sayers,person],[saying,mouth],[says,speechballoon],[sb,dash],[sbr,paper],[sc,dash],[scaffolding,box],[scalability,tworectangle],[scalable,tworectangle],[scale,nrectangle],[scaled,up],[scaler,n],[scales,up],[scaling,n],[scammer,minus],[scams,minus],[scan,eye],[scandizzo,person],[scanf,left],[scanned,square],[scanner,right],[scanning,eye],[scarborough,city],[scarcity,minus],[scared,minus],[scarf,],[scarring,minus],[scary,minus],[scattered,down],[scavenger,person],[scenario,box],[scenarios,box],[scene,square],[scenes,box],[scenic,tree],[scent,perfume],[scented,nose],[schachte,person],[schapzazzure,plus],[schedule,square],[scheduled,dash],[scheduler,n],[schedules,square],[scheduling,square],[schema,square],[scheme,right],[schemes,square],[schepisi,person],[schisandra,plant],[schizophrenia,minus],[schizophrenic,minus],[schmitt,person],[scholar,person],[scholarising,person],[scholarly,person],[scholars,person],[scholarship,dollarsymbol],[scholarships,down],[schonfelder,person],[school,building],[schoolmaster,person],[schools,building],[schoolyard,],[schroeter,person],[schudmack,person],[schumacher,person],[schwarz,person],[schwerdt,person],[sci,testtube],[scicluna,person],[science,testtube],[scienced,testtube],[sciencedirect,company],[sciences,testtube],[scientific,and],[scientifically,testtube],[scientist,person],[scientists,person],[scintillated,plus],[scintillation,plus],[scissors,],[scone,],[scones,scone],[scoop,],[scooped,scoop],[scooping,down],[scoops,ball],[scope,dash],[scopes,dash],[scopic,up],[scopus,dot],[score,n],[scored,n],[scores,n],[scoring,n],[scorn,minus],[scorned,minus],[scorning,minus],[scots,person],[scott,person],[scottjeffrey,person],[scoundrels,person],[scourer,],[scouring,down],[scout,person],[scouted,eye],[scp,two],[scrap,xcorrection],[scraped,right],[scraper,],[scraping,right],[scrapped,down],[scratch,line],[scratcher,person],[scratching,down],[scratchy,minus],[scrawn,minus],[screams,line],[screen,square],[screening,square],[screens,square],[screenshot,square],[screenshots,square],[screw,],[screwdriver,],[screwed,down],[scribbled,pen],[scribbling,pen],[scripsi,book],[script,paper],[scripted,paper],[scripting,paper],[scripts,paper],[scriptural,book],[scripture,book],[scriptures,book],[scriptwriter,person],[scrn,square],[scrnsong,note],[scrnsongs,note],[scroll,paper],[scrolling,square],[scrotum,ball],[scrubbing,down],[scrumptious,plus],[scrutinise,tick],[scrutiny,plus],[scuba,air],[scull,person],[sculpted,chisel],[sculptor,person],[sculpture,],[scuola,building],[sdc,company],[sdcinternetics,company],[sde,air],[sdk,box],[se,dash],[sea,water],[seahorse,],[seal,],[seale,person],[sealed,plus],[sealing,equals],[seamless,plus],[seamlessly,line],[seances,dash],[search,square],[searchable,plus],[searched,eye],[searchers,person],[searches,square],[searching,eye],[seashells,shell],[seashore,line],[season,square],[seasons,square],[seat,],[seated,seat],[seats,seat],[seaweed,plant],[sebastien,person],[sec,line],[secateurs,],[secolsky,person],[second,two],[seconda,line],[secondary,two],[secondhen,duck],[secondly,n],[secondness,two],[seconds,one],[secondsvaluea,variable],[secondsvalueb,variable],[secondvar,variable],[secondvarname,square],[secondvarparent,variable],[secondvarparentname,square],[secrecy,xcorrection],[secret,questionmark],[secretary,person],[secreted,right],[secretly,plus],[secrets,square],[secs,n],[sectarian,box],[sectest,plus],[sectichords,n],[section,square],[sectional,box],[sections,square],[sector,box],[sectors,circle],[secular,plus],[secularism,dot],[secularity,zero],[secularly,plus],[secure,plus],[secured,plus],[securely,plus],[securepay,company],[security,plus],[sedate,minus],[see,square],[seeable,eye],[seed,],[seedlings,seed],[seeds,seed],[seeing,eye],[seek,left],[seeker,person],[seekers,person],[seeking,eye],[seeks,hand],[seem,tick],[seemed,plus],[seeming,plus],[seemingly,plus],[seems,plus],[seen,eye],[seep,down],[seer,person],[sees,eye],[seesaw,line],[segment,line],[segmentation,square],[segmented,box],[segments,box],[segs,variable],[segunda,box],[segv,square],[sehj,dash],[seiende,plus],[seize,hand],[seizing,hand],[select,dash],[selected,plus],[selectee,person],[selecting,tick],[selection,square],[selections,square],[selective,plus],[selector,person],[selectpositions,n],[selects,square],[selecttouching,equals],[selena,person],[self,person],[selfcontrol,and],[selfhood,person],[selfie,square],[selfish,minus],[selfishness,minus],[selflessness,plus],[sell,dollarsign],[sellar,person],[seller,person],[sellers,person],[selling,dollarsymbol],[sells,dollarsymbol],[selves,person],[selye,person],[semantic,dash],[semantics,square],[semblance,plus],[semester,square],[semesters,square],[semi,box],[semicircle,],[semicolon,square],[semidet,square],[semily,n],[seminal,tube],[seminar,room],[seminars,room],[semitones,square],[semiz,person],[semler,person],[semolina,],[semver,n],[sen,square],[send,right],[sender,person],[sending,right],[sends,right],[sendspace,company],[senegal,country],[senior,dot],[senorita,person],[sensable,plus],[sensation,plus],[sensations,finger],[sense,eye],[sensed,eye],[senses,eye],[sensible,plus],[sensing,plus],[sensitive,hand],[sensitively,plus],[sensitivities,plus],[sensitivity,plus],[sensor,eye],[sensors,eye],[sensory,finger],[sent,right],[sentence,box],[sentencechars,square],[sentenceendpunctuation,fullstop],[sentences,paper],[sentenceswordsfrompos,square],[sentencewithspaces,square],[sentencewordsfrompos,square],[sentience,plus],[sentient,plus],[sentiently,plus],[sentiment,plus],[sents,paper],[seo,plus],[seoclerk,company],[seoclerks,company],[sep,square],[sepandpad,square],[separate,two],[separated,box],[separately,tworectangle],[separateness,box],[separates,box],[separating,box],[separation,box],[september,square],[septuagenarian,seventyrectangle],[septum,box],[sequel,book],[sequence,n],[sequencer,square],[sequences,n],[sequencing,and],[sequential,right],[sequin,],[sequitur,right],[sera,person],[serbia,country],[serene,plus],[serengitis,minus],[serial,n],[series,square],[serious,tick],[seriously,plus],[seriousness,plus],[serotonin,ball],[servant,person],[servants,person],[serve,right],[served,plus],[server,right],[servers,computer],[serves,hand],[service,plus],[services,plus],[servicing,plus],[serviette,],[serving,plate],[ses,plus],[sesame,seed],[sesquicentenary,n],[session,square],[sessionaim,square],[sessions,paper],[set,a],[setarg,n],[setback,minus],[setof,box],[sets,fiverectangle],[settable,equals],[settee,],[setting,box],[settings,n],[settle,plus],[settled,person],[settlement,plus],[settler,person],[settlers,person],[settling,down],[setton,person],[setup,plus],[seven,sevenrectangle],[sevenfold,box],[sevenrectangle,],[seventh,sevenrectangle],[seventyrectangle,seventyrectangle],[several,n],[severe,n],[severed,minus],[severely,minus],[sew,right],[sewage,ball],[sewed,right],[sewing,thread],[sewn,right],[sex,person],[sexes,person],[sexily,plus],[sexism,minus],[sexist,minus],[sexual,down],[sexualities,person],[sexuality,n],[sexually,plus],[sexy,plus],[seychelles,country],[sf,dash],[sfile,paper],[sfu,university],[sgetcode,and],[sh,software],[shabbanhykenever,box],[shade,square],[shaded,shade],[shades,square],[shadow,square],[shadowing,square],[shadowkill,person],[shadows,square],[shaft,line],[shah,person],[shakabanga,dash],[shake,cup],[shaker,],[shakers,shaker],[shakespeare,person],[shakespearean,person],[shaking,up],[shakuhachi,box],[shall,right],[sham,minus],[shame,minus],[shamisen,box],[shampoo,],[shamrock,person],[shanai,box],[shandy,book],[shane,person],[shank,person],[shape,diamond],[shaped,box],[shapes,square],[shaping,ball],[share,right],[shared,square],[shareholder,person],[shareholders,person],[shares,square],[sharing,square],[shark,],[sharon,person],[sharp,dot],[sharpe,person],[sharpen,plus],[sharpened,plus],[sharpener,blade],[sharpening,dot],[sharpness,plus],[shauna,person],[shave,square],[shaved,hair],[shaver,],[shaving,right],[shavings,line],[she,person],[sheared,right],[shearing,down],[shed,],[sheds,shed],[sheep,],[sheer,plus],[sheeran,person],[sheet,paper],[sheetofpaper,paper],[sheets,paper],[sheila,person],[shelf,],[shell,box],[shelled,box],[shelley,person],[shelling,plane],[shells,dash],[shells,line],[shelter,],[sheltered,square],[shelves,shelf],[shen,person],[shepherd,dog],[shetgovekar,person],[sheu,person],[shevardnadzes,plus],[shibboleth,plus],[shield,square],[shields,square],[shift,square],[shifting,right],[shifts,square],[shilito,person],[shimbun,newspaper],[shine,down],[shines,star],[shining,star],[shiny,square],[ship,],[shipped,right],[shipping,square],[ships,ship],[shirley,person],[shirt,],[shirts,shirt],[shirtsleeve,],[shitsued,plus],[shmoop,dash],[shoal,coral],[shock,minus],[shocking,minus],[shoe,],[shoelaces,],[shoes,shoe],[shone,light],[shook,minus],[shoot,equals],[shooting,box],[shoots,up],[shop,dollarsymbol],[shopper,person],[shoppers,person],[shopping,apple],[shops,dollarsymbol],[shore,],[short,dash],[shortage,minus],[shortcake,],[shortcomings,minus],[shortcourses,line],[shortcut,right],[shortcuts,right],[shorten,n],[shortened,n],[shortening,minus],[shorter,n],[shortest,n],[shorthand,square],[shortlist,square],[shortlisted,plus],[shortlisting,n],[shortly,n],[shortness,n],[shorttree,tree],[shot,square],[shotgun,minus],[shou,plant],[should,dash],[shoulder,],[shoulders,],[shouldn,xcorrection],[shouted,square],[show,square],[showalter,person],[showbiz,square],[showcase,plus],[showed,finger],[shower,water],[showered,water],[showering,water],[showers,water],[showing,square],[shown,square],[showpaperpdf,paper],[showreel,square],[shows,stage],[shredded,down],[shredding,up],[shrewd,plus],[shse,company],[shuffle,down],[shulman,person],[shunted,right],[shut,minus],[shutter,plane],[shuttle,spacecraft],[shuttlecock,],[shuttlecocks,shuttlecock],[shy,minus],[si,variable],[sibling,person],[siblings,person],[sic,tick],[siccen,plus],[sichians,person],[sick,minus],[sickness,minus],[sicling,plus],[side,square],[sided,dot],[sides,square],[sidestepping,right],[sideways,right],[sierra,country],[siesta,bed],[sieve,],[sieved,sieve],[sieving,sieve],[sifted,down],[sifter,down],[sig,square],[sigcrashhandler,plus],[sigcse,dash],[siggets,square],[siggraph,software],[sight,eye],[sighted,eye],[sighting,eye],[sights,eye],[sign,square],[signage,square],[signal,one],[signaled,signal],[signaling,right],[signalled,square],[signalling,right],[signals,plus],[signature,a],[signatures,tick],[signed,square],[significance,plus],[significances,plus],[significant,plus],[significantly,plus],[signification,plus],[signified,right],[signifier,square],[signifies,plus],[signify,right],[signifying,dash],[signing,square],[signorelli,person],[signpost,square],[signposted,signpost],[signposting,square],[signposts,signpost],[signs,square],[signup,square],[signups,plus],[sigtramp,square],[silence,zero],[silent,zero],[silently,zero],[silicon,],[silk,],[silly,minus],[silo,cylinder],[silos,box],[silva,person],[silver,ball],[sim,box],[similar,equals],[similarities,equals],[similarity,equals],[similarly,equals],[simile,equals],[simmered,n],[simmo,person],[simon,person],[simone,person],[simple,a],[simplephilosophy,square],[simpler,down],[simplest,dot],[simplicity,dot],[simplification,one],[simplifications,minus],[simplified,one],[simplifies,down],[simplify,dot],[simplifying,one],[simplistic,plus],[simply,plus],[simpsons,person],[simulacrum,box],[simulate,box],[simulated,and],[simulates,and],[simulating,box],[simulation,box],[simulationees,person],[simulations,box],[simulator,and],[simulatory,square],[simultanenously,equals],[simultaneous,one],[simultaneously,two],[simut,person],[sin,minus],[since,dot],[sincere,plus],[sincerely,plus],[sincerity,plus],[sine,function],[sing,note],[singapore,country],[singer,person],[singh,person],[singing,note],[single,one],[singles,one],[singleton,one],[singletons,one],[singly,box],[singular,one],[sink,box],[sinkhole,hole],[siphoned,down],[sipped,water],[sipping,water],[sir,person],[siri,and],[sister,person],[sit,seat],[sitar,],[site,paper],[sitemap,paper],[sites,paper],[sitkin,person],[sitting,],[situated,dot],[situation,square],[situational,plus],[situations,box],[sity,box],[siva,person],[six,],[sixrectangle,],[sixteen,n],[sixth,sixrectangle],[sixty,n],[size,n],[sized,ruler],[sizes,n],[sizzling,plus],[sjgrant,person],[skeletal,bone],[skeleton,],[skelter,right],[skene,person],[sketch,square],[sketched,pen],[sketching,pen],[skewed,minus],[skewer,],[skewered,skewer],[skewering,skewer],[skewers,skewer],[ski,],[skianis,person],[skies,box],[skiied,ski],[skiing,right],[skill,tick],[skilled,plus],[skillful,plus],[skillman,person],[skills,a],[skim,box],[skimmed,box],[skin,square],[skip,two],[skipped,right],[skipping,right],[skips,right],[skittle,],[skivvy,],[skull,],[skuuudle,company],[sky,square],[skye,dog],[skyeae,person],[skyrocket,up],[skyscraper,building],[sl,variable],[sla,paper],[slack,minus],[slander,minus],[slang,minus],[slanted,right],[slap,hand],[slash,],[slate,square],[slated,plus],[slave,person],[slavery,minus],[slaves,person],[sld,up],[sleek,square],[sleep,],[sleepily,plus],[sleeping,bed],[sleepinterval,minus],[sleeps,bed],[sleepy,minus],[sleeve,],[sleeved,sleeve],[sleeves,sleeve],[slept,bed],[slg,plus],[slice,box],[sliced,box],[slicer,down],[slices,box],[slicing,knife],[slid,right],[slide,down],[slider,n],[sliders,right],[slides,square],[sliding,right],[slight,n],[slightly,dash],[slingshot,],[slip,minus],[slipped,down],[slippery,water],[slipping,right],[slope,up],[slopes,up],[slot,hole],[slotted,right],[sloughed,right],[slovakia,country],[slovenia,country],[slow,n],[slowdown,down],[slowed,minus],[slower,lessthan],[slowing,line],[slowly,zero],[slowness,n],[slp,box],[slpconverter,right],[slug,],[sm,right],[small,amount],[smaller,lessthan],[smallest,n],[smarbangers,sausage],[smart,tick],[smarter,plus],[smartphone,phone],[smartphones,phone],[smartwatch,],[smedley,person],[smell,rose],[smelled,nose],[smelling,nose],[smells,nose],[smelt,nose],[smile,],[smiled,face],[smiley,face],[smiling,mouth],[smith,person],[smithereen,plus],[smock,],[smoke,],[smoked,smoke],[smoking,minus],[smooth,line],[smoothed,plus],[smoother,plus],[smoothie,cup],[smoothies,cup],[smoothing,down],[smoothly,line],[smorgasbord,bread],[smp,and],[sms,right],[smurf,person],[smv,right],[smythe,person],[sn,variable],[snack,apple],[snail,],[snake,],[snakes,snake],[snap,box],[snaps,dot],[snapshot,square],[snapshots,paper],[sneakers,shoe],[sneeze,nose],[sniff,nose],[sniffing,nose],[sniper,dot],[snooker,ball],[snow,],[snowflake,],[snowy,duck],[snuff,],[snuffed,xcorrection],[snuggled,down],[snyder,person],[so,right],[soaked,water],[soap,],[soapie,square],[soc,book],[socatoan,circle],[soccer,ball],[soci,book],[social,person],[socialisation,plus],[socialise,plus],[socialised,plus],[socialising,plus],[socialism,equals],[socialist,person],[socialists,person],[socially,person],[societal,person],[societally,person],[societies,person],[societol,book],[societological,room],[societologically,person],[societologist,person],[societology,person],[society,person],[socio,person],[sociocultural,plus],[socioeconomic,dollarsymbol],[sociologia,person],[sociological,book],[sociology,book],[sociologygroup,person],[sock,sock],[socks,sock],[socrates,person],[socratic,person],[soda,bottle],[sodhi,person],[sofa,],[soft,square],[softened,down],[softening,down],[softens,down],[softer,plus],[softly,n],[softness,plus],[software,square],[soh,dot],[soil,],[soimort,person],[sol,plus],[sola,ball],[solar,sun],[sold,dollarsign],[soldier,person],[soldiers,person],[soldiership,person],[sole,],[solely,one],[soles,],[solfatonotes,note],[solfege,note],[solfegenotetonote,right],[solicitude,minus],[solid,box],[solidarity,plus],[solids,box],[soliloquy,paper],[solipsism,minus],[solitude,one],[solo,one],[solomon,country],[solos,person],[sols,n],[solstices,n],[solution,plus],[solutions,tick],[solvable,plus],[solve,tick],[solved,tick],[solver,equals],[solves,plus],[solving,tick],[soma,body],[somali,person],[somalia,country],[some,one],[somebody,person],[someday,n],[somehow,dash],[someone,person],[somersault,circle],[something,one],[sometime,n],[sometimes,one],[someway,minus],[somewhat,plus],[somewhere,dot],[son,person],[sonar,square],[song,square],[songs,book],[songwriter,person],[songwriting,note],[sonic,note],[sonorous,plus],[sons,person],[soon,n],[sooner,greaterthan],[soothing,plus],[sophia,person],[sophie,person],[sophisticated,plus],[sophistication,plus],[soprano,person],[sore,minus],[soreness,minus],[sorgenti,person],[sorrow,minus],[sorry,xcorrection],[sort,a],[sortbyx,line],[sortcn,x],[sortcna,x],[sortcnremvdup,right],[sorted,line],[sorting,right],[sorts,line],[sostalgia,minus],[sostalgic,minus],[sostalgically,minus],[soufflé,],[sought,plus],[soul,],[soulful,plus],[souls,person],[sound,note],[soundcloud,company],[sounded,note],[sounding,dash],[soundly,plus],[soundness,plus],[sounds,note],[soundtrack,line],[soundtracks,note],[soup,bowl],[sour,minus],[source,square],[sourced,plus],[sources,dot],[sourcing,book],[sourness,lemon],[sousa,person],[south,down],[southampton,suburb],[southern,down],[southgate,person],[southwest,right],[souvenir,book],[soviet,country],[sowed,seed],[sown,down],[sowwell,person],[soy,glass],[sp,paper],[space,box],[spacecraft,],[spaced,box],[spaceport,building],[spaces,space],[spaceship,spacecraft],[spacetime,line],[spaceweb,paper],[spacing,n],[spadaccini,person],[spade,],[spades,box],[spaghetti,],[spain,country],[spam,box],[span,line],[spaniel,dog],[spanish,paper],[spare,plus],[spared,plus],[sparing,plus],[sparingly,plus],[spark,box],[sparks,dot],[spars,right],[sparse,minus],[spartacus,person],[spatial,box],[spatiality,box],[spatially,box],[spatiotemporal,dot],[spatula,],[spatulas,spatula],[speak,speechballoon],[speakable,mouth],[speaker,person],[speakers,person],[speaking,mouth],[speaks,mouth],[spear,],[speared,spear],[spearhead,right],[spearing,spear],[spec,paper],[special,plus],[specialisation,tick],[specialisations,plus],[specialise,plus],[specialised,down],[specialises,plus],[specialising,dot],[specialism,plus],[specialisms,book],[specialist,person],[specialists,person],[speciality,book],[specialization,line],[specialized,plus],[specially,plus],[speciation,dash],[species,animal],[specific,tick],[specifically,one],[specification,paper],[specifications,dash],[specificity,one],[specified,tick],[specifier,plus],[specifiers,square],[specifies,square],[specify,paper],[specifying,n],[specimen,box],[speckles,dot],[specs,paper],[specstage,right],[specstages,dot],[spectacles,glasses],[spectacularly,plus],[spectrum,line],[speculated,plus],[speculation,plus],[sped,right],[speech,mouth],[speechballoon,],[speeches,square],[speechwriter,person],[speed,n],[speedily,n],[speeding,n],[speeds,n],[spel,square],[spell,square],[spellbinding,plus],[spelled,square],[speller,person],[spelling,square],[spells,square],[spelt,square],[spencer,person],[spend,dollarsymbol],[spenders,person],[spending,dollarsymbol],[spent,dollarsymbol],[sperm,],[spf,n],[sphere,ball],[spheres,ball],[spherical,sphere],[sphermulated,ball],[sphinx,],[sphygmomanometer,],[spiccato,box],[spice,plant],[spiced,up],[spicer,person],[spider,],[spiel,square],[spike,n],[spill,down],[spilling,water],[spin,top],[spinach,],[spinal,spine],[spindle,line],[spine,],[spinner,circle],[spinoza,person],[spiral,circle],[spiraled,spiral],[spiralling,circle],[spirit,person],[spirits,glass],[spiritual,person],[spiritualism,dash],[spirituality,plus],[spiritually,tick],[spitting,amount],[splash,water],[splashed,water],[splatted,minus],[splayed,square],[spleen,],[splices,box],[split,two],[splitfurther,box],[splitfurthert,box],[splitintosent,box],[splitintosentences,box],[splitonphrases,box],[splits,two],[splitting,two],[spoiled,minus],[spoke,speechballoon],[spoken,speechballoon],[spokes,line],[spokespeople,person],[spokesperson,person],[sponge,],[sponged,sponge],[sponges,sponge],[sponsor,person],[sponsored,dollarsymbol],[sponsors,person],[sponsorships,dollarsymbol],[spontaneous,zero],[spool,],[spoolos,person],[spoon,],[spooned,spoon],[spoonerisms,square],[spoonful,spoon],[spoons,spoon],[spoorthi,person],[sport,ball],[sporting,ball],[sports,ball],[spot,tick],[spotify,company],[spotless,and],[spotlight,light],[spots,dot],[spotted,eye],[spout,],[spray,right],[sprayed,down],[spread,right],[spreading,right],[spreads,right],[spreadsheet,plus],[spreadsheets,square],[spreams,right],[sprig,leaf],[spring,],[springcm,dash],[springer,book],[springs,water],[sprinkler,water],[sprint,right],[sprints,right],[sprites,square],[spurned,plus],[spurns,plus],[spy,eye],[sq,multiplication],[sql,software],[sqrt,line],[sqrtpm,square],[squadron,person],[square,],[squared,square],[squares,square],[squash,],[squat,down],[squatted,down],[squatting,down],[squeezed,square],[squeezer,],[squeezing,hand],[squelch,orange],[squelching,orange],[squib,minus],[squirted,right],[squirter,right],[squirting,right],[squished,down],[squishing,down],[src,paper],[sread,eye],[sree,person],[sri,country],[srl,company],[srv,computer],[ss,s],[ssaged,dash],[ssh,software],[ssi,right],[ssivoziruuezia,dash],[ssiws,paper],[sskip,dash],[ssl,line],[ssn,dash],[st,dash],[stabbed,down],[stabbing,minus],[stabilise,plus],[stability,box],[stable,box],[stably,box],[stacey,person],[stack,box],[stacked,box],[stackexchange,paper],[stacking,box],[stackoverflow,paper],[stacks,box],[staff,person],[stafford,company],[stage,],[stagecraft,stage],[staged,n],[stages,dot],[stagger,dash],[staggered,box],[staggering,dash],[staging,plus],[stagnation,minus],[staining,ink],[stainless,zero],[stairs,step],[stake,],[staked,stake],[stakeholder,person],[stakeholders,person],[stakes,plus],[staley,person],[stalin,person],[stalk,],[stall,stall],[stallion,horse],[stalls,stall],[stalwarts,plus],[stamp,square],[stamped,square],[stamps,square],[stan,person],[stance,person],[stand,box],[standard,a],[standardisation,n],[standardised,plus],[standards,square],[standing,person],[standpoint,dot],[standpoints,square],[stands,box],[stanford,building],[stanley,person],[staple,dash],[stapler,],[star,],[starboard,right],[starches,ball],[stardom,plus],[starfish,],[staring,eye],[starjazzled,star],[stark,person],[starnow,star],[starred,plus],[stars,star],[start,startingline],[started,plus],[starter,zero],[starters,one],[starting,one],[startingline,],[startrec,dot],[starts,one],[startup,one],[startups,company],[stasis,plus],[stat,n],[state,a],[stated,paper],[stately,plus],[statement,paper],[statements,square],[states,n],[statesman,person],[stateterritory,square],[static,box],[stating,person],[station,box],[stationisation,building],[stations,building],[statistical,tick],[statistically,n],[statistics,plus],[statisticshowto,plus],[stats,plus],[statu,plus],[statue,],[statuette,],[status,a],[statuses,square],[stave,line],[stay,down],[stayed,dot],[staying,one],[stayingness,down],[stays,plus],[stc,dash],[stdio,box],[stdlib,book],[stdout,line],[stead,plus],[steadfast,plus],[steadily,n],[steady,plus],[steal,left],[stealing,minus],[stealth,plus],[steam,],[steamed,steam],[steel,line],[steep,n],[steeper,up],[steer,right],[steered,right],[steering,right],[stefanovic,person],[stellar,star],[stem,line],[stemming,up],[stemmingly,line],[stems,line],[stencil,],[step,],[stepclassical,box],[steph,person],[stephanie,person],[stephanies,person],[stephen,person],[stepped,step],[stepping,step],[steppopclassical,box],[steps,step],[stepwise,step],[stereo,tworectangle],[stereotypes,square],[sterile,minus],[sterilising,plus],[sterility,zero],[sterling,person],[stern,person],[steve,person],[steven,person],[stevens,person],[stevenson,person],[stew,pot],[stewart,person],[stewed,n],[stick,box],[sticker,square],[stickies,square],[stickily,equals],[sticking,equals],[sticks,box],[sticky,equals],[stiff,minus],[stiffness,n],[stigma,minus],[still,zero],[stillbirth,minus],[stillbirths,minus],[stillbornness,minus],[stillness,box],[stills,square],[stilltodo,right],[stimulate,plus],[stimulated,plus],[stimulating,plus],[stimulation,plus],[stimulatory,plus],[stimulus,plus],[stinoj,person],[stipulated,plus],[stir,right],[stirred,right],[stirring,circle],[stitched,needle],[stlp,n],[stmts,square],[stock,box],[stocking,box],[stockings,],[stocks,box],[stokes,person],[stole,minus],[stolen,minus],[stoller,person],[stomach,],[stone,],[stones,minus],[stonier,person],[stonnington,suburb],[stood,person],[stool,],[stop,],[stopped,n],[stopping,n],[stops,zero],[stopwatch,n],[storage,n],[store,building],[stored,down],[stores,building],[storey,building],[stories,book],[storing,down],[storm,water],[storms,right],[story,paper],[storyboard,square],[storyboarded,square],[storybook,book],[storytelling,paper],[stott,person],[stove,],[str,square],[straight,line],[straightened,line],[straightforward,square],[straightforwardly,plus],[strained,minus],[straining,down],[straitsresearch,company],[strand,line],[stranded,minus],[strange,minus],[strangelove,person],[strangely,plus],[stranger,person],[strangers,person],[strap,],[strapped,strap],[straps,square],[strategic,paper],[strategically,plus],[strategies,square],[strategy,a],[stratosphere,box],[stravinsky,person],[straw,],[strawberries,strawberry],[strawberry,berry],[straws,straw],[stray,minus],[stream,line],[streamed,right],[streaming,line],[streamline,right],[streamlined,line],[streamlining,line],[streams,line],[street,],[streets,street],[strength,n],[strengthen,plus],[strengthened,plus],[strengthening,plus],[strengthens,plus],[strengths,plus],[stress,xcorrection],[stressed,minus],[stresses,minus],[stressful,minus],[stretch,software],[stretched,right],[stretches,right],[stretching,right],[strict,tick],[strictly,plus],[strictness,plus],[stricture,box],[strike,down],[strikes,dot],[striking,plus],[string,twobox],[stringa,square],[stringchars,square],[stringconcat,plus],[stringconcat,threerectangle],[stringconcata,box],[strings,square],[stringsorvars,or],[stringth,variable],[stringtobreason,square],[stringtonumber,right],[stringx,square],[strip,square],[stripe,company],[stripes,line],[stripped,minus],[strips,square],[strive,plus],[striving,plus],[strlen,n],[stroke,line],[strokes,right],[stroking,right],[strong,n],[stronger,greaterthan],[strongest,plus],[strongholds,plus],[strongly,plus],[stroto,down],[strove,plus],[struck,box],[struct,box],[structs,box],[structural,box],[structuralism,box],[structurally,box],[structure,box],[structured,box],[structurers,person],[structures,box],[structuring,box],[struggle,minus],[struggled,minus],[struggles,minus],[struggling,minus],[strut,box],[struts,zline],[strutted,right],[stuart,person],[stub,square],[stubborn,minus],[stubs,square],[stuck,minus],[stuckey,person],[stud,ball],[studded,up],[student,person],[students,person],[studi,room],[studied,person],[studies,book],[studio,room],[studios,room],[studiosity,company],[studious,pen],[study,room],[studying,person],[stueduc,dash],[stuff,box],[stumble,minus],[stump,cylinder],[stunning,plus],[stunt,right],[stunts,right],[stupefying,minus],[stupid,minus],[sturdy,box],[style,a],[styled,plus],[styles,plus],[stylesheet,square],[styling,plus],[stylisation,plus],[stylise,line],[stylised,plus],[stylish,plus],[stylized,square],[stylus,pen],[su,person],[sub,dash],[subarguments,v],[subatom,square],[subatomic,ball],[subatoms,square],[subbotsky,person],[subbranch,dash],[subcategories,square],[subcategory,dash],[subclauses,dash],[subclinical,down],[subconsciously,box],[subcultures,plus],[subcutaneous,down],[subdirectory,dash],[subdomains,square],[subfunctions,right],[subgoals,plus],[subheadings,square],[subj,square],[subject,person],[subjective,plus],[subjectively,person],[subjectivism,person],[subjectivist,plus],[subjectivity,person],[subjects,square],[subjectsandobjects,square],[subjugated,down],[subjugation,down],[subjunctive,plus],[sublevel,dash],[sublevels,dash],[sublime,plus],[subliminal,n],[sublist,square],[sublists,square],[submarine,],[submenu,square],[submerged,water],[submerging,down],[submission,paper],[submissions,right],[submit,paper],[submits,up],[submitted,paper],[submitting,paper],[subordinate,down],[subordinating,down],[subordination,down],[subpar,minus],[subparts,box],[subpredicate,down],[subpredicates,down],[subroutines,square],[subscale,n],[subscribed,plus],[subscriber,person],[subscribers,person],[subscription,paper],[subscriptions,paper],[subsentences,square],[subsequent,right],[subset,box],[subsets,box],[subsidiaries,down],[subsidiary,right],[subsidies,minus],[subsidise,minus],[subsidised,minus],[subsidising,dollarsymbol],[subsidy,down],[subsisted,plus],[subsistence,apple],[subspecies,person],[subspecifications,square],[substance,box],[substances,box],[substandard,minus],[substantial,box],[substantiate,plus],[substantiated,plus],[substantive,plus],[substinence,plus],[substitute,down],[substituted,dash],[substitutes,box],[substitutevarsa,dash],[substituting,box],[substitution,right],[substrate,box],[substring,square],[substrings,square],[subsume,up],[subsumed,down],[subterm,variable],[subtitle,square],[subtle,plus],[subtleties,one],[subtlety,plus],[subtopics,square],[subtract,minus],[subtracted,minus],[subtracting,minus],[subtraction,minus],[subtractions,subtraction],[subtractive,minus],[subtractors,minus],[subtree,box],[subtrees,dash],[subtypes,dash],[suburb,square],[suburbs,suburb],[subvar,variable],[subvariables,box],[subvars,variable],[succ,right],[succeed,plus],[succeeded,plus],[succeeds,plus],[success,tick],[successes,plus],[successful,a],[successfully,tick],[succession,right],[successions,right],[successive,right],[successively,right],[successor,person],[successors,right],[succleton,water],[succt,up],[succulent,plus],[succulently,water],[such,dash],[suck,up],[sucked,up],[sucking,right],[suction,up],[sudan,country],[sudo,plus],[sue,person],[sued,minus],[suess,person],[suffer,minus],[suffered,minus],[sufferer,person],[sufferers,minus],[suffering,minus],[sufferings,minus],[suffice,plus],[sufficiency,plus],[sufficient,plus],[sufficiently,plus],[suffix,right],[suffixes,square],[sufism,book],[sugar,],[sugars,sugar],[sugary,sugar],[sugg,plus],[suggest,plus],[suggested,dash],[suggesting,square],[suggestion,plus],[suggestions,square],[suggestive,plus],[suggestively,plus],[suggests,right],[suhas,person],[suicidal,minus],[suicide,minus],[suit,],[suitability,plus],[suitable,plus],[suitcase,],[suitcases,suitcase],[suite,box],[suited,equals],[suiting,plus],[suits,plus],[sulfide,ball],[sulk,minus],[sullivan,person],[sully,person],[sultan,person],[sultana,],[sultanas,sultana],[sum,n],[sumlist,square],[summaries,square],[summarisation,square],[summarise,square],[summarised,square],[summarises,square],[summarising,square],[summarized,paper],[summary,square],[summative,n],[summatively,n],[summed,n],[summer,sun],[summing,plus],[summit,n],[sums,plus],[sumsq,plus],[sumtimes,n],[sun,star],[sunbathe,down],[sunburn,minus],[sunday,square],[sunderland,person],[sunfeltnesses,plus],[sung,note],[sunglasses,],[sunjay,person],[sunk,down],[sunlight,sun],[sunny,sun],[sunrise,sun],[sunscreen,],[sunset,sun],[sunshade,],[sunshine,light],[sunstroke,minus],[suo,a],[suor,water],[sup,up],[super,up],[superabled,plus],[superannuation,dollarsymbol],[superb,plus],[supercard,software],[supercomputer,box],[supercomputers,and],[supercomputing,and],[superconductors,right],[superego,up],[superficial,down],[superficiality,minus],[superfluous,minus],[superfoods,apple],[superhero,person],[superimpose,square],[superimposed,equals],[superimposes,down],[superimposing,square],[superintendent,person],[superior,plus],[superiors,person],[supermarket,line],[supermarkets,building],[supermodel,person],[superordinate,n],[superpower,plus],[superseded,xcorrection],[superstar,person],[supervise,plus],[supervised,plus],[supervisor,person],[supervisors,person],[suppl,plus],[supple,plus],[supplement,plus],[supplemental,plus],[supplementary,plus],[supplemented,plus],[supplements,plus],[supplied,plus],[supplier,right],[suppliers,person],[supplies,apple],[supply,right],[supplying,right],[support,square],[supported,box],[supporter,person],[supporters,person],[supporting,box],[supportive,plus],[supports,right],[suppose,plus],[supposed,right],[supposedly,plus],[suppress,xcorrection],[suppressed,down],[supremely,plus],[sur,dash],[surd,n],[surds,n],[sure,plus],[surely,plus],[sureness,plus],[surf,box],[surface,square],[surfaces,square],[surfer,person],[surfing,water],[surgeon,person],[surgery,box],[suriname,country],[surmised,plus],[surname,square],[surnames,square],[surpass,right],[surpassed,right],[surpassing,right],[surplus,plus],[surprise,star],[surprised,minus],[surprises,plus],[surprising,minus],[surprisingly,plus],[surreal,n],[surrected,up],[surrendering,plus],[surrogate,person],[surrounded,box],[surrounding,right],[surroundings,box],[surveillance,eye],[survey,paper],[surveyed,paper],[surveying,plus],[surveyor,person],[surveys,paper],[survival,plus],[survive,line],[survived,plus],[surviving,plus],[survivor,person],[surya,sun],[susa,person],[susan,person],[susannah,person],[susceptible,minus],[suscicipi,dash],[suscicipid,dash],[sushi,],[susie,person],[suspected,plus],[suspend,xcorrection],[suspended,zero],[suspenseful,n],[suspension,line],[suspensions,zero],[suspicious,minus],[sustain,plus],[sustainability,plus],[sustainable,plus],[sustained,plus],[sustaining,right],[sustenance,apple],[sutherland,person],[sutra,a],[sutras,square],[suzanne,person],[suzie,person],[svetlana,person],[sw,dash],[swab,],[swallow,stomach],[swallowed,down],[swallowing,apple],[swam,right],[swamp,water],[swan,],[swans,swan],[swanston,street],[swap,x],[swapped,right],[swapping,dash],[swaps,dash],[swashbuckling,plus],[swaziland,country],[sweat,],[sweaty,water],[sweden,country],[swedish,person],[sweep,right],[sweet,apple],[sweetened,sugar],[sweetening,plus],[sweeter,sugar],[sweetinvincibleandprayedfor,plus],[sweetly,sugar],[sweetness,sugar],[sweets,ball],[swept,right],[swi,dot],[swim,right],[swimmer,person],[swimmers,person],[swimming,water],[swin,university],[swinburne,university],[swine,pig],[swing,right],[swinging,right],[swings,swings],[swipe,right],[swipl,twobox],[swirl,right],[swirled,right],[swish,plus],[swiss,country],[switch,dash],[switchboard,dot],[switched,one],[switches,dash],[switching,dash],[switzerland,country],[sword,],[swore,plus],[swot,plus],[swung,right],[sx,variable],[sy,square],[syd,city],[sydn,person],[sydney,dash],[syll,variable],[syllable,square],[syllablecount,n],[syllables,square],[syllabus,paper],[syllogistical,right],[symbol,square],[symbolic,x],[symbolise,dash],[symbolised,dash],[symbolises,right],[symbolising,a],[symbolized,n],[symbolizing,equals],[symbols,a],[symmetrical,equals],[symmetrically,right],[symmetry,equals],[sympathetic,plus],[sympathised,plus],[sympathising,plus],[sympathy,plus],[symposium,room],[symptoms,dash],[syn,equals],[synapses,neuron],[synaptic,dot],[sync,equals],[synchronisation,equals],[synchronise,equals],[synchronised,tworectangle],[synchroniser,tick],[synchrotron,and],[syncing,equals],[syncopated,note],[syndrome,minus],[syndromes,minus],[synergita,company],[synergy,one],[synlait,company],[syno,equals],[synocommands,equals],[synogism,equals],[synogistic,equals],[synogistically,right],[synogrammars,square],[synologic,right],[synon,equals],[synonym,equals],[synonymous,equals],[synonymously,equals],[synonyms,equals],[synopsis,paper],[synopup,puppy],[synothoughts,square],[syntactic,square],[syntactical,square],[syntax,dash],[syntaxes,dash],[synth,tube],[synthese,book],[syntheses,dot],[synthesis,star],[synthesise,box],[synthesised,dash],[synthesiser,box],[synthesising,right],[synthesized,box],[synthetic,box],[synthetical,right],[synthetically,box],[syria,country],[syringe,],[syrup,],[sys,and],[syspred,b],[system,dash],[systematic,plus],[systematically,plus],[systematising,plus],[systemctl,square],[systemic,and],[systems,box],[sysutils,right],[syydw,dash],[sz,variable],[t,variable],[ta,variable],[tab,square],[table,paper],[tabled,n],[tables,table],[tablespoons,spoon],[tablet,box],[tablets,tablet],[tabling,equals],[tablon,person],[taboos,minus],[tabs,square],[tabular,square],[tackle,xcorrection],[tackled,minus],[tackling,xcorrection],[tact,plus],[tactful,plus],[tactfully,plus],[tactic,plus],[tactical,plus],[tactics,plus],[tactile,finger],[tadpole,],[tadpoles,tadpole],[tae,paper],[taeass,book],[tafta,company],[tag,square],[tagged,square],[tagger,square],[tagging,square],[tagline,line],[tags,square],[tai,up],[taiko,box],[tail,twobox],[taila,variable],[tailed,n],[tailor,person],[tailored,plus],[tailoring,jacket],[tails,down],[tait,person],[tajikistan,country],[take,left],[takeaway,plus],[taken,left],[takeover,plus],[taker,plus],[takers,right],[takes,left],[taking,left],[takings,dollarsymbol],[tale,paper],[talent,person],[talented,plus],[talents,plus],[tales,book],[talip,company],[talis,person],[talk,person],[talked,speechballoon],[talker,mouth],[talking,speechballoon],[talks,paper],[tall,n],[tallest,n],[tallied,n],[tallies,n],[tally,n],[tamas,person],[tambourine,],[tame,plus],[tamouridis,person],[tampered,minus],[tamsin,person],[tan,person],[tandfonline,book],[tandy,person],[tang,person],[tangent,dot],[tangents,line],[tangerine,],[tangible,box],[tango,box],[tangy,orange],[tank,box],[tanks,tank],[tantalized,plus],[tantra,plus],[tantrum,minus],[tanzania,country],[tanzanian,person],[tanzanians,person],[tao,dot],[tap,one],[tape,],[tapes,square],[taping,tape],[taponada,plus],[tapped,down],[tapper,person],[tapping,person],[taps,down],[tar,tar],[taras,person],[target,dot],[targeted,dot],[targetid,dash],[targeting,dot],[targets,dot],[tariffs,n],[tarnish,minus],[tarpaulin,fabric],[tart,],[task,book],[taskforce,person],[tasking,square],[tasks,paper],[taste,tongue],[tasted,tongue],[tasteful,apple],[tasteless,minus],[tastes,tongue],[tasting,tongue],[tasty,apple],[tat,dash],[tatiana,person],[tattoos,square],[taught,tick],[tautological,right],[tautology,right],[tawid,person],[tax,n],[taxation,dollarsymbol],[taxes,dollarsymbol],[taxi,car],[taxing,money],[taxonomised,dash],[taxonomy,dash],[tay,person],[taylor,person],[taylorfrancis,person],[tb,variable],[tbody,square],[tbroker,company],[tc,variable],[tchaikovsky,person],[tcm,plus],[tcp,plus],[td,square],[te,person],[tea,water],[teach,person],[teacher,person],[teachermagazine,book],[teachers,person],[teaches,room],[teaching,person],[teacups,cup],[team,person],[teams,person],[teamwork,person],[tear,],[tearing,minus],[tears,water],[tease,minus],[teased,minus],[teasing,minus],[tech,box],[techconnect,company],[technavio,dash],[technical,a],[technically,and],[technician,person],[technique,paper],[techniques,one],[technium,company],[techno,note],[technological,and],[technologically,and],[technologies,software],[technologisation,and],[technology,and],[techopedia,paper],[tecture,plus],[ted,person],[teddies,toy],[tedious,minus],[tee,person],[teenage,n],[teenager,person],[teenagers,person],[teeth,tooth],[tel,n],[telecast,box],[telegram,square],[telegraph,right],[telepathic,right],[telepathically,dash],[telepaths,person],[telepathy,right],[telephone,],[teleport,right],[teleportation,right],[teleported,right],[teleporter,right],[teleporting,right],[teleports,right],[teletypist,person],[television,box],[tell,mouth],[telling,mouth],[tells,speechballoon],[telnet,square],[telstra,company],[temerity,minus],[temp,box],[tempel,person],[temper,minus],[temperance,plus],[temperature,n],[tempered,plus],[template,paper],[templates,paper],[temple,building],[temples,building],[tempo,n],[tempold,box],[temporal,n],[temporality,n],[temporally,n],[temporarily,plus],[temporary,plus],[temporium,n],[tempos,n],[temptation,minus],[tempted,plus],[ten,tenrectangle],[tenacity,plus],[tenancy,square],[tenants,person],[tend,plus],[tended,right],[tendency,plus],[tendon,fibre],[tendons,right],[tends,plus],[teng,person],[tennis,ball],[tenor,person],[tenrectangle,],[tens,tenrectangle],[tense,minus],[tension,minus],[tensorflow,software],[tent,],[tentacle,line],[tentacles,tentacle],[tentaclising,tentacle],[tenth,n],[tents,tent],[tenuously,minus],[tenure,right],[tenured,paper],[teo,person],[ter,n],[tere,person],[teresa,person],[term,b],[terma,box],[termb,box],[termed,square],[terminal,square],[terminally,n],[terminals,square],[terminalvalue,n],[terminates,n],[termination,xcorrection],[terminations,zero],[terminator,box],[terminology,square],[termius,box],[termless,zero],[terms,b],[ternary,threerectangle],[terraformed,earth],[terraforming,planet],[terrain,map],[territory,square],[terror,minus],[terrorism,minus],[tertiary,n],[tes,person],[tesla,person],[tess,person],[tessellating,square],[tesseract,software],[test,paper],[testa,tick],[testable,tick],[testcicd,v],[testcut,box],[tested,dash],[testees,person],[tester,tick],[testers,person],[testes,ball],[testicle,ball],[testimonial,plus],[testimonials,paper],[testimony,square],[testing,tick],[testnumber,n],[testopen,tick],[tests,tick],[testtrace,tick],[testtube,],[tether,line],[tetrahedron,],[tetris,square],[texas,state],[text,paper],[texta,square],[textarea,square],[textbook,book],[textbooks,book],[textbroker,company],[textedit,box],[textgenrnn,algorithm],[texting,box],[textoffice,box],[texts,paper],[texttoalg,right],[texttobr,right],[texttobrall,box],[texttobrc,equals],[texttobreasoning,right],[texttobreasonings,software],[texttobreathsonings,right],[texttobrqb,apple],[texttobrqbpl,box],[texttobrth,right],[textual,square],[textured,square],[textures,square],[tf,dash],[tfe,dash],[tfile,square],[tfjs,algorithm],[tfn,n],[tg,variable],[th,n],[thailand,country],[than,greaterthan],[thank,plus],[thanked,plus],[thankful,plus],[thankfully,plus],[thanking,plus],[thanks,hand],[that,up],[thats,equals],[the,up],[thea,person],[theater,stage],[theatre,stage],[theatrical,stage],[theatricised,stage],[thebreasonings,apple],[theconversation,paper],[theft,minus],[theguardian,company],[their,left],[them,person],[thematic,square],[theme,square],[themed,square],[themes,square],[themselves,person],[then,right],[thens,right],[theodor,person],[theol,book],[theologian,person],[theological,person],[theologically,person],[theologist,person],[theology,book],[theorem,n],[theorems,right],[theoretical,right],[theoretically,and],[theories,square],[theorised,plus],[theorist,person],[theorists,person],[theory,and],[ther,person],[therapeutic,plus],[therapists,person],[therapy,plus],[there,down],[therefore,right],[thereness,dot],[theres,down],[thermo,n],[thermometer,n],[thermonuclear,n],[thermos,flask],[thermostats,n],[thes,equals],[thesaurus,book],[these,down],[theses,book],[thesis,book],[theta,n],[they,person],[thick,n],[thicket,plant],[thickness,n],[thief,person],[thigh,],[thighs,],[thin,box],[thinbook,square],[thing,pencilsharpener],[thingness,box],[things,pencilsharpener],[think,brain],[thinker,person],[thinkers,person],[thinking,a],[thinks,plus],[thinkstock,person],[third,three],[thirdly,plus],[thirds,square],[thirst,water],[thirsty,tongue],[thirty,thirtyrectangle],[thirtyrectangle,],[thiruvengadam,person],[this,down],[thisby,person],[thoma,person],[thomas,person],[thompson,person],[thomson,person],[thon,plus],[thonet,person],[thorne,person],[thorough,plus],[thoroughly,plus],[thoroughness,plus],[those,down],[thoseacquisitions,plus],[thosesales,plus],[though,xcorrection],[thought,box],[thoughtful,square],[thoughtfully,box],[thoughts,square],[thousand,n],[thousands,n],[thread,line],[threaded,line],[threading,right],[threads,line],[threat,minus],[threatened,minus],[threatening,minus],[threatens,minus],[threats,minus],[three,threerectangle],[threebox,],[threerectangle,],[threes,threerectangle],[threshold,],[thresholds,n],[threw,ball],[throat,],[throne,],[through,dash],[throughout,n],[throughs,right],[throw,ball],[throwing,right],[thrown,right],[throws,up],[ths,dash],[thstreet,street],[thu,square],[thumar,person],[thumb,],[thumbnails,square],[thumbs,finger],[thunberg,person],[thunder,line],[thunderstorm,water],[thunks,box],[thurs,square],[thursday,square],[thursdays,square],[thus,right],[thy,left],[thymine,ball],[thymus,],[thyroid,box],[ti,dash],[tial,n],[tian,person],[tiananmen,gate],[tianity,person],[tianrenheyi,plus],[tibetan,person],[tick,],[ticked,tick],[ticket,square],[ticketing,square],[tickets,square],[ticking,tick],[tickle,plus],[tickled,plus],[tickling,plus],[tiddlies,counter],[tiddly,counter],[tide,line],[tides,right],[tidied,dash],[tidy,plus],[tie,],[tied,equals],[tier,square],[tiers,line],[ties,dash],[tight,n],[tighten,xcorrection],[tightened,xcorrection],[tightening,down],[tightly,n],[tightrope,right],[tights,],[til,dash],[tilda,person],[tile,],[till,right],[tilt,right],[tilted,triangle],[tilting,right],[tim,person],[time,],[timed,n],[timeframes,n],[timeless,plus],[timelily,n],[timeline,line],[timelines,line],[timely,zero],[timemachine,],[timemachinetest,plus],[timenow,n],[timeout,n],[timeouts,zero],[timephone,n],[timer,n],[times,n],[timespace,box],[timestamp,variable],[timetable,square],[timetables,square],[timetodo,n],[timetravelgrandfatherparadoxsolved,tick],[timezone,square],[timing,n],[timings,n],[timist,minus],[timor,country],[timothy,person],[timpani,drum],[tin,],[tina,person],[tinalia,plus],[ting,ear],[tinge,dot],[tinkle,dot],[tins,can],[tinsel,],[tinsels,tinsel],[tinted,n],[tiny,n],[tion,dash],[tip,up],[tipped,plus],[tips,plus],[tire,minus],[tired,minus],[tiredly,minus],[tiredness,minus],[tires,minus],[tiring,minus],[tis,equals],[tissue,box],[tissues,box],[tiszai,person],[tit,variable],[titillations,plus],[title,square],[titled,square],[titles,square],[titlez,square],[tizziwinkle,hedgehog],[tl,box],[tla,plus],[tlalli,person],[tln,variable],[tm,company],[tmp,paper],[tmps,paper],[tn,variable],[to,right],[toadie,person],[toadstool,],[toast,],[toasted,toast],[toastmaster,company],[toastmasters,company],[tobacco,minus],[tobago,country],[tobias,person],[toboggan,],[toby,person],[toc,dash],[today,square],[todays,square],[toddler,person],[todo,tick],[toe,],[toenail,],[toes,toe],[toffee,],[tofu,],[together,dash],[toggle,right],[togo,country],[toi,person],[toiled,hand],[toilet,down],[toiletries,toothbrush],[toity,plus],[token,n],[tokenise,square],[tokeniser,square],[tokenises,square],[tokens,variable],[tolang,paper],[told,speechballoon],[tolerance,plus],[tolerate,plus],[tolerated,plus],[tolines,right],[tolkeinesque,person],[toller,dollarsymbol],[tollway,road],[tolower,square],[tom,drum],[tomato,],[tomatoes,tomato],[tombs,room],[tome,country],[tomfromglasgow,person],[tommillswyn,person],[tomorrow,square],[tonal,n],[tonally,n],[tone,smile],[toned,plus],[tones,n],[tonewheel,note],[tong,dash],[tonga,country],[tongs,],[tongue,],[tonics,note],[tonified,plus],[tonight,square],[tonk,ball],[tonsils,ball],[tony,person],[too,plus],[took,left],[tool,hammer],[toolbox,box],[toole,person],[tools,right],[toom,person],[toomey,person],[toorak,suburb],[tooth,],[toothbrush,],[toothpaste,],[toothpick,],[top,square],[topaz,stone],[topic,a],[topical,square],[topics,tworectangle],[topk,box],[toplevel,dot],[topliss,person],[topologically,dot],[topology,right],[topped,up],[topper,up],[topping,],[topple,down],[topresentandpagesto,right],[tops,up],[toptal,company],[tor,person],[torch,],[torso,],[tort,minus],[torte,cake],[torus,],[tos,paper],[toss,right],[tossed,up],[tot,baby],[total,uppert],[totalbars,n],[totality,n],[totalled,n],[totallength,n],[totally,n],[totals,n],[totalvars,n],[totem,plus],[totted,right],[touch,square],[touched,finger],[touches,equals],[touching,equals],[tough,minus],[toupée,],[tour,right],[toured,right],[touring,right],[tourism,right],[tourist,person],[tourists,person],[tournament,right],[tournaments,greaterthan],[tours,right],[tow,right],[toward,right],[towards,right],[towardsdatascience,right],[towel,],[towels,towel],[tower,],[town,],[towords,right],[toxic,minus],[toxins,minus],[toy,box],[toyota,car],[toys,toy],[tp,square],[tpfile,square],[tquk,company],[tr,right],[tra,plus],[trace,dash],[traced,line],[traces,line],[trachea,tube],[tracing,line],[track,tick],[tracked,plus],[tracking,tick],[tracks,line],[tracksnumber,n],[tract,box],[tractatus,book],[traction,right],[tractor,right],[tracy,person],[trade,book],[traded,right],[tradesman,person],[tradesmanship,plus],[tradie,person],[trading,right],[tradition,plus],[traditional,plus],[traditionally,plus],[traditions,book],[traffic,right],[trafficking,minus],[tragedy,minus],[tragically,minus],[trail,right],[trailer,note],[trails,right],[train,box],[trained,tick],[trainee,person],[trainees,person],[trainer,person],[trainers,person],[training,paper],[trainings,paper],[trains,person],[trait,square],[traits,square],[trajectories,right],[trajectory,right],[tram,],[tramlgreturningfromshowreel,tram],[trams,tram],[tran,right],[trancing,right],[tranfrom,left],[trans,right],[transaction,dollarsymbol],[transactional,box],[transactionally,right],[transactions,dollarsymbol],[transceiver,dot],[transcend,line],[transcended,up],[transcendence,up],[transcendences,up],[transcendental,line],[transcendentalism,up],[transcending,up],[transcends,up],[transcribe,right],[transcribed,right],[transcribing,pen],[transcript,paper],[transcription,right],[transcripts,paper],[transdisciplinarity,dot],[transdisciplinary,right],[transf,right],[transfer,right],[transferability,right],[transferable,right],[transference,right],[transferred,right],[transferring,right],[transfers,right],[transfixed,equals],[transform,right],[transformation,right],[transformational,right],[transformations,right],[transformative,right],[transformed,right],[transforming,right],[transforms,right],[transgender,person],[transgress,minus],[transgressed,minus],[transgression,minus],[transgressions,minus],[transhumanism,right],[transistors,right],[transition,right],[transitioned,right],[transitioning,right],[transitionism,right],[transitions,right],[transitive,ball],[transitively,right],[transitivity,right],[translatable,tick],[translatative,right],[translate,right],[translated,apple],[translatedtext,square],[translates,right],[translating,right],[translation,right],[translationa,paper],[translationdictionary,book],[translationi,right],[translationmanagementsystem,box],[translationpairs,box],[translations,right],[translationword,square],[translationwords,square],[translator,person],[translators,right],[transliterations,square],[translocal,right],[translucent,right],[transmission,right],[transmit,right],[transmitted,right],[transmitter,zline],[transmitters,right],[transmitting,right],[transparency,square],[transparent,n],[transparently,plus],[transplanted,right],[transplanting,right],[transport,right],[transported,right],[transporting,right],[transpose,right],[transposing,right],[transsexual,person],[transsexualisation,right],[transversion,right],[transversions,right],[transvert,right],[transverted,dot],[transverter,right],[transverting,right],[transverts,right],[trap,box],[trapeze,],[trapezium,],[traps,stick],[trash,box],[trauma,minus],[traumatic,minus],[traumatised,minus],[travails,book],[travel,train],[travelled,right],[traveller,person],[travellers,person],[travelling,right],[travels,right],[traversal,right],[traversals,down],[traverse,right],[traversed,right],[traverses,right],[traversing,down],[trawl,right],[trawled,right],[trawling,right],[trawls,right],[tray,],[trays,tray],[treacle,],[treasure,coin],[treasurer,person],[treasures,coin],[treasury,dollarsymbol],[treat,apple],[treated,plus],[treating,book],[treatment,tick],[treatments,book],[treats,plus],[treble,note],[tree,],[trees,tree],[treesort,up],[treetime,n],[treetops,tree],[tremolo,line],[trend,right],[trends,up],[trent,person],[triad,triangle],[trial,line],[trialed,n],[trialled,plus],[trialling,tick],[trials,n],[trialy,n],[triangle,square],[triangles,triangle],[triangular,triangle],[triangulate,plus],[triangulation,triangle],[triathlon,n],[tribal,person],[tribe,person],[tributaries,right],[trice,plus],[triceps,muscle],[trick,plus],[tricked,plus],[tricks,plus],[tricky,minus],[triculating,down],[tricycle,],[trident,],[tried,tick],[trier,dash],[tries,tick],[trigger,tick],[triggered,plus],[triggering,right],[triggers,plus],[trigonometric,triangle],[trilogy,book],[trim,square],[trimester,square],[trimino,triangle],[trimming,down],[trinidad,country],[trinity,threerectangle],[trip,right],[tripartite,box],[triple,threerectangle],[triplec,dash],[triplets,three],[tripped,minus],[tripping,minus],[trips,right],[tristram,book],[triumph,plus],[triumphant,plus],[trivia,square],[trivial,plus],[trivially,plus],[trivium,threerectangle],[trobe,person],[troff,person],[trojan,minus],[troll,person],[trolley,],[trombone,],[trope,right],[tropes,plus],[trophy,],[tropical,water],[trotsky,person],[troubadour,person],[trouble,minus],[troubles,minus],[troubleshooting,plus],[trousers,],[trout,fish],[troy,person],[truck,],[true,one],[trump,person],[trumpet,],[trumpeting,trumpet],[trumpets,trumpet],[truncate,n],[truncated,n],[truncates,n],[truncating,n],[trundle,right],[trunk,],[trust,plus],[trusted,plus],[trusting,plus],[trustingly,plus],[trusts,plus],[trustworthiness,plus],[trustworthy,plus],[truth,one],[truthful,plus],[truthfully,plus],[truths,plus],[try,dash],[trying,tick],[tryoutputs,variable],[tryoutputsa,variable],[trytranslations,tick],[ts,dash],[tst,variable],[tsunami,water],[tt,dash],[ttb,apple],[ttfa,dash],[tts,dash],[ttspec,square],[ttt,dash],[tttt,variable],[tty,square],[ttys,dash],[tub,box],[tuba,tube],[tube,box],[tubes,tube],[tubing,tube],[tubising,tube],[tubular,tube],[tubules,tube],[tuck,plus],[tucked,box],[tucker,person],[tucking,down],[tue,square],[tues,],[tuesday,square],[tuesdays,square],[tuition,plus],[tulip,flower],[tumour,minus],[tumours,minus],[tune,note],[tuned,note],[tunes,note],[tunic,],[tuning,n],[tunisia,country],[tunnel,],[tunnels,box],[tuple,tworectangle],[tuples,square],[turbine,right],[ture,plus],[tures,plus],[turin,city],[turing,person],[turkey,country],[turkmenistan,country],[turmeric,],[turn,square],[turnaround,right],[turnbull,person],[turncut,line],[turndebug,tick],[turned,two],[turnequals,right],[turners,right],[turning,right],[turnip,],[turnitin,box],[turnoffas,zero],[turnover,circle],[turnpike,right],[turns,tworectangle],[turntables,box],[turquoise,stone],[turtle,],[turtleart,right],[turtles,turtle],[tutankhamen,person],[tute,room],[tutes,room],[tutor,person],[tutored,plus],[tutorial,room],[tutorials,room],[tutoring,book],[tutors,person],[tuvalu,country],[tuxedo,],[tuxedos,tuxedo],[tv,],[tw,company],[twain,person],[tween,box],[tweet,bird],[twelfth,n],[twelve,twelverectangle],[twelverectangle,twelverectangle],[twenty,twentyrectangle],[twentyman,person],[twentyrectangle,],[twice,two],[twigg,person],[twin,person],[twirl,right],[twirled,circle],[twirling,right],[twist,right],[twisted,x],[twisting,right],[twists,right],[twitch,n],[twitched,n],[twitches,n],[twitter,building],[two,],[twobox,],[twodimensional,square],[twofold,plus],[tworectangle,],[twoshorthandles,handle],[twouses,tworectangle],[tx,variable],[txr,variable],[txt,paper],[txtsetting,square],[ty,dash],[tying,dot],[type,box],[typeclass,box],[typed,box],[typedict,book],[types,variable],[typesoftypes,square],[typesoftypesdictionary,paper],[typestatements,equals],[typewriter,],[typical,plus],[typically,plus],[typified,plus],[typing,square],[typist,person],[typographed,square],[typographical,box],[typology,box],[typos,minus],[tyr,variable],[tyrannosaurus,dinosaur],[tyranny,minus],[tyre,],[tyson,person],[tz,dash],[tzr,variable],[u,variable],[ua,n],[ual,dash],[ub,variable],[uba,dash],[ubd,plus],[uber,company],[ubiquitously,box],[ubreen,square],[ubu,person],[uc,variable],[ucgjzsx,dash],[ucr,company],[udaya,person],[udoagwu,dash],[ue,dash],[ug,dash],[uganda,country],[ugly,minus],[uh,minus],[uhealth,company],[uht,box],[ui,square],[uk,country],[ukraine,country],[ul,square],[ulml,dash],[ultimate,plus],[ultimately,plus],[ultraviolet,n],[um,dash],[umami,tofu],[umberto,person],[umbrella,],[un,one],[una,one],[unabated,right],[unable,minus],[unabridged,book],[unacceptable,minus],[unaccredited,minus],[unacknowledged,minus],[unadjacent,equals],[unadvanced,minus],[unaffected,plus],[unallocated,dash],[unambiguous,plus],[uname,square],[unanswered,minus],[unassuming,plus],[unassumingness,plus],[unauthorised,minus],[unauthorized,minus],[unavailable,minus],[unavoidable,minus],[unaware,minus],[unawareness,minus],[unbalanced,greaterthan],[unbeatable,plus],[unbelievable,minus],[unbiased,plus],[unblock,plus],[unblocked,box],[unblocking,right],[unborn,dot],[unbroken,plus],[unbuttoned,left],[uncannily,plus],[uncapped,up],[uncared,minus],[uncertain,minus],[uncertainty,minus],[unchanged,one],[unchanging,one],[unchecked,minus],[unchosen,minus],[unclaimed,minus],[unclassified,minus],[uncle,person],[unclear,xcorrection],[unclearly,minus],[uncles,person],[uncomfortable,minus],[uncomment,minus],[uncommented,box],[uncommenting,xcorrection],[uncompetitive,minus],[uncompile,down],[uncompressed,box],[unconceal,up],[unconcealed,up],[unconcealing,eye],[unconceals,eye],[unconceived,zero],[unconditional,plus],[unconditionally,plus],[unconfident,minus],[unconnected,minus],[unconscious,zero],[unconsciously,minus],[uncontactable,minus],[uncontrollable,minus],[uncorrect,minus],[uncountable,n],[uncover,up],[uncovered,up],[uncovering,down],[uncovers,right],[uncritical,minus],[uncurled,right],[undead,plus],[undebated,minus],[undecided,minus],[undef,zero],[undefined,dash],[undefinedalgorithms,variable],[undefinedbreasonings,apple],[undefinedbreathsonings,variable],[undefineddirections,variable],[undefinedobjectstofinish,variable],[undefinedobjectstoprepare,variable],[undefinedpartsofrooms,variable],[undefinedrooms,variable],[under,down],[underbelly,square],[underdog,person],[undergarments,shirt],[undergirds,plus],[undergo,plus],[undergoes,plus],[undergoing,plus],[undergrad,n],[undergraduate,person],[undergraduates,person],[underground,building],[underhanded,minus],[underline,line],[underlined,line],[underlying,square],[undermine,minus],[underneath,down],[underpants,underpants],[underpin,plus],[underpinned,down],[underpins,down],[underrepresentation,minus],[underscore,],[underscored,line],[underscores,square],[understand,tick],[understandable,tick],[understanding,square],[understandingly,plus],[understandings,plus],[understands,plus],[understated,line],[understood,plus],[undertake,plus],[undertaken,plus],[undertaking,plus],[undertook,plus],[underwater,water],[underwent,down],[undesirable,minus],[undetected,minus],[undeveloped,plus],[undevelopedly,plus],[undid,minus],[undirected,minus],[undisciplined,minus],[undiscombobulated,plus],[undiscovered,plus],[undo,xcorrection],[undoes,xcorrection],[undoing,xcorrection],[undone,minus],[undos,left],[undress,down],[undue,minus],[unduly,minus],[une,university],[unemployment,minus],[unend,box],[unendingly,n],[unenroll,right],[unenrolled,up],[unep,company],[unequal,notequals],[unequally,minus],[unesco,building],[unethical,minus],[unethically,minus],[uneventful,plus],[unexamined,minus],[unexp,box],[unexpanded,box],[unexpected,xcorrection],[unexpectedly,minus],[unexplained,minus],[unexplored,minus],[unexpressive,minus],[unfair,minus],[unfairly,minus],[unfamiliar,minus],[unfavourable,minus],[unfilled,box],[unfinished,minus],[unfitness,minus],[unfolded,right],[unfolding,right],[unfolds,right],[unforgettable,plus],[unfortunate,minus],[unfortunately,minus],[unfound,minus],[unfounded,minus],[unfreezing,plus],[unfriendly,minus],[unfulfilled,minus],[unfunded,zero],[unfurled,right],[ungrammatical,minus],[unguent,],[unhappiness,minus],[unhappy,minus],[unhd,dash],[unhealthiness,minus],[unhealthy,minus],[unheard,minus],[uni,building],[unidentified,minus],[unification,equals],[unifications,equals],[unified,one],[uniform,one],[uniformisation,plus],[uniformise,plus],[uniformised,plus],[uniformiser,plus],[uniformity,equals],[uniformly,n],[uniforms,shirt],[unify,one],[unifying,equals],[unimelb,building],[unimportant,minus],[uninitialised,zero],[uninstall,xcorrection],[uninstantiated,minus],[unintelligent,minus],[unintended,minus],[uninterrupted,plus],[union,threerectangle],[unions,equals],[unique,one],[uniquely,one],[uniqueremainders,n],[unirioja,dash],[unis,building],[unit,one],[united,square],[units,line],[unity,box],[univ,square],[univer,box],[univeristy,dash],[universal,box],[universalisation,box],[universalism,one],[universality,n],[universally,box],[universe,box],[universes,box],[universitates,box],[universities,university],[university,building],[unix,dash],[unjust,minus],[unkind,minus],[unknown,n],[unknowns,minus],[unlawful,minus],[unless,xcorrection],[unlike,minus],[unlikely,minus],[unlimited,n],[unlines,line],[unlinked,dash],[unload,xcorrection],[unlock,key],[unlocked,right],[unlocks,right],[unmanifested,one],[unmarked,zero],[unmatch,notequals],[unmeant,minus],[unminimised,minus],[unmodified,dash],[unmutexed,plus],[unnameable,square],[unnamed,zero],[unnatural,minus],[unnaturalness,minus],[unnec,xcorrection],[unnecessarily,minus],[unnecessariness,minus],[unnecessary,minus],[unneeded,xcorrection],[unnegated,plus],[unnoted,box],[unnoticeable,plus],[unobservably,minus],[unobtrusive,plus],[unoptimised,minus],[unordered,n],[unoriginal,minus],[unpack,up],[unpacked,up],[unpacking,up],[unparaphrased,equals],[unpersuadable,minus],[unpile,up],[unplanned,plus],[unplugged,box],[unpolished,minus],[unpopularity,minus],[unpredictability,minus],[unpredictable,minus],[unpredictably,minus],[unprepared,minus],[unpreventable,minus],[unprocessed,plus],[unproduced,dash],[unproductive,plus],[unprofessionalism,minus],[unprofessionally,dash],[unprofitable,minus],[unprotected,minus],[unproven,minus],[unquoted,square],[unravel,right],[unravelled,right],[unravelling,right],[unread,minus],[unreasonable,minus],[unreasonably,minus],[unrecognised,minus],[unreconstructed,minus],[unregistered,minus],[unregulated,minus],[unrelated,xcorrection],[unrelatedly,dash],[unrelatedness,plus],[unreliability,minus],[unreliable,minus],[unreliably,minus],[unresearched,minus],[unreset,minus],[unresolved,minus],[unresolvedly,minus],[unrestricted,n],[unreturned,minus],[unrolled,right],[unsafe,minus],[unsafely,minus],[unsaid,zero],[unsatisfactory,minus],[unsavoury,minus],[unscheduled,minus],[unscrew,up],[unscrewed,up],[unscrewing,right],[unseen,zero],[unskilled,minus],[unsolvable,minus],[unsolved,minus],[unspecified,zero],[unspoken,square],[unstable,minus],[unstoppable,plus],[unsucc,xcorrection],[unsuccessful,xcorrection],[unsuggested,minus],[unsupported,minus],[unsure,minus],[unsureness,minus],[unsurmountable,minus],[unsustainable,minus],[unsynthesised,minus],[untaken,plus],[untenable,plus],[untested,minus],[unthinkable,xcorrection],[unthinking,minus],[until,dot],[untitled,square],[unto,right],[untouched,square],[untraced,right],[untrained,zero],[untranslatable,minus],[untried,minus],[untrue,zero],[untwisted,line],[unupdated,minus],[unused,square],[unusual,minus],[unveil,right],[unverified,minus],[unvisited,xcorrection],[unwanted,minus],[unwantedly,minus],[unwavering,plus],[unwell,minus],[unwinding,right],[unwittingly,minus],[unworlding,plus],[unwound,plus],[unwrap,right],[unwrapped,up],[unwrapping,right],[unwritten,zero],[unzip,right],[unzipped,notequals],[unzipping,down],[uo,right],[uon,university],[uonline,paper],[uop,dash],[up,],[upanisad,book],[upanisads,book],[upanishads,book],[upasana,meditator],[upasanasutra,square],[upbeat,plus],[upbringing,plus],[upcase,square],[upcoming,one],[upda,plus],[updat,up],[update,plus],[updated,tick],[updatefile,plus],[updatelocal,up],[updater,tick],[updaters,plus],[updates,up],[updatetrans,plus],[updatevar,variable],[updatevars,variable],[updating,up],[upf,n],[upgrade,up],[upgraded,up],[upgrades,up],[upgrading,up],[upheld,plus],[uphill,up],[uphold,hand],[upholding,up],[upkeep,plus],[uplifting,up],[upload,up],[uploaded,up],[uploading,up],[uploads,up],[upness,up],[upon,down],[upper,up],[uppera,a],[upperb,b],[upperc,c],[uppercase,up],[upperd,d],[uppere,e],[upperf,f],[upperg,g],[upperh,h],[upperi,i],[upperj,j],[upperk,k],[upperl,l],[upperm,m],[uppern,n],[uppero,o],[upperp,p],[upperq,q],[upperr,r],[uppers,s],[uppert,t],[upperu,u],[upperv,v],[upperw,w],[upperx,x],[uppery,y],[upperz,z],[uprety,person],[upright,up],[uprise,xcorrection],[ups,up],[upset,minus],[upsets,minus],[upsetting,minus],[upside,up],[upsized,up],[upsold,dollarsymbol],[upstairs,up],[uptime,n],[uptown,city],[upward,up],[upwards,up],[upwork,company],[ur,person],[urban,box],[urea,],[ureters,tube],[urethra,tube],[urge,plus],[urged,plus],[urgency,xcorrection],[urgent,plus],[urgently,plus],[uri,square],[urinary,urine],[urinated,liquid],[urination,urine],[urine,],[url,square],[urls,square],[urn,],[uruguay,country],[us,person],[usa,country],[usability,plus],[usable,plus],[usage,hand],[usb,box],[usborne,company],[use,spoon],[usea,hand],[useableness,plus],[used,plus],[useexisting,plus],[useful,plus],[usefulness,plus],[useless,dot],[uselessness,minus],[user,person],[userid,n],[userinput,square],[username,square],[usernames,square],[users,person],[uses,tworectangle],[using,dash],[usp,square],[usr,person],[ustad,person],[usual,plus],[usually,one],[usurp,minus],[utc,dash],[utensil,fork],[uterus,box],[utf,dash],[utilise,plus],[utilised,plus],[utilising,dash],[utilitarian,person],[utilitarianism,box],[utilities,right],[utility,plus],[utilize,plus],[utm,dash],[utpermianbasinx,university],[utter,square],[utterance,square],[utterances,square],[uttered,square],[uttering,square],[utters,mouth],[uu,dash],[uv,line],[uva,n],[uvb,n],[uvks,dash],[uxrqkjk,dash],[uypi,dash],[uzbekistan,country],[uztuabyg,dash],[v,variable],[va,variable],[vacancies,box],[vacation,square],[vaccinated,plus],[vaccination,syringe],[vaccine,],[vaccines,xcorrection],[vacuum,box],[vacuumed,up],[vadher,person],[vag,person],[vagina,box],[vague,minus],[vaguely,minus],[vagus,box],[vain,minus],[vaj,person],[val,one],[valerie,person],[valiant,plus],[valid,plus],[validate,tick],[validated,plus],[validates,plus],[validating,plus],[validation,plus],[validity,one],[valley,box],[valleys,down],[vals,n],[valuable,dollarsymbol],[valuation,plus],[value,one],[valuea,variable],[valued,n],[valueia,variable],[valuer,person],[values,one],[valuing,plus],[valve,box],[van,person],[vandalised,minus],[vandelanotte,person],[vanessa,person],[vanga,person],[vanilla,icecream],[vanishing,box],[vansh,person],[vanuatu,country],[vaporisation,zero],[vaporise,zero],[vaporised,zero],[vaporiser,xcorrection],[vaporising,air],[var,variable],[vara,variable],[varese,city],[variability,n],[variable,],[variablename,square],[variables,variable],[variance,minus],[variant,two],[variants,right],[variation,n],[variations,n],[varicose,minus],[varied,plus],[varies,n],[varieties,plus],[variety,n],[various,equals],[variously,plus],[variousness,plus],[varlist,tworectangle],[varlists,square],[varn,dash],[varname,square],[varnames,variable],[varnum,n],[vars,variable],[varsd,box],[varsx,variable],[vary,n],[varyers,dash],[varying,two],[vas,tube],[vascular,tube],[vasculature,tube],[vase,],[vast,n],[vastu,tree],[vasuli,person],[vatican,city],[vaudren,person],[vault,box],[vb,dash],[vc,variable],[vca,university],[vce,paper],[vd,variable],[vdwhhj,dash],[ve,dash],[vec,right],[vector,right],[vectors,right],[ved,n],[veda,dash],[vedic,person],[vegan,person],[veganism,zucchini],[vegans,person],[vegetable,box],[vegetables,squash],[vegetarian,apple],[vegetarianism,zucchini],[vegetarians,person],[vehemence,xcorrection],[vehement,minus],[vehicle,],[vehicles,car],[vein,tube],[veins,tube],[veirman,person],[vel,dash],[velocities,n],[velocity,n],[ven,person],[venan,person],[vending,dollarsymbol],[vendone,duck],[vendor,person],[vendors,person],[venezuela,country],[venice,dash],[venn,square],[ventilation,box],[ventriloquist,person],[venture,right],[venue,building],[venus,person],[venusian,person],[verb,equals],[verbal,tongue],[verbalisation,mouth],[verbally,mouth],[verbose,plus],[verbphrase,square],[verbs,square],[verde,country],[verdict,plus],[verifiable,plus],[verifiably,plus],[verification,tick],[verificational,plus],[verificationalism,tick],[verificationism,tick],[verifications,v],[verificative,v],[verified,tick],[verifier,person],[verifiers,v],[verifies,tick],[verify,tick],[verifying,tick],[vermicelli,spaghetti],[vermillion,square],[vernacular,square],[verpaccio,person],[vers,n],[versa,dash],[verse,square],[versechorussoloprogression,right],[versed,plus],[verses,square],[version,one],[versioning,n],[versions,tworectangle],[versity,square],[versus,dash],[vertex,dot],[vertical,up],[vertically,up],[very,plus],[ves,person],[vesicle,ball],[vesicles,vesicle],[vessel,cup],[vessels,tube],[vest,],[vestibular,box],[vestiches,square],[vestments,robe],[vet,paper],[veterans,person],[veterinary,person],[vetiver,],[vetus,n],[vetusia,land],[vetusian,square],[vgaz,dash],[vgh,dash],[vgp,square],[vgp,variable],[vgps,square],[vgps,variable],[vi,box],[via,right],[viability,plus],[viable,plus],[viagra,tablet],[vibrant,plus],[vibraphone,dot],[vibrated,n],[vibrato,n],[vic,state],[vice,two],[vicinity,n],[victim,person],[victor,person],[victoria,state],[victorian,person],[victoriously,plus],[victory,plus],[video,square],[videoed,camera],[videoing,line],[videophone,square],[videos,square],[vids,line],[vienna,person],[viete,person],[vietnam,country],[view,eye],[viewable,square],[viewaction,eye],[viewed,eye],[viewer,person],[viewers,person],[viewfinder,square],[viewing,eye],[viewitem,plus],[viewpoint,eye],[viewpoints,eye],[viewport,square],[viewproductviaportal,dash],[views,eye],[viewscreen,square],[vile,minus],[villain,person],[villains,person],[vim,and],[vince,person],[vincent,country],[vinci,person],[vine,],[vineet,person],[vinegar,],[vintage,plus],[viol,viola],[viola,],[violated,minus],[violation,minus],[violations,minus],[violence,minus],[violent,minus],[violin,],[viral,n],[viralise,right],[virality,plus],[virgin,person],[virginia,person],[virgo,star],[virility,person],[virt,box],[virtanen,person],[virtual,box],[virtualization,box],[virtually,box],[virtue,plus],[virtues,plus],[virtuous,plus],[virtuously,plus],[virus,],[viruses,virus],[visa,dollarsymbol],[visceral,tissue],[viscosity,n],[viscous,n],[visibility,eye],[visible,square],[vision,eye],[visionary,person],[visioning,eye],[visions,eye],[visit,one],[visited,one],[visitees,person],[visiting,plus],[visitor,person],[visitors,person],[visor,hat],[vista,tree],[visual,square],[visualisation,square],[visualisations,square],[visualise,square],[visualised,eye],[visualises,eye],[visualising,square],[visualization,eye],[visualize,eye],[visualized,eye],[visually,eye],[visuals,square],[vita,line],[vitae,line],[vital,plus],[vitamin,capsule],[vitamins,ball],[vitiate,plus],[vitiated,plus],[vitro,testtube],[viva,plus],[vive,plus],[vivid,plus],[vivo,person],[vivs,variable],[vivshaw,person],[vj,person],[vl,n],[vladimir,person],[vln,variable],[vlucians,person],[vmr,right],[vn,dash],[vns,right],[vo,variable],[vocab,square],[vocabularies,square],[vocabulary,square],[vocal,speechballoon],[vocalist,person],[vocalists,person],[vocally,mouth],[vocals,note],[vocalstubinstrument,tube],[vocation,book],[vocational,book],[vocationally,plus],[vocative,plus],[voced,book],[vocedplus,and],[voff,n],[voice,mouth],[voiceparts,line],[voices,square],[voicetrack,line],[voicing,square],[void,zero],[voids,box],[vol,n],[volcanic,up],[volcano,],[volume,box],[volumes,box],[voluntarily,plus],[voluntary,plus],[volunteer,person],[volunteering,plus],[volunteers,person],[vomit,box],[vomited,up],[vomiting,up],[von,n],[voom,right],[voomed,right],[vorstellung,box],[vote,tick],[voted,n],[voter,person],[voters,person],[votes,plus],[voting,square],[voucher,square],[vouchers,square],[vous,person],[voutier,person],[vowels,square],[vows,square],[vox,tube],[voxel,box],[voxels,box],[voyage,right],[vp,square],[vpn,and],[vpns,square],[vps,computer],[vpsbu,box],[vpscodes,n],[vpsfilename,square],[vpspath,square],[vpsstring,square],[vpsterm,square],[vpsunit,box],[vr,variable],[vrai,box],[vren,person],[vrooming,right],[vrqa,company],[vs,dash],[vsorted,right],[vsys,variable],[vt,dash],[vtp,square],[vu,dash],[vuckanova,person],[vulgar,minus],[vulnerabilities,minus],[vulnerability,minus],[vulnerable,minus],[vulnerably,plus],[vulva,organ],[vv,mirror],[vyes,tick],[w,variable],[wa,variable],[wackery,plus],[waddling,duck],[wade,person],[waded,right],[wafer,],[waffle,],[wage,dollarsymbol],[wages,dollarsymbol],[wahr,box],[wailful,ear],[waist,],[wait,n],[waited,plus],[waiter,person],[waiting,plus],[waiver,plus],[wake,right],[wakeful,plus],[waking,up],[wales,state],[walk,path],[walked,right],[walker,person],[walkers,person],[walking,path],[walks,path],[walkthrough,right],[walkthroughs,right],[walkway,right],[wall,square],[wallabies,wallaby],[wallaby,],[wallace,person],[wallerstein,person],[wallet,],[walls,box],[walnut,],[walter,person],[walton,person],[waltzing,right],[wam,book],[wan,person],[wand,],[wandered,right],[wandering,right],[wang,person],[want,plus],[wanted,book],[wantedly,plus],[wantedness,plus],[wanting,left],[wantingness,plus],[wants,left],[war,minus],[ward,plus],[wardley,person],[wardrobe,],[wards,room],[ware,plus],[warehouse,building],[warehouses,building],[warfare,minus],[wark,person],[warm,plus],[warmed,up],[warming,up],[warmth,plus],[warn,xcorrection],[warne,person],[warned,xcorrection],[warning,minus],[warnings,xcorrection],[warns,xcorrection],[warp,right],[warrant,paper],[warranted,plus],[warranties,plus],[warranty,square],[warring,minus],[wars,minus],[wart,box],[warthog,warthog],[warthogs,warthog],[warts,wart],[was,equals],[wash,water],[washed,water],[washing,water],[washington,person],[washy,minus],[wasn,notequals],[waste,minus],[wasted,minus],[wasteland,minus],[wasting,minus],[watch,eye],[watched,eye],[watcher,person],[watching,eye],[water,amount],[waterbed,bed],[waterchick,],[waterchicks,waterchick],[watercress,],[watered,water],[watering,water],[wateringly,plus],[watermark,square],[watermelon,],[waters,person],[watertight,box],[waterway,water],[watery,water],[watson,person],[waurn,suburb],[wav,file],[wave,right],[waved,hand],[wavelength,n],[wavering,minus],[waves,right],[waving,hand],[wavs,paper],[wax,],[way,path],[wayback,company],[ways,path],[wb,variable],[wc,variable],[we,person],[weak,minus],[weakened,minus],[weaker,minus],[weakness,minus],[weaknesses,minus],[wealth,dollarsymbol],[wealthy,dollarsymbol],[weapons,minus],[wear,coat],[wearer,person],[wearers,person],[wearing,trousers],[wears,plus],[weary,minus],[weasel,],[weasoned,plus],[weather,water],[weave,right],[weaved,right],[web,paper],[webarranger,algorithm],[webb,person],[webbed,duck],[webber,person],[webinar,square],[webinars,square],[weblog,paper],[webmaster,person],[webpage,paper],[webpages,paper],[website,paper],[websites,paper],[webster,person],[wed,square],[wedding,dash],[wedgeman,person],[wednesday,square],[weebly,company],[weed,plant],[week,sevenrectangle],[weekday,square],[weekdays,square],[weekend,square],[weekends,square],[weekly,square],[weeks,square],[ween,box],[weet,],[wei,person],[weigh,n],[weighed,n],[weighers,n],[weighing,n],[weight,n],[weighted,down],[weightings,n],[weights,n],[weighty,n],[weingart,person],[weird,minus],[weirdness,minus],[welcome,plus],[welcomed,plus],[welcoming,hand],[welfare,dollarsymbol],[well,person],[wellbeing,plus],[wellington,person],[wellness,plus],[welsh,country],[wemba,person],[wendy,person],[went,right],[wentworth,program],[wept,amount],[wer,box],[were,equals],[weren,notequals],[west,left],[western,left],[wet,liquid],[wetransfer,right],[wetted,water],[wetting,water],[weyoun,person],[wgets,and],[whale,],[whales,whale],[wharf,],[wharton,university],[what,plus],[whatever,one],[whats,box],[whd,variable],[wheat,],[wheats,plant],[wheatsheaf,wheat],[wheel,circle],[wheelbarrow,],[wheelchair,],[wheeled,right],[wheeledly,wheel],[wheeler,person],[wheels,wheel],[when,zero],[whenever,n],[where,square],[whereas,dash],[whereby,plus],[wherefarers,person],[wherein,plus],[wherever,dot],[whet,plus],[whether,dash],[whfuwamyi,dash],[which,up],[while,dash],[whilst,equals],[whirl,right],[whisk,],[whisking,whisk],[whist,person],[whistl,person],[whistle,tube],[whistleblower,person],[whistler,dog],[whistlice,person],[whistlur,person],[whistye,person],[white,square],[whiteboard,],[whiteduckling,duck],[whitelaw,person],[whiteleys,person],[whiter,square],[whiterhen,duck],[whitetocolour,right],[whitewater,duck],[whitey,duck],[whitmore,person],[whittaker,person],[whittington,person],[whittling,down],[who,person],[whoa,plus],[whois,dash],[whole,box],[wholeness,n],[wholesalers,person],[wholesaling,right],[wholesome,plus],[wholly,n],[whom,person],[whose,box],[why,dash],[wi,right],[wicca,religion],[wiccans,person],[wick,],[wicked,minus],[wickets,],[wide,line],[widely,plus],[wider,greaterthan],[widgets,and],[widow,person],[width,n],[widths,n],[wife,person],[wifi,right],[wig,hair],[wiggled,right],[wigglesworth,person],[wigwam,wigwam],[wigwams,wigwam],[wiki,book],[wikia,book],[wikihow,paper],[wikimedia,company],[wikipedia,book],[wil,dash],[wilb,person],[wilbarans,person],[wilbercock,person],[wilbercocks,person],[wilbur,goat],[wild,lion],[wildcard,square],[wilderness,tree],[wildlife,animal],[wildly,plus],[wiley,company],[wiliam,person],[wilkins,person],[will,right],[william,person],[williams,person],[willie,person],[williec,person],[willing,plus],[willingly,plus],[willingness,plus],[willis,person],[willow,person],[wills,plus],[wilson,person],[wilsons,person],[wilt,down],[wimmer,person],[win,a],[winchell,person],[winckler,person],[wind,right],[winding,circle],[window,square],[windowless,wall],[windows,square],[windpipe,],[winds,right],[windsock,],[wine,],[winemaker,person],[wing,dash],[wingate,person],[wings,wing],[winkled,plus],[winks,eye],[winner,person],[winners,person],[winnie,person],[winning,a],[winnings,dollarsymbol],[wins,plus],[winston,person],[winter,water],[wiped,right],[wiper,],[wiping,right],[wire,line],[wireframe,box],[wires,line],[wiring,wire],[wisdom,plus],[wise,plus],[wisely,book],[wish,left],[wished,plus],[wishes,plus],[wishing,plus],[wishlist,paper],[wishy,minus],[wit,plus],[witch,person],[witchcraft,plus],[witches,witch],[with,dash],[withdraw,right],[withdrawal,minus],[withdraws,right],[withdrew,left],[wither,minus],[withfromtolang,plus],[within,box],[withitness,plus],[witholding,dollarsymbol],[without,minus],[withoutfromtolang,minus],[withstood,plus],[witness,person],[witnesses,person],[wits,plus],[witt,person],[wittgenstein,person],[wittgensteinian,person],[wives,person],[wizardry,plus],[wk,square],[wm,variable],[wn,n],[wnn,dash],[wo,dash],[wok,],[woke,up],[wolcott,person],[woman,person],[womanhood,plus],[womb,],[wombat,],[women,person],[womens,person],[won,plus],[wonder,plus],[wonderbras,bra],[wondered,speechballoon],[wonderful,plus],[wondering,mouth],[wonderment,plus],[wondrous,plus],[wong,person],[woo,plus],[wood,],[woodblock,box],[woodcutter,person],[wooden,spoon],[woodford,person],[woodwind,flute],[wool,],[woolworths,shop],[word,lowera],[wording,square],[wordnet,star],[wordpress,paper],[words,lowera],[wordsfrompos,square],[wordstring,square],[wordswithtwouses,square],[wordy,minus],[wore,shirt],[work,paper],[workable,plus],[workaround,plus],[workarounds,plus],[workbooks,book],[workduring,dash],[worked,plus],[worker,person],[workers,person],[workforce,person],[working,paper],[workingness,plus],[workings,and],[workload,paper],[workloads,book],[workman,person],[workout,up],[workplace,building],[workplaces,room],[works,book],[worksheet,paper],[worksheets,paper],[workshop,room],[workshops,book],[workstation,square],[workweek,paper],[world,],[worlding,ball],[worldly,plus],[worlds,planet],[worldview,eye],[worldwide,planet],[worm,],[wormed,right],[wormhole,box],[worms,minus],[worn,down],[worried,minus],[worries,minus],[worry,minus],[worrying,minus],[worse,minus],[worship,plus],[worshippers,person],[worshipping,plus],[worst,minus],[wort,plant],[worth,dollarsymbol],[worthless,minus],[worthwhile,plus],[worthy,plus],[wos,mouth],[wot,down],[would,zero],[wouldn,minus],[wound,minus],[woven,right],[wp,square],[wqtxts,dash],[wr,variable],[wrap,box],[wrapped,box],[wrapper,box],[wrappers,box],[wrapping,box],[wraps,box],[wreak,minus],[wreath,],[wreck,minus],[wrecked,minus],[wrecking,minus],[wri,person],[wright,person],[wrike,person],[wrist,],[writ,dash],[write,pencil],[writeln,box],[writelns,square],[writenotification,plus],[writeq,square],[writer,person],[writers,person],[writes,person],[writing,paper],[writings,square],[written,box],[wrong,xcorrection],[wrongdoing,minus],[wrongly,minus],[wrongness,minus],[wrote,pen],[ws,dash],[wss,dog],[wtg,dash],[wtjpd,dash],[wu,plant],[wuc,dash],[wuh,dash],[wujec,person],[wwc,dash],[www,asterisk],[wxdxuwu,dash],[wxmyyfsdqarlgjvlmof,dash],[wyatt,person],[x,],[xa,dash],[xander,person],[xas,variable],[xb,variable],[xbjgehu,dash],[xc,variable],[xcommand,square],[xcompliment,plus],[xcorrection,],[xd,dash],[xderivefunctor,square],[xemote,plus],[xenon,planet],[xf,dash],[xfavorite,plus],[xgoodbye,n],[xgossip,minus],[xgottago,n],[xhello,one],[xhgpiykilr,dash],[xi,person],[xiaolong,person],[xinitiate,one],[xinmin,person],[xinsult,minus],[xintroduce,one],[xit,dash],[xix,n],[xkl,dash],[xlen,line],[xline,],[xm,line],[xmath,plus],[xmax,n],[xmemory,box],[xmin,n],[xml,square],[xn,variable],[xnfxvjk,dash],[xnfxwml,dash],[xngf,dash],[xnone,zero],[xnonsense,minus],[xnp,dash],[xns,variable],[xochi,person],[xor,box],[xp,line],[xrest,variable],[xs,x],[xskwk,dash],[xss,n],[xswx,company],[xsz,dash],[xu,variable],[xuanxue,school],[xval,n],[xviii,n],[xx,plus],[xxa,variable],[xxi,n],[xxii,n],[xxs,dash],[xxx,dash],[xxxx,plus],[xxxxxxb,square],[xy,variable],[xylophone,],[xyz,company],[xz,variable],[xzle,dash],[y,yline],[ya,dash],[yacht,],[yachts,yacht],[yael,person],[yahoo,person],[yan,person],[yang,plus],[yantra,square],[yao,person],[yard,box],[yarra,river],[yashwantreddy,person],[yaw,right],[yawn,mouth],[yawned,up],[yawning,box],[yb,variable],[yc,variable],[yd,variable],[ydwpw,dash],[ye,person],[yeah,plus],[year,square],[yeardob,n],[yearlearned,square],[yearly,square],[yearn,plus],[years,threerectangle],[yearvaluea,variable],[yearvalueb,variable],[yefuititi,plus],[yellow,square],[yellowgod,person],[yeltsin,person],[yemen,country],[yemiscigil,person],[yes,plus],[yesorno,plus],[yesornoagain,plus],[yesterday,square],[yestree,dash],[yet,one],[yetis,person],[yew,tree],[yf,variable],[yield,box],[yielded,plus],[yielding,right],[yields,plus],[yik,person],[yili,company],[yin,minus],[yip,person],[ylen,line],[yline,],[ym,line],[ymax,n],[ymin,n],[yml,dash],[yn,variable],[yns,variable],[yo,dash],[yodeler,person],[yodeller,person],[yoga,mat],[yogamantra,square],[yogasutra,square],[yogasutrachildrenh,plus],[yoghurt,],[yogi,person],[yogic,and],[yogically,and],[yogis,person],[yohn,person],[yoko,person],[yomiuri,newspaper],[yorick,person],[york,city],[yorker,magazine],[yorkey,person],[you,person],[youare,equals],[young,n],[younger,lessthan],[your,person],[yourarticlelibrary,book],[yourcoach,person],[yourdictionary,book],[yourdomain,square],[yourfolder,box],[yourlegaldff,plus],[yourname,square],[yourorganization,company],[yours,box],[yourself,person],[yourselves,person],[youth,person],[youthful,n],[youths,person],[youtu,dash],[youtube,video],[yovel,person],[yoyo,],[yp,dash],[yqypmzmqbhasvox,dash],[yrest,variable],[ys,y],[yt,paper],[yu,person],[yussy,person],[yuste,person],[yval,n],[yy,variable],[yyyy,square],[yyzvs,dash],[yz,variable],[z,zline],[za,dash],[zac,person],[zag,right],[zags,left],[zambia,country],[zamzar,company],[zang,dash],[zap,plus],[zaphir,person],[zaria,person],[zb,dash],[zd,variable],[zeal,plus],[zealand,country],[zealic,plus],[zeals,plus],[zebulontheta,planet],[zero,],[zeroed,zero],[zerofill,zero],[zeros,zero],[zest,orange],[zesty,orange],[zgf,dash],[zhan,person],[zhang,person],[zhiping,person],[zhongshu,person],[zig,right],[zimbabwe,country],[zinc,ball],[zingy,plus],[zip,],[zippcode,n],[zipwith,up],[zither,],[zjh,dash],[zl,dash],[zlen,line],[zline,],[zm,dash],[zn,variable],[zns,variable],[zoltan,person],[zombie,person],[zone,square],[zoned,square],[zones,square],[zoo,building],[zoology,animal],[zoom,right],[zoomed,right],[zooming,up],[zourabichvili,person],[zp,variable],[zpd,n],[zqso,dash],[zs,z],[zu,variable],[zubair,person],[zucchini,],[zuhandenheit,plus],[zwischen,box],[zwith,plus],[zxy,square],[zygote,],[zz,dash],[zza,variable],[zzx,square],[zzxwriteflag,square],[à,dash],[éclair,biscuit],[égale,dash],[übermensch,person],[īṣ,dash],[ṣ,dash]]
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/brdict2.txt b/Text-to-Breasonings-master/brdict2.txt
new file mode 100644
index 0000000000000000000000000000000000000000..1fbc55cdb30409f21d1e40d2262f4ae91b0f9f18
--- /dev/null
+++ b/Text-to-Breasonings-master/brdict2.txt
@@ -0,0 +1 @@
+[[a,1,1.5,0],[aardvark,20,10,10],[abacus,20,1,1],[accent,1,0.5,0],[acetic,1,1,1],[acid,1,1,1],[acorn,1,1,1],[adrenalin,1,1,1],[aerosol,5,5,15],[air,1,1,1],[aircraft,10,10,2],[album,10,10,0.5],[alcohol,0.1,0.1,0.1],[algae,1,1,1],[algorithm,1,1,0],[almond,2,1,0.5],[aluminum,1,1,0.01],[amalgam,1,1,1],[ambulance,200,400,200],[amount,0.5,0.5,0.5],[amphitheatre,100,100,100],[amphora,30,30,60],[amygdala,1,1,1],[anchor,50,10,50],[and,1,1,0],[animal,100,30,80],[animals,30,30,50],[ankle,2,1,2],[ant,0.2,0.1,0.1],[antenna,0.5,0.5,100],[anther,0.1,0.1,1],[antibody,1,1,1],[ape,50,30,180],[apple,5,5,5],[application,1,1,1],[apricot,4,4,4],[aqualung,20,20,30],[aquarium,100,50,40],[arc,1,1,0],[arch,200,30,250],[archipelago,1,5,1],[architrave,100,20,10],[argan,1,1,1],[arm,10,10,100],[armadillo,20,30,50],[armour,55,35,190],[artichoke,5,5,5],[artwork,10,1,10],[asparagus,20,1,1],[association,400,500,300],[asterisk,1,1,0],[atest,1,1,0],[atom,1,1,1],[audiobar,10,0,0.5],[avocado,5,4,3],[axolotl,10,2,1],[b,1,1,1],[baby,30,50,20],[backbone,100,1,1],[backslash,1,1.5,0],[bacteria,1,1,1],[bacterium,2,1,1],[badge,1,1,0.3],[bag,35,10,55],[bagel,10,10,5],[bagpipe,20,20,50],[bagpipes,30,30,50],[bakelite,1,1,0.1],[ball,5,5,5],[balloon,20,20,30],[balustrade,10,100,100],[bamboo,1,1,200],[banana,20,10,5],[band,1000,500,180],[banjo,30,10,60],[bank,500,400,300],[barbeque,50,50,120],[barley,1,1,100],[barnacle,1,1,1],[barnyard,1000,5000,300],[barrel,80,80,100],[base,100,100,1],[baseball,5,5,5],[basket,30,30,40],[bat,30,10,7],[bath,150,60,70],[bathers,30,20,20],[baton,15,0.5,0.5],[batter,1,1,1],[battery,5,1,1],[bbq,100,100,150],[beaker,5,5,7],[bean,5,0.5,0.5],[beanie,20,20,20],[bear,50,30,150],[beard,20,5,5],[bed,200,200,50],[bee,1,0.5,0.5],[beef,1,1,1],[beetle,1,1,0.5],[bell,2,2,2],[belt,120,5,1],[bench,100,30,50],[berry,1,1,1],[bicycle,200,30,100],[bin,80,80,150],[bird,50,25,5],[biscuit,5,1,0.5],[biteful,1,1,1],[bix,10,5,1],[blackberry,1,1,1],[blackboard,400,10,100],[blackcurrant,1,1,1],[bladder,10,5,10],[blade,5,0.01,1],[blanket,200,200,5],[blender,15,15,40],[blindfold,20,20,5],[blood,1,1,1],[blossom,5,5,5],[blueberry,1,1,1],[bluestone,30,20,20],[boat,300,150,50],[body,50,30,180],[bolt,4,1,1],[bone,45,10,10],[book,15,20,1],[boot,30,10,20],[bottle,5,1,20],[bow,100,1,1],[bowl,30,30,5],[box,1,1,1],[bra,30,25,10],[bracket,1,1.5,0],[brackets,1,1.5,0],[brain,20,20,30],[bran,0.5,0.3,0.1],[bread,30,10,5],[breast,10,10,10],[brick,20,10,5],[bridge,10,1,2],[brim,30,30,0.5],[brimmed,30,30,1],[bristle,0.1,0.1,1],[brits,10,5,1],[broccoli,5,5,5],[bronze,1,1,0.3],[broom,50,10,150],[brow,4,1,1],[brush,20,2,3],[bubble,1,1,1],[bucket,20,20,30],[buckle,2,0.5,2],[buddha,50,30,180],[bug,1,1,0.4],[building,50,50,50],[bull,100,200,180],[bullet,2,1,1],[bun,5,5,5],[buoy,100,100,100],[burger,10,10,5],[bus,10,1,1],[bust,30,25,1],[butter,1,1,1],[butterfly,10,5,1],[butterscotch,1,1,0.5],[buttocks,30,15,20],[button,1,1,1],[c,1,1,1],[cabbage,20,20,20],[cabinet,100,100,100],[cage,100,50,50],[cake,10,10,10],[calf,150,50,100],[camera,10,10,10],[camp,50,50,3],[can,5,5,10],[candle,1,1,20],[cane,10,1,100],[canoe,300,100,50],[cantaloupe,15,15,25],[caper,0.5,0.5,0.5],[cappuccino,10,10,15],[capsicum,5,5,8],[capsule,1,0.25,0.25],[car,400,200,150],[caramel,0.5,0.5,0.1],[carbon,1,1,1],[card,5,3,0.1],[carob,2,0.5,0.5],[carpet,10,10,0.5],[carriage,200,100,200],[carrot,10,1,1],[cartridge,3,1,1],[casein,1,1,1],[castanets,5,5,2],[castle,16,16,16],[cat,40,15,30],[cathedral,2,5,4],[cave,100,100,100],[caviar,0.2,0.2,0.2],[cd,10,10,0.1],[celery,1,1,1],[cell,1,1,1],[cello,50,20,120],[centipede,100,1,1],[chair,50,50,100],[chalice,5,5,20],[chalk,4,0.5,0.5],[chart,1,1,0],[cheek,5,0.0001,5],[cheese,10,10,0.25],[cheeseburger,10,10,2.2],[cheesecake,10,10,2],[cherry,1,1,1],[chessboard,16,16,1],[chest,30,20,1],[chestnut,1,1,1],[chicken,30,40,40],[chickpea,0.5,0.5,0.5],[child,30,20,150],[chip,4,0.5,0.5],[chips,5,1,1],[chisel,1,1,15],[chocolate,1,1,1],[chopstick,20,0.5,0.5],[chrysalis,1,8,1],[chutney,1,1,1],[cinnamon,0.1,0.1,0.1],[circle,1,1,0],[city,100,100,10],[claimed,0,0,0],[clamp,4,1,4],[clavinet,1,1,40],[claw,0.5,2,2],[cliff,100,100,100],[clip,1,1,1],[clipper,10,10,1],[clippers,20,10,0.5],[clock,10,1,10],[closebracket,1,1.5,0],[closedroundbracket,1,1.5,0],[closedsquarebracket,1,1.5,0],[cloud,3,2,0],[clove,1,1,2],[clover,2,2,4],[coat,50,20,100],[coconut,15,15,15],[coffee,5,5,10],[cog,1,1,0.5],[coin,1,1,0.25],[coit,10,10,1],[colander,20,20,5],[collage,100,100,0.5],[collar,20,20,2],[colon,1,1,0],[column,20,20,400],[comb,10,2,0.2],[company,100,100,10],[computer,100,30,50],[conch,10,10,10],[conditioner,1,1,1],[condom,20,3,3],[cone,1,1,1],[continent,150,100,0],[cookie,5,5,1],[copper,1,1,0.01],[coral,1,1,1],[cord,5,1,1],[cordial,1,1,1],[cork,2,1,1],[corn,15,5,5],[counter,1,1,0.1],[country,100,100,1],[cow,100,200,180],[crab,10,5,2],[crane,5,10,10],[crate,50,50,50],[cream,1,1,1],[creek,100,400,100],[cremate,5,5,5],[crepe,10,10,0.3],[crocodile,400,100,40],[croissant,15,5,3],[crossbow,50,1,150],[crow,100,50,30],[crown,20,20,10],[crumb,0.1,0.1,0.1],[crystal,1,1,2],[cub,30,60,40],[cubby,200,200,200],[cube,1,1,1],[cumquat,3,3,3],[cup,5,5,5],[cupboard,100,50,200],[cupcake,5,5,5],[curd,1,1,1],[currant,1,1,0.5],[curry,1,1,1],[curve,1,1,0],[cushion,30,30,5],[cuticle,0.1,0.5,0.1],[cutlass,10,5,50],[cutter,1,5,20],[cycle,1,1,0],[cylinder,1,1,1],[cymbal,2,100,100],[d,1,1.5,0],[daffodil,5,5,30],[daisy,1,0.1,10],[dam,2000,2000,100],[damper,1,1,1],[danish,15,15,13],[danishes,15,15,3],[dash,1,1,0],[day,1,1,0],[deer,50,180,160],[delta,1,1.5,0],[desk,200,100,100],[dessert,10,10,10],[detergent,1,1,1],[diamond,2,2,0],[diaphragm,25,18,7],[dice,1,1,1],[didgeridoo,100,10,10],[dinosaur,50,120,180],[dioxide,2,1,1],[dirt,0.1,0.1,0.1],[disc,10,10,0.1],[discus,10,10,3],[dish,30,30,1],[disinfectant,1,1,1],[dispenser,1,1,1],[display,50,1,30],[divide,1,1.5,0],[division,1,1.5,0],[dna,1,1,1],[dog,100,30,90],[doll,5,3,18],[dollarsign,1,1.5,0],[dollarsymbol,1,1.5,0],[door,100,10,200],[dot,1,1,0],[dough,1,1,1],[doughnut,10,3,3],[dove,30,15,20],[down,1,1,0],[dragon,500,100,400],[drawers,100,100,100],[dreamballoon,10,10,0],[dress,50,25,130],[driveway,10,10,1],[drug,1,1,4],[drum,30,30,20],[duck,30,40,50],[duckling,5,5,5],[dumpling,2,2,2],[durum,0.1,0.1,0.1],[duster,10,5,1],[dye,1,1,1],[e,1,1.5,0],[eagle,200,100,50],[ear,0.5,3,5],[earlobe,0.5,1,1],[earphone,1,1,1],[earphones,0.5,0.5,0.5],[earth,1,1,1],[egg,3,3,5],[eggplant,10,5,5],[eightrectangle,8,1,0],[elastic,10,0.05,0.01],[elbow,5,5,5],[elderberry,1,1,1],[electron,1,1,1],[ellipse,2,1,0],[elmo,30,100,15],[embryo,1,1,1],[emerald,1,2,1],[enchilada,20,2,2],[envelope,20,10,0.01],[enzymatic,1,1,1],[epinephrine,1,1,1],[equals,1,1,0],[esplanade,50,100,2],[exclamationmark,1,1.5,0],[eye,5,5,5],[eyebrow,4,0.001,1],[eyelid,4,0.001,2],[f,1,1.5,0],[fabric,30,30,0.1],[face,20,15,30],[fairy,50,30,180],[fan,20,20,5],[fat,1,1,1],[fe,0.1,0.1,0.1],[feather,15,1,0.1],[fence,100,1,50],[fertiliser,1,1,1],[fibre,1,1,10],[field,1,1,1],[fifteenrectangle,15,1,0],[fig,3,3,3],[file,20,30,0.0001],[fin,2,30,30],[finger,1,10,1],[fire,1,1,2],[fish,30,10,10],[fist,10,10,10],[fivecrectangle,5,1,0],[fiverectangle,5,1,0],[flame,1,1,5],[flamingo,50,100,150],[flask,10,5,20],[floss,30,0.1,0.1],[flowchart,20,30,0.0001],[flower,1,1,10],[flute,100,2,2],[folder,30,0.0005,20],[foot,30,10,10],[football,30,15,15],[footprint,30,10,0],[footy,30,10,10],[forearm,50,10,10],[forehead,10,0.001,5],[fork,2,20,1],[fortyrectangle,40,1,1],[fossil,2,1,0.5],[fountain,100,100,150],[fourrectangle,4,1,0],[frankfurt,5,1,1],[frankincense,0.1,0.1,0.1],[freezer,90,70,30],[frog,5,5,3],[fudge,1,1,1],[fuel,1,1,1],[fullstop,1,1,0],[function,1,1.5,0],[fungus,1,1,1],[funnel,10,10,10],[fur,1,1,1],[furniture,200,100,100],[g,1,1.5,0],[galah,10,10,40],[game,30,30,5],[garage,1000,6000,220],[garbage,50,50,100],[garlic,1,1,1],[gas,1,1,1],[gate,200,3,100],[gazebo,500,500,400],[gel,1,1,1],[gemstone,1,1,1],[germ,2,1,1],[gherkin,4,1,1],[giant,60,40,190],[ginger,5,3,1],[giraffe,200,100,300],[gland,1,1,0.2],[glass,5,5,5],[glasses,15,11,3],[glockenspiel,40,20,5],[glove,25,10,3],[glue,0.5,0.5,0.5],[goat,120,30,160],[goggles,20,21,2],[gondola,100,500,50],[goose,40,30,50],[gossamer,1,1,0.001],[government,10,5,5],[gown,50,20,130],[grain,0.1,0.1,0.1],[grains,1,1,1],[gramophone,40,30,30],[granita,1,1,1],[granite,1,1,1],[grape,1,1,1],[grapefruit,10,10,10],[grater,10,10,20],[grave,180,50,30],[greaterthan,1,1,0],[grid,2,2,0],[grub,1,0.5,0.5],[guache,1,1,1],[guava,5,5,7],[guernsey,50,20,50],[guitar,150,50,15],[gumnut,0.5,0.5,0.5],[gutter,200,10,10],[h,1,1.5,0],[hair,1,0,0],[hall,30,50,5],[ham,5,5,0.1],[hamburger,10,10,5],[hammer,15,5,1],[hammock,70,300,100],[hamster,10,20,15],[hand,20,10,3],[handkerchief,30,30,0.0001],[handle,15,1,5],[happy,1,1,0],[happyface,20,2,30],[harlequin,50,30,180],[harmonica,10,3,1],[harness,30,20,50],[harp,100,20,150],[hash,1,1.5,0],[hat,30,30,15],[hay,1,1,1],[hcl,1,1,1],[head,15,20,23],[headdress,20,20,5],[headphones,30,10,20],[headpiece,20,20,5],[headset,21,21,21],[heart,1,1,0],[heater,30,30,30],[hedgehog,15,15,15],[heel,10,10,0],[helicopter,50,30,15],[helium,1,1,1],[hemisphere,1,1,0.5],[heptagon,1,1,0],[hexagon,1,1,0],[hill,5,5,2],[hinge,4,0.3,4],[hippocampus,1,1,1],[hips,30,20,1],[hive,40,40,50],[hole,1,1,0],[holocap,20,20,10],[home,20,30,15],[honey,10,10,10],[hook,1,1,0.1],[hoop,100,100,1],[horizon,10000,0,100],[horn,5,5,50],[horse,100,200,200],[hospital,100,100,10],[hourglass,10,10,30],[house,30,100,30],[hovercar,400,200,150],[hug,50,65,180],[hummus,1,1,1],[humpy,200,200,150],[hurdle,100,50,50],[hydrogen,1,1,1],[hyphen,1,1,0],[i,1,1.5,0],[ibis,30,30,50],[ice,1,1,1],[icecream,5,5,15],[icicle,0.5,0.5,2],[icing,5,5,0.001],[ink,1,1,1],[inky,30,100,80],[insect,1,1,0.5],[institute,5000,5000,300],[instrument,50,20,120],[intestine,30,20,20],[intestines,30,20,20],[iphone,10,20,0.5],[iron,20,10,10],[island,100,100,10],[ivory,1,1,0.1],[j,1,1,1],[jacket,50,20,90],[jam,1,1,1],[jar,10,10,10],[jaw,20,10,10],[jelly,5,5,5],[jet,50,75,5],[jewel,1,1,1],[jube,1,1,1],[judgment,1,1,0],[jug,10,10,30],[juice,1,1,1],[juices,1,1,1],[jumper,50,20,60],[juniper,1,1,1],[k,1,1.5,0],[kaleidoscope,30,1,1],[kangaroo,100,50,150],[kettle,20,20,30],[key,5,1,0.001],[keyboard,50,20,2],[keyhole,0.5,3,0.5],[kickboard,30,40,4],[kidney,4,1,5],[king,50,30,180],[kite,50,0.2,100],[kitten,20,20,25],[kiwi,5,3,3],[knee,10,10,10],[knife,1,20,1],[l,1,1.5,0],[lactose,1,1,1],[ladder,10,50,300],[land,100,100,5],[lane,10,100,1],[language,1,1,0],[lanolin,0.5,0.5,0.5],[lapel,5,0.1,20],[lapis,1,1,1],[laptop,30,20,0.5],[lasagne,15,10,10],[lasso,1,1,0],[lassoo,1,1,10],[lavender,1,1,20],[lawn,100,100,3],[lazuli,1,1,1],[leaf,5,1,0.1],[leash,100,1,1],[lectern,100,50,150],[left,1,1,0],[left_bracket,1,1,0],[leftbracket,1,1.5,0],[leg,15,20,90],[lemon,5,5,5],[lemonade,1,1,1],[lens,1,0.1,1],[lentil,0.5,0.5,0.3],[lessthan,1,1,0],[letter,20,30,0.0001],[letterbox,20,10,20],[lettuce,15,15,15],[licorice,1,1,1],[lid,5,5,1],[light,10,10,10],[lighthouse,10,10,100],[lilo,50,180,10],[limousine,200,800,150],[line,1,0,0],[lino,10,10,0.5],[lion,80,150,100],[lip,4,0.5,1],[lipstick,7,1,1],[liquid,1,1,1],[lithium,1,1,1],[liver,25,10,6],[lizard,3,20,1],[loaf,30,10,10],[lobster,40,30,10],[lock,2,1,5],[log,30,10,10],[lolliop,10,0.5,20],[lollipop,1,1,10],[lolly,1,1,1],[lorikeet,7,7,25],[lowera,1,1,0],[lozenge,1,1,0.5],[lubricant,1,1,1],[ludo,30,30,1],[lump,1,1,1],[lung,10,10,30],[lute,30,10,90],[lycra,50,20,120],[lymph,1,1,1],[lyotard,50,20,120],[lyre,50,10,50],[m,1,1.5,0],[macbook,30,20,20],[machete,30,10,1],[magazine,20,30,0.3],[maggot,1,0.5,0.5],[magnet,5,5,1],[mahoganies,1,1,1],[mandarin,5,5,3],[mango,5,5,10],[mannequin,50,30,180],[mantelpiece,200,10,100],[map,1,1,0],[maracas,10,10,30],[margarine,1,1,1],[marimba,100,20,20],[marmalade,1,1,1],[marquee,400,400,250],[marshmallow,1,1,1],[marzipan,1,1,1],[mask,20,10,30],[mat,180,50,1],[mattress,200,200,25],[mayonnaise,1,1,1],[maypole,1000,1000,200],[maze,100,100,10],[meat,1,1,1],[medal,5,0.5,5],[medication,1,1,0.1],[medicine,1,1,0.5],[meditator,100,100,150],[melchior,1,1,1],[melon,20,20,20],[meniscus,1,1,0.1],[mercury,0.1,0.1,0.1],[meringue,20,20,5],[metal,1,1,0.2],[microphone,5,5,20],[microscope,15,15,30],[milk,0,0,0],[milk,1,1,1],[millipede,1000,1,1],[mince,1,1,1],[mind,20,20,30],[mineral,1,1,1],[minus,1,1,0],[mirror,1,1,0],[miso,1,1,1],[mitochondria,4,2,1],[mm,0.1,0,0],[mold,1,1,1],[molecule,1,1,1],[money,1,1,0.1],[monkey,40,20,150],[monster,70,50,230],[monthly,1,1,0],[moon,1,1,1],[mop,30,30,150],[mortar,20,20,15],[mortarboard,30,30,10],[mosquito,0.5,0.5,0.5],[mountain,10,10,5],[mouse,15,4,5],[mousse,5,5,5],[moustache,4,1,1],[mouth,4,0.5,0],[mouthwash,1,1,1],[muesli,1,1,1],[muffin,5,5,5],[mug,10,12,10],[multiplication,1,1,0],[multiply,1,1,0],[muscle,10,0.5,0.5],[mushroom,5,5,5],[mycorrhizae,0.1,0.1,0.1],[myrrh,1,1,1],[n,1,1,0],[nacl,0.1,0.1,0.1],[nail,0.3,0.3,3],[napkin,100,100,0.2],[nappy,100,100,0.3],[nebula,1,1,1],[neck,15,15,10],[necklace,30,30,0.3],[nectar,1,1,1],[nectarine,5,5,5],[needle,0.01,0.01,3],[nerve,1,1,5],[nest,30,30,10],[neuron,10,1,1],[newspaper,50,75,0.0001],[nib,1,1,2],[nightingale,10,10,30],[ninerectangle,9,1,0],[noodle,1,0.5,0.5],[noradrenaline,1,1,1],[norepinephrine,1,1,1],[nose,1,2,4],[nostril,0.5,0.5,0],[note,1,1,0],[notequals,1,1,0],[nrectangle,3,1,0],[number,1,1.5,0],[nut,1,1,1],[o,1,1.5,0],[oar,150,10,3],[oasis,1,1,0],[oat,1,0.5,0.1],[octagon,1,1,0],[octahedron,1,1,1],[octopus,10,10,10],[oil,0.1,0.1,0.1],[olive,1,2,1],[one,1,1.5,0],[onion,5,5,5],[openbracket,1,1.5,0],[openroundbracket,1,1.5,0],[opensquarebracket,1,1.5,0],[operatingsystem,1,1,1],[or,1,1,0],[orange,10,10,10],[orangutan,50,30,180],[oreo,1,1,0.5],[organ,5,1,5],[organisation,1,1,0.1],[oval,2,1,0],[oven,100,100,100],[owl,20,20,40],[oxygen,2,1,1],[ozone,1,1,1],[p,1,1.5,0],[packet,10,10,1],[paddock,200,200,10],[paella,20,20,4],[paint,5,5,1],[painting,100,1,100],[palette,20,10,2],[pallet,10,10,0.5],[palm,10,10,0],[pamphlet,30,20,0.0001],[pan,30,30,5],[pancake,10,10,0.3],[pancreas,10,5,2],[panforte,1,1,1],[pant,30,20,95],[pantry,100,100,200],[pants,30,20,100],[paper,20,30,0.0001],[parasol,80,80,50],[park,1,1,0],[parrot,10,10,40],[pasta,20,20,5],[pastry,1,1,0.1],[pasty,15,5,4],[path,100,1000,0],[pathway,100,1000,0],[patty,10,10,1],[paw,5,5,30],[pea,0.5,0.5,0.5],[peach,5,5,5],[peacock,100,40,80],[pear,5,5,10],[pecan,2,1,1],[pedal,12,2,12],[pedestal,50,50,30],[peg,1,1,1],[pegboard,10,1,10],[pellets,1,1,1],[pen,15,1,1],[pencil,15,1,1],[pencilsharpener,1,1,1],[pendulum,1,1,20],[penguin,30,30,100],[penis,3,3,10],[pentagon,1,1,0],[pepper,0.2,0.2,0.2],[peptides,1,1,1],[perfume,0.1,0.1,0.1],[pergola,500,200,200],[person,50,30,180],[pestle,15,3,3],[petal,1,1,0.01],[pheasant,40,30,50],[phone,5,10,0.5],[photon,1,1,1],[pi,1,1,0],[piano,150,260,190],[pickle,2,1,0.4],[pie,10,10,3],[pig,50,20,40],[pigeon,30,15,15],[pillow,80,40,15],[pimple,0.1,0.1,0.1],[pin,0.03,0.03,3],[pineapple,1,1,1],[pinecone,5,5,5],[pip,0.5,0.3,0.3],[pipe,1,1.5,0],[pipette,0.5,0.5,20],[pitchouli,0.1,0.1,0.1],[pizza,30,30,1],[plane,75,50,5],[planet,1,1,1],[plank,15,150,0.5],[plant,1,1,10],[plasma,1,1,1],[plastic,1,1,0.3],[plate,10,10,1],[platelet,1,1,0.5],[plectrum,1,1,0.1],[pliers,20,2,1],[plough,500,400,300],[plum,4,4,4],[plus,1,1,0],[pocket,20,5,20],[pocketwatch,3,5,5],[pod,5,1,0.3],[podium,100,50,150],[pomegranate,7,7,7],[pony,150,80,120],[pool,100,100,30],[popcorn,1,1,1],[poppadum,20,20,0.5],[popsicle,10,1,20],[porcupine,15,10,10],[pork,1,1,1],[porridge,10,10,5],[pot,5,5,10],[potato,5,3,3],[potbelly,30,5,30],[potion,5,5,5],[potoroo,30,40,50],[printer,30,20,20],[priscilla,50,30,250],[prism,1,1,1],[product,30,20,30],[program,1,1,0],[prolactin,1,1,1],[proline,1,1,1],[propeller,30,10,10],[prosthetic,20,30,100],[protein,3,1,1],[publisher,500,400,300],[pudding,10,10,10],[puffin,10,10,30],[pulp,1,1,1],[pump,1,1,3],[pumpkin,30,30,20],[pup,20,40,25],[puppet,20,10,30],[puppy,30,40,50],[puree,1,1,1],[pvc,0.1,0.1,0.1],[pyramid,1,1,0.5],[q,1,1.5,0],[quartz,0.1,0.1,0.1],[questionmark,1,1.5,0],[quince,5,5,5],[quinoa,1,1,1],[r,1,1.5,0],[rabbit,20,20,50],[rack,150,1,1],[radiation,1,1,1],[radish,2,2,2],[raft,150,150,30],[rag,10,10,0.1],[raisin,1,0.5,0.3],[rake,30,10,150],[ram,1,1,0.0001],[ramp,500,100,100],[raspberry,1,1,1],[raven,5,5,30],[receiver,1,1,1],[refrigerator,100,70,150],[religion,50,30,180],[relish,1,1,1],[restaurant,1500,2000,400],[rhinoceros,100,400,150],[rhubarb,1,1,0.5],[ribbon,30,2,0.001],[rigatoni,4,1,1],[right,1,1,0],[ring,1.2,1.2,0.1],[rissole,5,5,2],[river,10,1,1],[road,20,200,1],[robe,50,20,140],[robopod,200,200,200],[robot,50,30,180],[rock,1,1,1],[rocket,1,1,5],[rod,10,1,1],[roll,5,5,5],[roof,100,100,5],[rook,1,1,4],[room,500,400,300],[rope,1000,1,1],[rose,10,10,20],[rosin,1,1,1],[rotunda,100,100,50],[roux,1,1,1],[ruby,1,1,1],[rug,100,200,0.3],[ruler,30,1,0],[rung,50,5,1],[s,1,1.5,0],[sack,80,80,150],[sadface,20,2,30],[sadness,1,0,1],[sail,100,10,400],[salami,30,5,5],[salt,0.005,0.005,0.0025],[sand,0.1,0.1,0.1],[sandals,10,30,3],[sandpaper,1,1,0.3],[sandstone,20,10,10],[sandwich,10,10,1.5],[sap,0.5,0.5,0.1],[satellite,100,100,100],[sauce,1,1,1],[saucepan,20,10,5],[saucer,20,20,1],[sausage,10,3,3],[saxophone,10,30,50],[scarf,100,20,0.3],[school,100,100,10],[schoolyard,10000,10000,200],[scissors,20,10,1],[scone,5,5,5],[scoop,10,2,2],[scourer,5,5,5],[scraper,20,5,5],[screw,0.5,0.5,3],[screwdriver,20,1,1],[sculpture,60,25,60],[sea,1,1,1],[seahorse,1,0.5,5],[seal,1,1,0.1],[seat,50,50,100],[secateurs,20,5,5],[seed,1,1,0.5],[semicircle,2,1,0],[semolina,0.1,0.1,0.1],[sequin,1,1,0.1],[serviette,50,50,0.0001],[settee,400,100,100],[sevenrectangle,7,1,0],[seventyrectangle,70,1,0],[shade,1,1,0],[shaker,10,10,30],[shampoo,1,1,1],[shark,300,90,70],[shaver,5,20,3],[shed,120,200,200],[sheep,100,50,70],[shelf,100,20,1],[shell,3,3,1],[shelter,500,200,250],[ship,1000,10000,15000],[shirt,50,30,40],[shirtsleeve,10,10,60],[shoe,30,10,5],[shoelaces,40,0.3,0.3],[shop,1000,1000,300],[shore,1000,100,100],[shortcake,5,1,0.5],[shoulder,10,10,10],[shoulders,10,10,10],[shuttlecock,5,5,5],[sieve,20,20,5],[signal,1,1,0],[signpost,100,10,200],[silicon,1,1,1],[silk,1,1,0.01],[sitar,20,5,50],[site,30,20,0],[sitting,50,70,150],[six,1,1.5,0],[sixrectangle,6,1,0],[skeleton,50,30,180],[skewer,0.3,0.3,20],[ski,100,10,10],[skin,1,1,0.1],[skittle,10,10,30],[skivvy,50,20,60],[skull,20,20,30],[sky,1,1,0],[slash,1,1,0],[sleep,180,50,30],[sleeve,100,10,10],[slingshot,5,20,20],[slug,4,1,1],[smartwatch,4,10,5],[smile,1,1,0],[smock,40,20,80],[smoke,1,1,1],[snail,5,1,3],[snake,10,100,10],[snow,1,1,1],[snowflake,1,1,0],[snuff,0.1,0.1,0.1],[soap,5,3,2],[sock,30,10,15],[sofa,400,100,100],[software,1,1,0],[soil,1,1,1],[sole,30,10,0],[soles,10,30,1],[soufflé,10,10,20],[soul,50,30,180],[soup,15,15,3],[space,1,1.5,0],[spacecraft,800,400,400],[spade,10,2,50],[spaghetti,30,0.2,0.2],[spatula,20,0.5,0.5],[spear,5,1,100],[speechballoon,1,1,0],[sperm,1,0.5,0.1],[sphere,1,1,1],[sphinx,50,180,80],[sphygmomanometer,100,3,3],[spider,10,5,3],[spinach,5,5,0.01],[spine,1,1,10],[spiral,1,1,1],[spleen,2,2,2],[sponge,5,5,3],[spool,1,1,2],[spoon,15,2,1],[spout,10,1,1],[spring,1,1,5],[square,1,1,0],[squash,5,5,5],[squeezer,10,10,10],[stage,100,50,75],[stake,5,1,30],[stalk,0.3,0.3,10],[stall,400,100,100],[stapler,20,2,3],[star,1,1,1],[starfish,10,10,1],[startingline,100,1,0],[state,1,1,0],[statue,50,30,180],[statuette,5,5,30],[steam,1,1,1],[stencil,10,10,0.1],[step,100,30,20],[stick,10,1,1],[stockings,30,30,100],[stomach,15,10,10],[stone,10,10,1],[stool,30,30,30],[stop,1,1,0],[stove,100,100,1],[strap,30,1,0.1],[straw,0.005,0.005,20],[strawberry,1,1,1],[street,500,15,0],[string,0.1,0.1,20],[strut,0.5,1,2],[submarine,5,1,1],[subtraction,1,1,0],[suburb,1,1,0],[sugar,1,1,1],[suit,50,30,135],[suitcase,50,15,40],[sultana,1,0.5,0.3],[sun,10,10,10],[sunglasses,20,15,5],[sunscreen,0.5,0.5,0.5],[sunshade,100,100,100],[sushi,5,2,2],[swab,1,1,1],[swan,40,30,50],[sweat,1,1,0.1],[swings,500,10,250],[switch,1,1,1],[sword,100,10,3],[syringe,3,0.5,10],[syrup,1,1,1],[t,1,1.5,0],[table,100,100,100],[tablet,20,30,0.4],[tadpole,1,1,0.2],[tambourine,20,20,5],[tangerine,5,5,5],[tank,40,10,50],[tape,10,10,1],[tar,1,1,1],[tart,5,5,2],[tea,1,1,1],[tear,0.5,0.5,0.5],[teeth,0.5,0.5,1],[telephone,20,30,1],[tenrectangle,10,1,0],[tent,200,200,150],[tentacle,10,1,1],[testtube,1,1,10],[tetrahedron,1,1,1],[theatre,1000,1000,100],[thigh,15,30,0],[thighs,20,20,30],[thirtyrectangle,30,1,0],[thread,50,0.01,0.01],[three,1,1.5,0],[threebox,3,1,1],[threerectangle,3,1,0],[threshold,100,30,5],[throat,1,1,10],[throne,100,100,200],[thumb,10,1,1],[thymus,1,1,2],[tick,1,1,0],[tie,5,100,0.3],[tights,30,20,100],[tile,10,10,0.1],[time,1,1.5,0],[timemachine,1,1,1],[tin,10,10,10],[tinsel,100,5,5],[tissue,1,1,1],[toadstool,5,5,5],[toast,10,10,0.5],[toboggan,50,50,50],[toe,2,2,2],[toenail,1,1,0.3],[toffee,1,1,1],[tofu,2,1,1],[tomato,5,5,5],[tongs,20,1,1],[tongue,5,10,1],[tooth,1,1,1],[toothbrush,20,0.5,1],[toothpaste,20,3,3],[toothpick,0.2,0.1,4],[top,2,2,2],[topping,1,1,1],[torch,30,5,5],[torso,50,20,45],[torus,1,1,1],[toupée,20,20,1],[towel,100,100,1],[tower,10,10,100],[town,100,100,10],[toy,5,3,18],[train,10,3,0],[tram,10,2,3],[trapeze,70,1,1000],[trapezium,1,1,0],[tray,50,30,1],[treacle,1,1,1],[tree,5,5,10],[triangle,1,1,0.1],[tricycle,50,30,40],[trident,5,1,5],[trolley,60,100,100],[trombone,40,10,10],[trophy,30,30,50],[trousers,40,20,100],[truck,200,500,200],[trumpet,30,15,20],[trunk,200,100,100],[tube,3,1,1],[tues,0,0,0],[tunic,50,20,120],[tunnel,10,1,1],[turmeric,1,1,1],[turnip,5,5,5],[turtle,10,10,2],[tuxedo,50,20,130],[tv,150,5,100],[twelverectangle,12,1,1],[twentyrectangle,20,1,0],[two,1,1.5,0],[twobox,2,1,1],[tworectangle,2,1,0],[typewriter,30,20,10],[tyre,100,5,100],[u,1,1.5,0],[umbrella,100,100,100],[underpants,30,20,20],[underscore,1,1,0],[unguent,1,1,1],[university,100,100,10],[up,1,1,0],[uppert,1,1.5,0],[urea,1,1,1],[urine,1,1,1],[urn,10,10,20],[v,1,1.5,0],[vaccine,1,0.5,20],[variable,1,1,0],[vase,10,10,30],[vehicle,8,1,2],[vesicle,1,1,1],[vest,50,20,50],[vetiver,1,1,1],[video,1,1,0],[vine,10,1,1],[vinegar,1,1,1],[viola,40,15,150],[violin,30,100,10],[virus,1,1,1],[volcano,10,10,5],[w,1,1.5,0],[wafer,1,1,0.1],[waffle,1,1,0.5],[waist,30,20,1],[wall,300,10,400],[wallaby,100,80,130],[wallet,3,5,1],[walnut,2,2,2],[wand,30,0.5,0.5],[wardrobe,200,50,200],[wart,0.5,0.5,0.5],[warthog,50,30,40],[water,1,1,1],[waterchick,10,5,7],[watercress,1,1,0.1],[watermelon,40,40,30],[wax,1,1,1],[weasel,10,50,15],[website,20,0,30],[weet,10,5,1],[weight,10,10,10],[whale,5000,2500,500],[wharf,3,30,3],[wheat,1,1,30],[wheel,100,10,100],[wheelbarrow,50,100,50],[wheelchair,100,100,100],[whisk,5,5,20],[whistle,3,1,1],[whiteboard,200,10,100],[wick,0.1,0.1,20],[wickets,10,2,80],[wigwam,150,150,250],[windpipe,1,1,5],[windsock,30,10,10],[wine,5,5,30],[wing,5,1,0.5],[wiper,40,1,30],[wire,200,0.1,0.1],[witch,50,30,180],[wok,30,50,20],[womb,20,20,30],[wombat,30,50,30],[wood,5,1,1],[wool,20,10,10],[world,1,1,1],[worm,10,0.3,0.3],[wreath,30,30,5],[wrist,10,1,3],[write,1,1,0],[x,1,1,1],[xcorrection,1,1,0],[xline,1,0,0],[xylophone,100,20,20],[y,1,1.5,0],[yacht,500,200,800],[yard,500,500,250],[yline,0,1,0],[yoghurt,1,1,1],[yoyo,5,2,100],[z,1,1.5,0],[zero,1,1.5,0],[zip,1,0.2,5],[zither,30,40,5],[zline,0,0,1],[zucchini,20,3,3],[zygote,1,1,2]]
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/brthdict.txt b/Text-to-Breasonings-master/brthdict.txt
new file mode 100644
index 0000000000000000000000000000000000000000..057b8f948dbd9a210952f51249d732d6994c2b82
--- /dev/null
+++ b/Text-to-Breasonings-master/brthdict.txt
@@ -0,0 +1 @@
+[[a,useful]]
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/d.sh b/Text-to-Breasonings-master/d.sh
new file mode 100644
index 0000000000000000000000000000000000000000..87c67d10badfaffb522265d3d326ed1ef7397082
--- /dev/null
+++ b/Text-to-Breasonings-master/d.sh
@@ -0,0 +1,15 @@
+./bc12.sh
+./bc12.sh
+./bc12.sh
+./bc12.sh
+./bc12.sh
+./bc12.sh
+./bc12.sh
+./bc12.sh
+./bc12.sh
+./bc12.sh
+./bc12.sh
+./bc12.sh
+./bc12.sh
+./bc12.sh
+./bc12.sh
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/daily_medit b/Text-to-Breasonings-master/daily_medit
new file mode 100644
index 0000000000000000000000000000000000000000..2b082c3445ce4ef5063e144783d3996e6568cc9a
Binary files /dev/null and b/Text-to-Breasonings-master/daily_medit differ
diff --git a/Text-to-Breasonings-master/daily_medit.pl b/Text-to-Breasonings-master/daily_medit.pl
new file mode 100644
index 0000000000000000000000000000000000000000..da318f819c95eda4030fbc3ffdf4ba7f248f4b8b
--- /dev/null
+++ b/Text-to-Breasonings-master/daily_medit.pl
@@ -0,0 +1,8 @@
+:-include('text_to_breasonings.pl').
+:-include('meditatorsanddoctors.pl').
+:-include('meditationnoreplace2.pl').
+main:-catch(meditation,Err,handle_error(Err)),halt.
+
+handle_error(_Err):-
+ halt(1).
+main :- halt(1).
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/delegate_workloads.txt b/Text-to-Breasonings-master/delegate_workloads.txt
new file mode 100644
index 0000000000000000000000000000000000000000..35d59df3277bcc1b522a3c6866cc59a28fffe824
--- /dev/null
+++ b/Text-to-Breasonings-master/delegate_workloads.txt
@@ -0,0 +1,250 @@
+Delegate Workloads 1
+
+ 1. I cut off infinity.
+ 2. I used the sun.
+ 3. The queen helped.
+ 4. The delivery arrived.
+ 5. I earned the role.
+ 6. I wrote the developed text.
+ 7. I knew about the lotus spoon.
+ 8. I knew the female politician.
+ 9. I knew positive religion.
+ 10. People are safe.
+ 11. I knew about God (the philosopher).
+ 12. I breastoned (sic) out the delegating.
+ 13. I wrote 10 details per sentence.
+ 14. I owned the image.
+ 15. The graduations officer was there.
+ 16. There was philosophy.
+ 17. There was music.
+ 18. There was acting.
+ 19. I delegated the workload to myself.
+ 20. I made the model.
+ 21. I redrafted the idea.
+ 22. I wrote the book.
+ 23. I counted the breasonings per paragraph.
+ 24. I counted the As per book.
+ 25. I am with it over the ideas given to me.
+ 26. I delegated the work.
+ 27. I saw you in the in the inference.
+ 28. I verified the work.
+ 29. I went around the sun.
+ 30. I eyed the robots back.
+ 31. I multiplied by 10.
+ 32. I compared notes.
+ 33. I efficiently edited the sentence by finding a good reason for it.
+ 34. I found the criteria and wrote the assignment and delegated it.
+ 35. I wrote the assignment with the correct criteria in accreditation in tenure.
+ 36. The company delegated the work.
+ 37. I noticed the sculpture.
+ 38. I tricked the person’s eye.
+ 39. The duckling lived.
+ 40. Theatre increased music.
+ 41. Philosophy increased computer science.
+ 42. Pedagogy increased meditation.
+ 43. Medicine increased Computational English.
+ 44. Politics increased economics.
+ 45. Popology increased societology.
+ 46. The delegatee (sic) completed the workload.
+ 47. I moved my arms to keep them sunburn-free.
+ 48. I delegated the workload in Pedagogy.
+ 49. I knew the Professor.
+ 50. I talked with the people.
+ 51. I performed work well.
+ 52. the child created the star.
+ 53. The delegatee was protected by natural law.
+ 54. The delegater was protected by natural law.
+ 55. I engaged with the thought.
+ 56. I observed that the excellence threshold had been reached.
+ 57. I observed that the goodness threshold had been reached.
+ 58. I observed that the very much goodness threshold had been reached.
+ 59. I observed that the high quality threshold had been reached.
+ 60. I observed that the area of study threshold had been reached.
+ 61. I observed that the product standard had been reached.
+ 62. I observed that the emeritus award threshold had been reached.
+ 63. I taught the special skills.
+ 64. I delegated the workload to the employee at a single level.
+ 65. I earned the sense to check.
+ 66. I shaped foods in appetising ways.
+ 67. I stamped the work.
+ 68. I plotted the graph of the delegates’ workload against time.
+ 69. I plotted the graph of the delegatees’ workload against time.
+ 70. Time stood still when the workload was delegated.
+ 71. I helped with the workload.
+ 72. I examined the workload.
+ 73. The present famous employee reached readiness threshold.
+ 74. The present hidden employee reached readiness threshold.
+ 75. I watched the film.
+ 76. I knew about famousness.
+ 77. I prayed for each breasoning.
+ 78. I breasoned each prayed-for breasoning the form of a sentence object.
+ 79. I retained breasonings, recordings and blessedness.
+ 80. The passage is safe.
+
+Delegate Workloads 2
+
+ 1. Recordings of 80 breasonings prayed for and put through are compatible with conception.
+ 2. The same hen of the clutch of eggs will protect the eggs.
+ 3. The greater one was chosen because of being preferred to recordings.
+ 4. I won.
+ 5. The sun rose.
+ 6. I found the meditation (pedagogy) employees at the University.
+ 7. I delegated work to the suction holder.
+ 8. I noticed the pine.
+ 9. I noticed the professor chain.
+ 10. I ate on the professor in chains.
+ 11. The order of equality in breasonings is prayer, recordings and kinder breasonings for individuals.
+ 12. I saw the professor reading my chapters.
+ 13. I employed the employee
+ 14. Numbers of people believed the idea.
+ 15. I can be like Plato.
+ 16. I can be like marzipan jellioes.
+ 17. I worked in the group.
+ 18. I went through the levels in deciding what work to delegate.
+ 19. I entrained myself in a better relationship with students as a student as teacher.
+ 20. I am big in politicity (sic).
+ 21. I delegated writing the argument.
+ 22. I delegated the task where the subjects tasks, prerequisites and the previous knowledge were known psychologically.
+ 23. I used the vegetable product.
+ 24. There was an esoteric feeling in the air.
+ 25. Many things can come from nothing.
+ 26. The idea was detailed.
+ 27. The idea was done-up.
+ 28. I had a business.
+ 29. I wrote the idea-in-itself.
+ 30. An idea was given to me.
+ 31. I examined the content.
+ 32. I deserved the idea.
+ 33. The student attributed ideas to the model at University.
+ 34. I synthesised the animal product.
+ 35. I gave the input and output for the delegated algorithm (disagreeing instead of agreeing (agreeing)).
+ 36. I disagreed (agreed) with the incorrect (correct) logic symbol.
+ 37. Addition is logically walking up a hill as imagined to be stated by e..g.s.
+ 38. I prayed for the breasoning to ensure it wasn’t (was) flawed (correct).
+ 39. The role character marched forward.
+ 40. I installed the pink screen.
+ 41. I examined the model heart.
+ 42. I made the police box.
+ 43. I wrote the idea by-by-itself.
+ 44. I wrote the inter-disciplinary area of study points down.
+ 45. I applied the literature to the philosophy, then wrote on the philosophy in itself.
+ 46. I wrote the book.
+ 47. I performed the algorithm.
+ 48. I employed (trialled) the delegate workload retrieval model.
+ 49. I knew what was real.
+ 50. I noticed the monastics (people) retrieving information.
+ 51. As the workload was delegated, the element was needed.
+ 52. I said the workload was unnecessary (necessary).
+ 53. I wanted you.
+ 54. Kant predicted that meditation would overtake.
+ 55. Romeo and Juliet was intertwined.
+ 56. I agreed with delegating workloads.
+ 57. I delegated the workloads.
+ 58. I asked for help.
+ 59. Pedagogy will be done.
+ 60. I asked nicely for work to be done.
+ 61. I delegated grouping exposition points.
+ 62. I delegated connecting critique points.
+ 63. I expected Lucianic Meditation.
+ 64. I verified that the breasoning lists were not the same.
+ 65. I planned to be good.
+ 66. I knew about lost phalluses (sic) (definitiveness).
+ 67. I was racial.
+ 68. I studied the subject.
+ 69. I observed the individual working.
+ 70. I alighted at Green.
+ 71. I delighted the studio audience member.
+ 72. I designed the idea.
+ 73. I helped work with an employee.
+ 74. I noticed the Geelong Skyscraper.
+ 75. I performed the most intelligent work at each point.
+ 76. I was given actual songs.
+ 77. I gave Daniel the cord.
+ 78. My student submitted his assignment.
+ 79. I read the logic of the assignment.
+ 80. I had fun thinking of the future.
+
+Delegate Workloads 3
+
+ 1. I noticed that each workload delegate was friendly.
+ 2. Positivity is in agreement.
+ 3. I noticed the post-traumatic stress disorder (good health) of the gay rape victim (gay).
+ 4. The philosopher was a doctor and a meditator.
+ 5. I observed the vandalised (healthy) tree.
+ 6. There should be breaks at work.
+ 7. I delegated rest.
+ 8. I noticed 3/8 was written 8/3 (by the idea of the plimsoll line-like symbol) in the top down form.
+ 9. I examined the man’s ideas in the order that the honorary fellows thought of them in.
+ 10. I examined life.
+ 11. I am at the top.
+ 12. I corrected the line to the square.
+ 13. I noticed that there was mass production.
+ 14. The means of production were creative.
+ 15. God was dead (alive) (knew) a breasoning helper.
+ 16. The breasoning helper worked at God’s University.
+ 17. God didn’t make the breasoning helper available (only in accreditation).
+ 18. God wrote breasonings.
+ 19. Normal is high quality.
+ 20. I compared ideas to get the work done.
+ 21. I noticed the stillness.
+ 22. I wrote music.
+ 23. I dotted on my work for the day.
+ 24. I breasoned out my work for the day.
+ 25. I noticed the nth degree.
+ 26. I noticed harlequinades.
+ 27. I experienced effortless threshold.
+ 28. I chose the content.
+ 29. I noticed the students perform the work.
+ 30. I noticed the fireworks.
+ 31. The pink object represented work having been done.
+ 32. Delegate workloads was an assignment in the topic “production”.
+ 33. Creativity is a skills in the topic “production”.
+ 34. Delegation was the negative part of sin(x), workload was the positive part.
+ 35. The University texts were supported by Masters graduates.
+ 36. The workloads of the University input and output were delegated.
+ 37. The workload was planned with delegation.
+ 38. The queen delegated the circle of work.
+ 39. The words were credible.
+ 40. The words inspired love.
+ 41. No one (someone) abandoned (adopted) me.
+ 42. Breasonings are University and Vocational Education and Training put together.
+ 43. Individual accreditation was for delegate workloads.
+ 44. Medicine was required for 250 breasonings.
+ 45. Inky wondered if she would be a mother.
+ 46. Inky avoided the red line.
+ 47. I moved to a new location.
+ 48. I delegated the breasoning.
+ 49. The head of state delegated the workloads.
+ 50. I delegated Education accreditation for breasonings.
+ 51. I delegated help from the pedagogy helper for breasonings.
+ 52. I avoided workplace bullying.
+ 53. I started the next task.
+ 54. I ate the croissant.
+ 55. Delegation was equal to workloads (not only because they were equal in type with them).
+ 56. Delegating workloads was commercially viable.
+ 57. Delegating workloads was compatible with evolution.
+ 58. I am the true philosopher of the abbey.
+ 59. Vocational Education and Training precedes University.
+ 60. Vocational Education and Training can be at (was different from) University.
+ 61. The heart complements the brain at University.
+ 62. You delegated the work.
+ 63. I performed the work.
+ 64. I am developed by what will appear.
+ 65. The students’ topics are what will appear.
+ 66. Stacking of workloads as triangles become the Gods.
+ 67. My pedagogy is musical, theatrical, and philosophical.
+ 68. The Education Doctoral graduate was unfunded until University.
+ 69. The PhD topic list was arrived at by agreement.
+ 70. PhDs were based on secondary texts.
+ 71. The PhD thesis was slightly new on the topic.
+ 72. Delegate workloads was a classic by the 340 billion people.
+ 73. I was manual.
+ 74. The vocational liberal arts course delegated the workloads.
+ 75. I exemplified the connection.
+ 76. Using a different pedagogy helper would show (ensure) the same error (correctness) in continuity.
+ 77. I jumped around (I practised saltaté).
+ 78. The negative terms (initial positive terms) (delegators) were replaced with positive terms (workloads).
+ 79. I observed performing As in front of an abbott may have led to overcoming the chiropractor in an experiential acting class.
+ 80. I noticed God (the seed for a child).
+
+
diff --git a/Text-to-Breasonings-master/diff.pl b/Text-to-Breasonings-master/diff.pl
new file mode 100644
index 0000000000000000000000000000000000000000..3f1016c8d0d7728aa75879ca3d555daf19689477
--- /dev/null
+++ b/Text-to-Breasonings-master/diff.pl
@@ -0,0 +1,19 @@
+:-include('../listprologinterpreter/listprolog.pl').
+main :- open_string_file_s("../Text-to-Breasonings/file0.txt",A),
+open_string_file_s("../Text-to-Breasonings/file01.txt",A0),
+find_sent(A,A1),find_sent(A0,A01),
+
+subtract(A1,A01,B1),length(B1,B1L),
+subtract(A01,A1,B2),length(B2,B2L),
+%findall([X,"\n"],member(X,B1),B1X),
+%findall([X,"\n"],member(X,B2),B2X),
+flatten([B1L,"sentences deleted from file0.txt",
+B2L,"sentences added to file01.txt",
+"*****","Deleted from file0.txt:",B1,
+"*****","Added to file01.txt:",B2],List),
+findall(_,(member(L,List),term_to_atom(L,L1),writeln(L1)),_),
+%writeln(Atom),
+!.
+
+find_sent(A,F) :-
+split_string(A,".\n\r",".\n\r",B),delete(B,"",A1),findall(C,(member(C,A1),string_chars(C,D),not(forall(member(E,D),char_type(E,white)))),F),!.
diff --git a/Text-to-Breasonings-master/directiondict.txt b/Text-to-Breasonings-master/directiondict.txt
new file mode 100644
index 0000000000000000000000000000000000000000..0b70af307ae330566c274e01ca086e19bec684c5
--- /dev/null
+++ b/Text-to-Breasonings-master/directiondict.txt
@@ -0,0 +1 @@
+[[and,display]]
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/edit.pl b/Text-to-Breasonings-master/edit.pl
new file mode 100644
index 0000000000000000000000000000000000000000..0af1bcc2a34d4962b9832e74823fb3399a8f46ac
--- /dev/null
+++ b/Text-to-Breasonings-master/edit.pl
@@ -0,0 +1,108 @@
+:- include(library(edit)).
+:- multifile
+ edit:edit_command/2.
+:- multifile prolog_edit:load/0.
+%%:- use_module(library(filesex)).
+
+run1 :-
+ Brdict1='brdict1.txt',
+ Brdict2='brdict2.txt',
+ Brdict1vps='brdict1vps.txt',
+ Brdict2vps='brdict2vps.txt',
+ MacPath='~/yourfolder/',
+ MacPath1='/Users/yourname/yourfolder/',
+ VPSPath='root@xxx.xxx.xxx.xxx:/var/www/yourdomain.com/',
+ Scp='scp -p',
+ atom_concat(MacPath1,Brdict1, Brdict1Filename),
+ atom_concat(MacPath1,Brdict1vps,Brdict1vpsFilename),
+
+
+ shell1(Scp,VPSPath,Brdict1,MacPath,Brdict1vps,Command1),
+ shell1(Command1),
+
+ ((time_file(Brdict1Filename,Brdict1FilenameTime),
+ time_file(Brdict1vpsFilename,Brdict1FilenameTime))->true;
+
+ (prep1(Brdict1,Brdict1Term),
+ prep1(Brdict1vps,Brdict1vpsTerm),
+
+ (Brdict1Term=Brdict1vpsTerm->true;
+
+ (append(Brdict1Term,Brdict1vpsTerm,Brdict1Term2),
+
+ update1(Brdict1,Brdict1Term2),
+
+ shell1(Scp,MacPath,Brdict1,VPSPath,Brdict1,Command3),
+ shell1(Command3))))),
+
+ shell1('rm',MacPath,Brdict1vps,Command5),
+ shell1(Command5),
+
+
+ atom_concat(MacPath1,Brdict2, Brdict2Filename),
+ atom_concat(MacPath1,Brdict2vps,Brdict2vpsFilename),
+
+ shell1(Scp,VPSPath,Brdict2,MacPath,Brdict2vps,Command2),
+ shell1(Command2),
+
+ ((time_file(Brdict2Filename,Brdict2FilenameTime),
+ time_file(Brdict2vpsFilename,Brdict2FilenameTime))->true;
+
+ (prep2(Brdict2,Brdict2Term),
+ prep2(Brdict2vps,Brdict2vpsTerm),
+
+ (Brdict2Term=Brdict2vpsTerm->true;
+
+ (append(Brdict2Term,Brdict2vpsTerm,Brdict2Term2),
+
+ update1(Brdict2,Brdict2Term2),
+
+ shell1(Scp,MacPath,Brdict2,VPSPath,Brdict2,Command4),
+ shell1(Command4))))),
+ shell1('rm',MacPath,Brdict2vps,Command6),
+ shell1(Command6),
+!.
+
+prep1(Brdict1,Brdict1Term1) :-
+ phrase_from_file(string(BrDict0), Brdict1),
+ splitfurther(BrDict0,BrDict01),
+ sort(BrDict01,Brdict1Term1),
+ !.
+
+prep2(Brdict2,Brdict2Term1) :-
+ phrase_from_file(string(BrDict0t), Brdict2),
+ splitfurthert(BrDict0t,BrDict01t),
+ sort(BrDict01t,Brdict2Term1),
+ !.
+
+update1(File,BrDict1) :-
+ sort(BrDict1,BrDict2),
+ open(File,write,Stream),
+ write(Stream,BrDict2),
+ close(Stream).
+
+shell1(Command1,Path,Object,Command4) :-
+ atom_concat(Command1,' ',Command2),
+ atom_concat(Command2,Path,Command3),
+ atom_concat(Command3,Object,Command4).
+
+shell1n(Command1,Command2,Command3) :-
+ atom_concat(Command1,'\n',Command1A),
+ atom_concat(Command1A,Command2,Command3).
+
+shell1(Command1,Path1,Object1,Path2,Object2,Command5) :-
+ shell1(Command1,Path1,Object1,Command4),
+ shell1(Command4,Path2,Object2,Command5).
+
+shell1(Command) :-
+ (bash_command(Command,_)->
+ true;
+ (writeln(["Failed shell1 command: ",Command]),abort)
+ ),!.
+
+bash_command(Command, Output) :-
+ setup_call_cleanup(process_create(path(bash),
+ ['-c', Command],
+ [stdout(pipe(Out))]),
+ read_string(Out, _, Output),
+ close(Out)).
diff --git a/Text-to-Breasonings-master/file.txt b/Text-to-Breasonings-master/file.txt
new file mode 100644
index 0000000000000000000000000000000000000000..6103c7e2489f9ecc162230d4392ffd747f7a27b1
--- /dev/null
+++ b/Text-to-Breasonings-master/file.txt
@@ -0,0 +1 @@
+["","","",""]
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/go.pl b/Text-to-Breasonings-master/go.pl
new file mode 100644
index 0000000000000000000000000000000000000000..fa1ec681a6d44b54319e8b287dee79df55328b13
--- /dev/null
+++ b/Text-to-Breasonings-master/go.pl
@@ -0,0 +1,32 @@
+:-include('../Text-to-Breasonings/text_to_breasonings.pl').
+
+go :-
+working_directory(_,'../Philosophy/'),
+
+A=[person1,person2],
+
+time(findall(_,(member(P,A),
+
+time((
+foldr(string_concat,["swipl --stack-limit=80G -f -q ./bag_args21.pl"],S3)%,
+,catch(bash_command(S3,_), _, (foldr(string_concat,["Warning."%%"Error: Can't clone ",User3,"/",Repository3," repository on GitHub."
+ ],_Text4),%writeln1(Text4),
+ fail%abort
+ )),
+
+foldr(string_concat,["swipl --stack-limit=80G -f -q ./bag_algs1.pl"],S31)%,
+,catch(bash_command(S31,_), _, (foldr(string_concat,["Warning."%%"Error: Can't clone ",User3,"/",Repository3," repository on GitHub."
+ ],_Text4),%writeln1(Text4),
+ fail%abort
+ )),
+
+ texttobr2_1(1), % meditation
+ texttobr2_1(1), % teleport 1
+ texttobr2_1(1), % medicine 1
+ texttobr2_1(1), % teleport 2
+ texttobr2_1(1), % medicine 2
+ texttobr2_1(1), % a thought
+
+ writeln([P,done])
+ ))
+ ),_)),!.
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/grammar.pl b/Text-to-Breasonings-master/grammar.pl
new file mode 100644
index 0000000000000000000000000000000000000000..ccd69b9bff1bdad5c20795f5f254623f7cd9ea57
--- /dev/null
+++ b/Text-to-Breasonings-master/grammar.pl
@@ -0,0 +1,279 @@
+%% Replace with grammar part, write grammar part, write grammars to convert string to compound
+
+%% Replace with grammar part
+
+%% Make atoms into strings as soon as entered x have both, because it is annoying to enter strings as strings* - prefer atoms because they're faster, use strings only when necessary - * get rid of atoms as strings and use atoms only as names in form [n,name], v
+
+%% ** Need compound terms in LPI
+%% convert_to_grammar_part1([[n,nouns],[[v,l1],[v,l2]]],"->",[[[n,word],[[v,noun1]]],[[n,word],[[v,noun2]]],[[n,code],[[n,append],[[v,l1],[[v,noun1],[v,noun2]],[v,l2]]]]]]],[],G).
+%% convert_to_grammar_part1([[[n,noun],[[v,l1],[v,l2]],"->",[[[n,word],[[v,noun1]]]]]],[],G).
+%% convert_to_grammar_part1([[[n,noun],"->",[[[n,word],[[v,noun1]]]]]],[],G).
+%% convert_to_grammar_part1([[[n,noun],"->",[[[v,a]],[[n,code],[[n,=],[[v,a],"apple"]]]]]],[],G).
+%% convert_to_grammar_part1([[[n,noun],"->",[[v,a],[[n,code],[[n,=],[[v,a],["apple"]]]]]]],[],G).
+%% convert_to_grammar_part1([[[n,noun],"->",[["apple"]]]],[],G).
+%% convert_to_grammar_part1([[[n,noun],"->",["apple"]]],[],G).
+
+%% Notes
+%% Brackets around body in input v
+
+%% base case [] v
+%% calls, terminals, code v
+%% if calls - 2vp or non 2vp v
+
+%% No bc needed except [] v
+%% Recurse after all except bc [] v
+
+%% code in converted code has no brackets v
+
+%% $->v v
+
+%% must have a call or terminal v
+
+%% terminals have vgps, undef g t->g p v
+
+%% can find x as terminals, can find singletons later v
+
+%% grammar_part,[n,noun],[v,vgp1],[v,vgp2] should be
+%% grammar_part,[[n,noun],[v,vgp1],[v,vgp2]] do using list proc v
+
+%% append [[]] not [] to [[v v]] v
+
+%% Print [] around body v
+
+%% append list in first query args 1<->2 v
+
+%% ** change [v,name] to [v*,name] so new interpreter, grammar command can run them, can have multiple v, v* or groups of these used in an interpreter shell x use a marker to avoid replacing variables with values when passing algorithms to shells, or detect and leave without marker
+
+%% keep original length recorded to add base case in case when add variables
+convert_to_grammar_part1(Grammar1,Grammar2,Grammar3) :-
+ convert_to_grammar_part11(Grammar1,Grammar2,Grammar4,[],EndGrammar),
+ append(Grammar4,EndGrammar,Grammar3),!.
+
+convert_to_grammar_part11([],Grammar,Grammar,EndGrammar,EndGrammar) :- !.
+convert_to_grammar_part11(Grammar1,Grammar2,Grammar3,EndGrammar1,EndGrammar2) :-
+ Grammar1=[Grammar4|Grammar5],
+ (Grammar4=[[n,Name],Variables1,"->",Body1]->true;
+ (Grammar4=[[n,Name],"->",Body1],Variables1=[])),
+ %%((maplist(no_calls,Body1))-> %% this is a base case
+ %%append([[v,vgp],[v,vgp]],Variables1,Variables2);
+ append([[v,vgp1],[v,vgp2]],Variables1,Variables2)
+ %%)
+ ,
+ member(Item1,Body1),call_or_terminal(Item1), %% If not, operator expected.
+ append([[n,Name]],Variables2,Variables3),
+ Grammar6=[[n,grammar_part],Variables3,":-"],
+ convert_to_grammar_part20(Body1,1,2,2,[],Body2),
+ append(Grammar6,[Body2],Grammar7),
+
+ %% member to check all doesn't work elsewhere, do ; to ->true;
+(maplist(basecasecondition(Variables3,[n,Name]),Grammar2)->
+((Variables1=[]->(Grammar9=[[n,grammar_part],[[n,Name],[],[v,vgp]]],Grammar10=[[n,grammar_part],[[n,Name],"",[v,vgp]]],append(EndGrammar1,[[[n,grammar_part],[[n,Name],[v,vgp],[v,vgp]]]],EndGrammar3)
+);(
+Grammar9=[[n,grammar_part],[[n,Name],[],[v,vgp]|Variables1]],Grammar10=[[n,grammar_part],[[n,Name],"",[v,vgp]|Variables1]],append(EndGrammar1,[[[n,grammar_part],[[n,Name],[v,vgp],[v,vgp]|Variables1]]],EndGrammar3)
+)
+ ),
+ append(Grammar2,[Grammar9,
+ Grammar10,
+ Grammar7],Grammar8));
+ (EndGrammar1=EndGrammar3,
+ append(Grammar2,[
+ Grammar7],Grammar8))
+ ),
+ convert_to_grammar_part11(Grammar5,Grammar8,Grammar3,EndGrammar3,EndGrammar2),!.
+convert_to_grammar_part11(Grammar1,Grammar2,Grammar3,EndGrammar1,EndGrammar2) :-
+ Grammar1=[Grammar4|Grammar5],
+ ((((Grammar4=[_Name1,_Variables1,":-",_Body1]->true;
+ Grammar4=[_Name2,":-",_Body2])->true;
+ Grammar4=[_Name3,_Variables2])->true;
+ Grammar4=[_Name4])->true;
+ (writeln(["Error: Grammar",Grammar4,"badly formed."]),abort)),
+ append(Grammar2,[Grammar4],Grammar6),
+ convert_to_grammar_part11(Grammar5,Grammar6,Grammar3,EndGrammar1,EndGrammar2),!.
+
+basecasecondition(Variables3,[n,Name],Item1) :-
+ not((Item1=[[n,grammar_part],Item2|_Rest2],Item2=[[n,Name]|_Rest3],length(Variables3,Length),length(Item2,Length))).
+
+no_calls(Item) :-
+ not(call1(Item)),!.
+
+convert_to_grammar_part20(Body1,FirstVar1,SecondVar1,SecondVarParent,Body2,Body3) :-
+ (count_call_or_terminal(Body1,0,1,[],_I)->
+ SecondVar2=SecondVar1;SecondVar2=3),
+
+convert_to_grammar_part2(Body1,FirstVar1,SecondVar2,SecondVarParent,Body2,Body3),!.
+
+count_call_or_terminal([],N,N,I,I) :- !.
+count_call_or_terminal([Item|Items],N1,N2,I1,I2) :-
+ (call_or_terminal(Item)->(N3 is N1+1,append(I1,[Item],I3));N3 is N1,I3=I1),
+ count_call_or_terminal(Items,N3,N2,I3,I2),!.
+
+
+convert_to_grammar_part2([],_FirstVar,_SecondVar,_SecondVarParent,Body,Body) :- !.
+
+%% only want 2vp to be used if last call
+
+
+convert_to_grammar_part2(Body1,FirstVar1,SecondVar,SecondVarParent,Body2,Body3) :-
+ Body1=[Item|Items],
+ call1(Item),
+ (last_call_or_terminal2(Items)->
+ convert_to_grammar_part31(Body1,FirstVar1,SecondVar,SecondVarParent,Body2,Body3);
+ convert_to_grammar_part32(Body1,FirstVar1,SecondVar,SecondVarParent,Body2,Body3)), !.
+
+%%
+convert_to_grammar_part2(Body1,FirstVar1,SecondVar,SecondVarParent,Body2,Body3) :-
+ Body1=[Item|Items],
+ terminal(Item),
+ (last_call_or_terminal2(Items)->
+ convert_to_grammar_part31t(Body1,FirstVar1,SecondVar,SecondVarParent,Body2,Body3);
+ convert_to_grammar_part32t(Body1,FirstVar1,SecondVar,SecondVarParent,Body2,Body3)), !.
+
+convert_to_grammar_part2(Body1,FirstVar,SecondVar,SecondVarParent,Body2,Body3) :-
+ Body1=[Item|Rest1],
+ Item=[[n,code]|Rest2],
+ append(Body2,Rest2,Body4),
+ convert_to_grammar_part2(Rest1,FirstVar,SecondVar,SecondVarParent,Body4,Body3),!.
+
+convert_to_grammar_part2(Body1,_FirstVar,_SecondVar,_SecondVarParent,_Body4,_Body3) :-
+ Body1=[Item|_Rest1],
+ writeln(["Error: Item",Item,"badly formed."]),abort,!.
+
+convert_to_grammar_part31(Body1,FirstVar,SecondVar,SecondVarParent,Body2,Body3) :-
+ Body1=[Item1|Rest1],
+ convert_to_grammar_part311(Item1,FirstVar,SecondVarParent,Body2,Body4),
+ convert_to_grammar_part2(Rest1,FirstVar,SecondVar,SecondVarParent,Body4,Body3), !.
+
+convert_to_grammar_part311([[n,RuleName]],FirstVar1,SecondVarParent,Body2,Body3) :-
+ to_variable_name(FirstVar1,FirstVarName),
+ to_variable_name(SecondVarParent,SecondVarParentName),
+ Call=[[n,RuleName],FirstVarName,SecondVarParentName],
+ append([[n,grammar_part]],[Call],Item),
+ append(Body2,[Item],Body3),!.
+
+convert_to_grammar_part311([[n,RuleName]|[Variables1]],FirstVar1,SecondVarParent,Body2,Body3) :-
+ variables(Variables1),
+ to_variable_name(FirstVar1,FirstVarName),
+ to_variable_name(SecondVarParent,SecondVarParentName),
+ append([[n,RuleName],FirstVarName,SecondVarParentName],Variables1,Call),
+ append([[n,grammar_part]],[Call],Item2),
+ append(Body2,[Item2],Body3),!.
+
+convert_to_grammar_part32(Body1,FirstVar1,SecondVar,SecondVarParent,Body2,Body3) :-
+ Body1=[Item1|Rest1],
+ convert_to_grammar_part321(Item1,Rest1,FirstVar1,SecondVar,SecondVarParent,Body2,Body3),!.
+
+convert_to_grammar_part321(Item1,Rest1,FirstVar1,SecondVar1,SecondVarParent,Body2,Body3) :-
+ Item1=[[n,RuleName]],
+ to_variable_name(FirstVar1,FirstVarName),
+ to_variable_name(SecondVar1,SecondVarName),
+ Call=[[n,RuleName],FirstVarName,SecondVarName],
+ append([[n,grammar_part]],[Call],Item2),
+ append(Body2,[Item2],Body4),
+ FirstVar2 is SecondVar1,
+ SecondVar2 is SecondVar1+1,
+ convert_to_grammar_part2(Rest1,FirstVar2,SecondVar2,SecondVarParent,Body4,Body3),!.
+
+convert_to_grammar_part321(Item1,Rest1,FirstVar1,SecondVar1,SecondVarParent,Body2,Body3) :-
+ Item1=[[n,RuleName]|[Variables1]],
+ variables(Variables1),
+ to_variable_name(FirstVar1,FirstVarName),
+ to_variable_name(SecondVar1,SecondVarName),
+ append([[n,RuleName],FirstVarName,SecondVarName],Variables1,Call),
+ append([[n,grammar_part]],[Call],Item2),
+ append(Body2,[Item2],Body4),
+ FirstVar2 is SecondVar1,
+ SecondVar2 is SecondVar1+1,
+ convert_to_grammar_part2(Rest1,FirstVar2,SecondVar2,SecondVarParent,Body4,Body3),!.
+
+%%
+
+convert_to_grammar_part31t(Body1,FirstVar,SecondVar,SecondVarParent,Body2,Body3) :-
+ Body1=[Item1|Rest1],
+ convert_to_grammar_part311t(Item1,FirstVar,SecondVarParent,Body2,Body4),
+ convert_to_grammar_part2(Rest1,FirstVar,SecondVar,SecondVarParent,Body4,Body3), !.
+
+convert_to_grammar_part311t(Item1,FirstVar1,SecondVarParent,Body2,Body3) :-
+ to_variable_name(FirstVar1,FirstVarName),
+ to_variable_name(SecondVarParent,SecondVarParentName),
+ Call=[Item1,FirstVarName,SecondVarParentName],
+ append([[n,grammar_part]],[Call],Item2),
+ append(Body2,[Item2],Body3),!.
+
+convert_to_grammar_part32t(Body1,FirstVar1,SecondVar,SecondVarParent,Body2,Body3) :-
+ Body1=[Item1|Rest1],
+ convert_to_grammar_part321t(Item1,Rest1,FirstVar1,SecondVar,SecondVarParent,Body2,Body3),!.
+
+convert_to_grammar_part321t(Item1,Rest1,FirstVar1,SecondVar1,SecondVarParent,Body2,Body3) :-
+ to_variable_name(FirstVar1,FirstVarName),
+ to_variable_name(SecondVar1,SecondVarName),
+ Call=[Item1,FirstVarName,SecondVarName],
+ append([[n,grammar_part]],[Call],Item2),
+ append(Body2,[Item2],Body4),
+ FirstVar2 is SecondVar1,
+ SecondVar2 is SecondVar1+1,
+ convert_to_grammar_part2(Rest1,FirstVar2,SecondVar2,SecondVarParent,Body4,Body3),!.
+
+last_call_or_terminal2([]) :- !.
+last_call_or_terminal2(Body1) :-
+ Body1=[Item|Body2],
+ not(call_or_terminal(Item)),
+ last_call_or_terminal2(Body2),!.
+
+to_variable_name(Var,Name1) :-
+ atom_concat(vgp,Var,Name2),
+ Name1=[v,Name2],!.
+variable_name([v,_Name]) :- !.
+predicate_or_rule_name([n,_Name]) :- !.
+predicate_or_rule([[n,_Name]|_Variables]) :- !.
+variables([]) :- !.
+variables(Variables1) :-
+ Variables1=[Variable|Variables2],
+ terminal(Variable),%%=[v,_VariableName],
+ variables(Variables2),!.
+terminal([]) :- !.
+terminal(Item1) :-
+ not(code(Item1)),
+ ([Item2]=Item1->true;Item2=Item1),
+ (variable_name(Item2)->true;string(Item2)),!.
+code(Item) :-
+ (Item=[[n,code]|_Rest]->true;Item=[n,code]),!.
+call1(Item) :- (Item=[[n,_PredicateName]|_Variables]->true;Item=[n,_PredicateName]),not(code(Item)),!.
+call_not_grammar([[n,PredicateName]|_Variables]) :- not(PredicateName=grammar),not(PredicateName=grammar_part),!.
+call_grammar_part([[n,grammar_part]|_Variables]) :- !.
+name([n,_Name]):-!.
+call_or_terminal(Item) :-
+ terminal(Item)->true;call1(Item),!.
+
+%% write grammar part
+
+%% [[]] in args
+
+%% collect code commands to write
+
+
+%% Terminal known, Phrase2 known
+%% Terminal unknown, Phrase2 known
+%% Terminal known, Phrase2 unknown
+%% Terminal unknown, Phrase2 unknown - error
+%% if known or unknown, can be [v]
+
+%% Gets val or sets prolog var to undef, puts val in undef in var
+
+%% Doesn't support [v], use wrap(v) x - append not string concat if P1 is ["a"]
+
+getvalues2([],Values,Values,_Vars,Flags,Flags) :- !.
+getvalues2(VarNames1,Values1,Values2,Vars,Flags1,Flags2) :-
+ VarNames1=[VarName1|VarNames2],
+ (VarName1=[VarName2]->Flag1=true;VarName2=VarName1),
+ getvalue(VarName2,Value1,Vars),
+ (Value1=empty->Flag2=true;(Value2=Value1,Flag2=false)),
+ (Flag1=true->Value3=[Value2];Value3=Value2),
+ append(Values1,Value3,Values3),
+ append(Flags1,[Flag2],Flags3),
+ getvalues2(VarNames2,Values3,Values2,Vars,Flags3,Flags2),!.
+undefined_to_empty([],Values,Values) :- !.
+undefined_to_empty(Values1,Values2,Values3) :-
+ Values1=[Value1|Values4],
+ (var(Value1)->Value2=empty;Value2=Value1),
+ append(Values2,[Value2],Values5),
+ undefined_to_empty(Values4,Values5,Values3),!.
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/group_meditation b/Text-to-Breasonings-master/group_meditation
new file mode 100644
index 0000000000000000000000000000000000000000..fea863f638a1ba5fb8b4139f2f39eafd66023f7e
Binary files /dev/null and b/Text-to-Breasonings-master/group_meditation differ
diff --git a/Text-to-Breasonings-master/group_meditation.pl b/Text-to-Breasonings-master/group_meditation.pl
new file mode 100644
index 0000000000000000000000000000000000000000..0733703b15e14c828d7c567106a58b37baffb2f4
--- /dev/null
+++ b/Text-to-Breasonings-master/group_meditation.pl
@@ -0,0 +1,8 @@
+:-include('text_to_breasonings.pl').
+:-include('meditatorsanddoctors.pl').
+:-include('meditationnoreplace2.pl').
+main:-catch((meditators(A),meditators2(B),length(A,AL),length(B,BL),CL is AL+BL,N1 is 108*2,texttobr2_1(N1),texttobr2_1(CL)),Err,handle_error(Err)),halt.
+
+handle_error(_Err):-
+ halt(1).
+main :- halt(1).
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/in username folder/texttobr2.sh b/Text-to-Breasonings-master/in username folder/texttobr2.sh
new file mode 100644
index 0000000000000000000000000000000000000000..01549a0f3d9c4438e56558204b21f7a2cc0ff084
--- /dev/null
+++ b/Text-to-Breasonings-master/in username folder/texttobr2.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /Users/username/codefolder/
+swipl -G100g -T20g -L2g -s meditation1.pl
diff --git a/Text-to-Breasonings-master/listprologinterpreter1listrecursion4.pl b/Text-to-Breasonings-master/listprologinterpreter1listrecursion4.pl
new file mode 100644
index 0000000000000000000000000000000000000000..a9c35f7fda7e88f35e21dde6f1bff9c3a297c290
--- /dev/null
+++ b/Text-to-Breasonings-master/listprologinterpreter1listrecursion4.pl
@@ -0,0 +1,780 @@
+:- dynamic debug/1.
+:- dynamic cut/1.
+
+/** List Prolog Interpreter **/
+
+interpret(Debug,Query,Functions1,Result) :-
+%%writeln([i1]),
+ convert_to_grammar_part1(Functions1,[],Functions2),
+ %%writeln(Functions2),
+%%writeln(Functions2),
+ interpret1(Debug,Query,Functions2,Functions2,Result),
+ !.
+interpret1(Debug,Query,Functions1,Functions2,Result) :-
+%%writeln([i11]),
+ retractall(debug(_)),
+ assertz(debug(Debug)),
+ retractall(cut(_)),
+ assertz(cut(off)),
+ member1(Query,Functions1,Functions2,Result).
+%%member1([_,R],_,[],R).
+%%member1(_,_,[],[]).
+member1(_,_,[],_) :- fail,!.
+member1(Query,Functions,Functions2,Vars8) :-
+%%writeln([m1]),
+ cut(off)->(
+ (Query=[Function,Arguments1],
+ (Functions2=[[Function,Arguments2,":-",Body]|_Functions3]),
+ length(Arguments1,Length),
+ length(Arguments2,Length),
+
+ ((Function=[n,grammar]->true;Function=[n,grammar_part])->checkarguments1(Arguments1,Arguments2,[],Vars1,[],FirstArgs);checkarguments(Arguments1,Arguments2,[],Vars1,[],FirstArgs),!),
+ %%->ca2
+%%writeln([checkarguments,"Arguments1",Arguments1,"Arguments2",Arguments2,"Vars1",Vars1,"FirstArgs",FirstArgs]),
+ (debug(on)->(writeln([call,[Function,Arguments1],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ interpretbody(Functions,Functions2,Vars1,Vars2,Body,true),
+ updatevars(FirstArgs,Vars2,[],Result),
+ %%reverse(Result,[],Vars7),
+ ((not(Result=[])->
+ %%Result=[Var71|Vars72],
+ unique1(Result,[],Vars8),
+%%writeln(["FirstArgs",FirstArgs,"Vars",Vars2,"Result",Result,"Vars7",Vars7,"Vars72",Vars72,"Var71",Var71,"Vars8",Vars8]),
+%%writeln(["Vars8",Vars8]),
+ findresult3(Arguments1,Vars8,[],Result2)
+%%writeln([findresult3,"Arguments1",Arguments1,"Vars8",Vars8,"Result2",Result2])
+ );(
+%%writeln(here1),
+ Vars8=[],Result2=[])),
+%%writeln(["Arguments1",Arguments1,"Vars2",Vars2,"Result",Result]),
+ (debug(on)->(writeln([exit,[Function,Result2],"Press c."]),(not(get_single_char(97))->true;abort));true))
+ ->true;
+ (%%Query=[Function,_Arguments1],
+ %%Functions2=[[Function,_Arguments2,":-",_Body]|Functions3], %% make like previous trunk?
+ member11(Query,Functions,Functions2,Vars8))
+ );(turncut(off)%%,Result=[]
+ ).
+member11(Query,Functions,Functions2,Result) :-
+%%writeln([m11]),
+%%writeln(["Query",Query,"Functions",Functions,"Functions2",Functions2,"Result",Result]),
+ cut(off)->(
+ (Query=[Function],
+ (Functions2=[[Function,":-",Body]|_Functions3]),
+ (debug(on)->(writeln([call,[Function],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ Result=[],
+ interpretbody(Functions,Functions2,[],_Vars2,Body,true),!,
+ (debug(on)->(writeln([exit,[Function],"Press c."]),(not(get_single_char(97))->true;abort));true)
+ )->true;
+ (%%Query=[Function],
+ %%Functions2=[[Function]|Functions3],
+ member12(Query,Functions,Functions2,Result))
+ );(turncut(off)).
+member12(Query,Functions,Functions2,Vars8) :-
+%%writeln([m12]),
+ cut(off)->(
+ (Query=[Function,Arguments1],
+ (Functions2=[[Function,Arguments2]|_Functions3]),
+ length(Arguments1,Length),
+ length(Arguments2,Length),
+ ((Function=[n,grammar]->true;Function=[n,grammar_part])->checkarguments1(Arguments1,Arguments2,[],Vars1,[],FirstArgs);checkarguments(Arguments1,Arguments2,[],Vars1,[],FirstArgs),!),
+%%writeln([checkarguments,"Arguments1",Arguments1,"Arguments2",Arguments2,"Vars1",Vars1,"FirstArgs",FirstArgs]),
+ updatevars(FirstArgs,Vars1,[],Result),
+ %%reverse(Result,[],Vars7),
+ ((not(Result=[])->
+ %%Result=[Var71|Vars72],
+ unique1(Result,[],Vars8),
+ findresult3(Arguments1,Vars8,[],Result2)
+ );(
+%%writeln(here2),
+ Vars8=[],Result2=[])),
+ (debug(on)->(writeln([call,[Function,Arguments1],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[Function,Result2],"Press c."]),(not(get_single_char(97))->true;abort));true)
+ )->true;
+ (%%Query=[Function,_Arguments1],
+ %%Functions2=[[Function,_Arguments2]|Functions3],
+ member13(Query,Functions,Functions2,Vars8))
+ );(turncut(off)).
+member13(Query,Functions,Functions2,Result) :-
+%%writeln([m13]),
+ cut(off)->(
+ (Query=[Function],!,
+ (Functions2=[[Function]|_Functions3]),
+ (debug(on)->(writeln([call,[Function],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ Result=[],
+ %%interpretbody(Functions,[],_Vars2,Body,true),
+ (debug(on)->(writeln([exit,[Function],"Press c."]),(not(get_single_char(97))->true;abort));true)
+ )->true;
+ (%%Query=[Function],
+ Functions2=[_Function|Functions3],
+ member1(Query,Functions,Functions3,Result))
+ );(turncut(off)).
+interpret2(Query,Functions1,Functions2,Result) :-
+%%writeln(i2),
+%%writeln(["%%interpret2 Query",Query,"Functions1",Functions1,"Functions2",Functions2]),
+ member2(Query,Functions1,Functions2,Result).
+%%member2([_,R],_,[],R).
+%%member2(_,_,[],[]).
+member2(_,_,[],_) :- fail,!.
+member2(Query,Functions,Functions2,Vars8) :-
+%%writeln([m2]),
+ cut(off)->(
+ (Query=[Function,Arguments1],
+ (Functions2=[[Function,Arguments2,":-",Body]|_Functions3]),
+ length(Arguments1,Length),
+ length(Arguments2,Length),
+ ((Function=[n,grammar]->true;Function=[n,grammar_part])->checkarguments1(Arguments1,Arguments2,[],Vars1,[],FirstArgs);checkarguments(Arguments1,Arguments2,[],Vars1,[],FirstArgs),!),
+%%writeln([checkarguments,"Arguments1",Arguments1,"Arguments2",Arguments2,"Vars1",Vars1,"FirstArgs",FirstArgs]),
+ (debug(on)->(writeln([call,[Function,Arguments1],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ interpretbody(Functions,Functions2,Vars1,Vars2,Body,true), %%**arg2 change
+%%writeln(["Functions",Functions,"Functions2",Functions2,"Vars1",Vars1,"Vars2",Vars2,"Body",Body]),
+ updatevars(FirstArgs,Vars2,[],Result),
+ %%reverse(Result,[],Vars7),
+ ((not(Result=[])->
+ %%Result=[Var71|Vars72],
+ unique1(Result,[],Vars8),
+ findresult3(Arguments1,Vars8,[],Result2)
+%%writeln(["Vars2",Vars2,"Result",Result]),
+ );(
+ %%writeln(here3),
+ Vars8=[],Result2=[])),
+ (debug(on)->(writeln([exit,[Function,Result2],"Press c."]),(not(get_single_char(97))->true;abort));true)
+ )->true;
+ (%%Query=[Function,_Arguments1],
+ %%Functions2=[[Function,_Arguments2,":-",_Body]|Functions3],
+ member21(Query,Functions,Functions2,Vars8))
+ );(turncut(off)).
+member21(Query,Functions,Functions2,Result) :-
+%%writeln([m21]),
+ cut(off)->(
+ (Query=[Function],
+ (Functions2=[[Function,":-",Body]|_Functions3]),
+ Vars1=[],
+ (debug(on)->(writeln([call,[Function],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ interpretbody(Functions,Functions2,Vars1,_Vars2,Body,true),!, %%**arg2 change
+ (debug(on)->(writeln([exit,[Function],"Press c."]),(not(get_single_char(97))->true;abort));true)
+ )->true;
+ (%%Query=[Function],
+ %%Functions2=[[Function]|Functions3],
+ member22(Query,Functions,Functions2,Result))
+ );(turncut(off)).
+member22(Query,Functions,Functions2,Vars8) :-
+%%writeln([m22]),
+ cut(off)->(
+ (Query=[Function,Arguments1],
+ (Functions2=[[Function,Arguments2]|_Functions3]),
+ length(Arguments1,Length),
+ length(Arguments2,Length),
+ ((Function=[n,grammar]->true;Function=[n,grammar_part])->checkarguments1(Arguments1,Arguments2,[],Vars1,[],FirstArgs);checkarguments(Arguments1,Arguments2,[],Vars1,[],FirstArgs),!),
+%%writeln([checkarguments,"Arguments1",Arguments1,"Arguments2",Arguments2,"Vars1",Vars1,"FirstArgs",FirstArgs]),
+ updatevars(FirstArgs,Vars1,[],Result),
+ %%reverse(Result,[],Vars7),
+ ((not(Result=[])->
+ %%Result=[Var71|Vars72],
+ unique1(Result,[],Vars8),
+ findresult3(Arguments1,Vars8,[],Result2)
+ );(
+%%writeln(here4),
+ Vars8=[],Result2=[])),
+ (debug(on)->(writeln([call,[Function,Arguments1],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[Function,Result2],"Press c."]),(not(get_single_char(97))->true;abort));true)
+ )->true;
+ (%%Query=[Function,_Arguments1],
+ %%Functions2=[[Function,_Arguments2]|Functions3],
+ member23(Query,Functions,Functions2,Vars8))
+ );(turncut(off)).
+member23(Query,Functions,Functions2,Vars8) :-
+%%writeln([m23]),
+ cut(off)->(
+ (Query=[Function],!,
+ (Functions2=[[Function]|_Functions3]),
+ (debug(on)->(writeln([call,[Function],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ Vars8=[],
+ (debug(on)->(writeln([exit,[Function],"Press c."]),(not(get_single_char(97))->true;abort));true)
+ )->true;
+ (%%Query=[Function],
+ Functions2=[_Function|Functions3],
+ member2(Query,Functions,Functions3,Vars8))
+ );(turncut(off)).
+checkarguments([],[],Vars,Vars,FirstArgs,FirstArgs).
+checkarguments(Arguments1,Arguments2,Vars1,Vars2,FirstArgs1,FirstArgs2) :- %%
+%%writeln(1),
+ Arguments1=[Value|Arguments3], %% Value may be a number, string, list or tree
+ expressionnotatom(Value),
+ Arguments2=[Variable2|Arguments4],
+ not(var(Variable2)),isvar(Variable2),
+ putvalue(Variable2,Value,Vars1,Vars3),
+ checkarguments(Arguments3,Arguments4,Vars3,Vars2,FirstArgs1,FirstArgs2).
+checkarguments(Arguments1,Arguments2,Vars1,Vars2,FirstArgs1,FirstArgs2) :- %%A
+%%writeln(2),
+ Arguments1=[Variable|Arguments3], %% Value may be a number, string, list or tree
+ not(var(Variable)),isvar(Variable),
+ Arguments2=[Value|Arguments4],
+ expressionnotatom(Value),
+ putvalue(Variable,Value,Vars1,Vars3),
+ append(FirstArgs1,[[Variable,Value]],FirstArgs3),
+ checkarguments(Arguments3,Arguments4,Vars3,Vars2,FirstArgs3,FirstArgs2).
+checkarguments(Arguments1,Arguments2,Vars1,Vars2,FirstArgs1,FirstArgs2) :-
+%%writeln(3),
+ Arguments1=[Variable1|Arguments3],
+ not(var(Variable1)),isvar(Variable1),
+ Arguments2=[Variable2|Arguments4],
+ not(var(Variable2)),isvar(Variable2),
+ (getvalue(Variable2,Value,Vars1)->true;Value=empty),
+ %%((Value=empty->Value1=Variable2;Value1=Value))),
+ putvalue(Variable2,Value,Vars1,Vars3),
+ append(FirstArgs1,[[Variable1,Variable2]],FirstArgs3),
+ checkarguments(Arguments3,Arguments4,Vars3,Vars2,FirstArgs3,FirstArgs2).
+checkarguments(Arguments1,Arguments2,Vars1,Vars2,FirstArgs1,FirstArgs2) :-
+%%writeln(4),
+ Arguments1=[Value1|Arguments3],
+ expressionnotatom(Value1),
+ Arguments2=[Value1|Arguments4],
+ expressionnotatom(Value1),
+ checkarguments(Arguments3,Arguments4,Vars1,Vars2,FirstArgs1,FirstArgs2).
+
+checkarguments1([],[],Vars,Vars,FirstArgs,FirstArgs).
+checkarguments1(Arguments1,Arguments2,Vars1,Vars2,FirstArgs1,FirstArgs2) :- %%
+%%writeln(1),
+ Arguments1=[Value|Arguments3], %% Value may be a number, string, list or tree
+ expressionnotatom(Value),
+ Arguments2=[Variable2|Arguments4],
+ not(var(Variable2)),isvar(Variable2),
+ putvalue(Variable2,Value,Vars1,Vars3),
+ checkarguments1(Arguments3,Arguments4,Vars3,Vars2,FirstArgs1,FirstArgs2).
+checkarguments1(Arguments1,Arguments2,Vars1,Vars2,FirstArgs1,FirstArgs2) :- %%A
+%%writeln(2),
+ Arguments1=[Variable|Arguments3], %% Value may be a number, string, list or tree
+ not(var(Variable)),isvar(Variable),
+ Arguments2=[Value|Arguments4],
+ expressionnotatom(Value),
+ putvalue(Variable,Value,Vars1,Vars3),
+ append(FirstArgs1,[[Variable,_]],FirstArgs3),
+ checkarguments1(Arguments3,Arguments4,Vars3,Vars2,FirstArgs3,FirstArgs2).
+checkarguments1(Arguments1,Arguments2,Vars1,Vars2,FirstArgs1,FirstArgs2) :-
+%%writeln(3),
+ Arguments1=[Variable1|Arguments3],
+ not(var(Variable1)),isvar(Variable1),
+ Arguments2=[Variable2|Arguments4],
+ not(var(Variable2)),isvar(Variable2),
+ (getvalue(Variable2,Value,Vars1)->((Value=empty->Value1=Variable2;Value1=Value))),
+ putvalue(Variable2,Value1,Vars1,Vars3),
+ append(FirstArgs1,[[Variable1,Variable2]],FirstArgs3),
+ checkarguments1(Arguments3,Arguments4,Vars3,Vars2,FirstArgs3,FirstArgs2).
+checkarguments1(Arguments1,Arguments2,Vars1,Vars2,FirstArgs1,FirstArgs2) :-
+%%writeln(4),
+ Arguments1=[Value1|Arguments3],
+ expressionnotatom(Value1),
+ Arguments2=[Value1|Arguments4],
+ expressionnotatom(Value1),
+ checkarguments1(Arguments3,Arguments4,Vars1,Vars2,FirstArgs1,FirstArgs2).
+
+interpretbody(_Functions1,_Functions2,Vars,Vars,[],true) :- !.
+
+interpretbody(Functions0,Functions,Vars1,Vars2,Body,Result1) :-
+ Body=[Statements1|Statements2],not(predicate_or_rule_name(Statements1)),
+ interpretbody(Functions0,Functions,Vars1,Vars3,Statements1,Result2),
+ interpretbody(Functions0,Functions,Vars3,Vars2,Statements2,Result3),
+ %%((Result3=cut)->!;true),
+ logicalconjunction(Result1,Result2,Result3),!.
+
+interpretbody(Functions0,Functions,Vars1,Vars2,Body,Result1) :-
+ Body=[[not,[Statements]]|Statements2],
+ interpretbody(Functions0,Functions,Vars1,Vars3,Statements,Result2),
+ %%((Result2=cut)->!;true),
+ interpretbody(Functions0,Functions,Vars3,Vars2,Statements2,Result3),
+ %%((Result3=cut)->!;true),
+ logicalnot(Result2,Result4),
+ (logicalconjunction(Result1,Result4,Result3)->true;(Result1=false)),!.
+interpretbody(Functions0,Functions,Vars1,Vars2,Body,Result1) :-
+ Body=[[Statements1],or,[Statements2]],
+ (interpretbody(Functions0,Functions,Vars1,Vars2,Statements1,Result1)->true;
+ %%,((Value1=cut)->!;true));
+ interpretbody(Functions0,Functions,Vars1,Vars2,Statements2,Result1)),!.
+ %%,((Value=cut)->!;true)).
+ %%(logicaldisjunction(Result1,Value1,Value2)->true;(Result1=false)).
+
+
+interpretbody(Functions0,Functions,Vars1,Vars2,Body,Result1) :-
+ Body=[Statement|Statements],
+%%writeln(["Functions0",Functions0,"Functions",Functions,"Statement",Statement,"Vars1",Vars1,"Vars3",Vars3,"Result2",Result2,"Cut",Cut]),
+ not(predicate_or_rule_name(Statement)),
+ interpretstatement1(Functions0,Functions,Statement,Vars1,Vars3,Result2,Cut),
+%%writeln(["here1"]),
+ ((not(Cut=cut))->(Functions2=Functions);(turncut(on))), %% cut to interpret1/2 (assertz)
+%%writeln(["here3"]),
+ interpretbody(Functions0,Functions2,Vars3,Vars2,Statements,Result3),
+ %%((Result3=cut)->!;true),
+%%writeln(["here4"]),
+ logicalconjunction(Result1,Result2,Result3),!.
+%%writeln([Result1,Result2,Result3]).
+turncut(State1) :-
+ cut(State2),
+ retract(cut(State2)),
+ assertz(cut(State1)).
+logicaldisjunction(true,Result2,Result3) :-
+ true(Result2);true(Result3).
+logicalconjunction(true,Result2,Result3) :-
+ true(Result2),true(Result3).
+logicalnot(Result1,Result2) :-
+ true(Result1),false(Result2).
+logicalnot(Result1,Result2) :-
+ false(Result1),true(Result2).
+true(true).
+false(false).
+
+%%interpretstatement1(_F0,[],_,Vars,Vars,true,nocut) :- !
+%%writeln("AND HERE!")
+%% .
+
+interpretstatement1(_F0,_Functions,[[n,cut]],Vars,Vars,true,cut) :- !.
+
+interpretstatement1(_F0,_Functions,[[n,atom],[Variable]],Vars,Vars,true,nocut) :-
+ getvalue(Variable,Value,Vars),
+ (debug(on)->(writeln([call,[[n,atom],[Value]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ atom(Value),
+ (debug(on)->(writeln([exit,[[n,atom],[Value]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+interpretstatement1(_F0,_Functions,[[n,string],[Variable]],Vars,Vars,true,nocut) :-
+ getvalue(Variable,Value,Vars),
+ (debug(on)->(writeln([call,[[n,string],[Value]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ string(Value),
+ (debug(on)->(writeln([exit,[[n,string],[Value]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+interpretstatement1(_F0,_Functions,[[n,number],[Variable]],Vars,Vars,true,nocut) :-
+ getvalue(Variable,Value,Vars),
+ (debug(on)->(writeln([call,[[n,number],[Value]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ number(Value),
+ (debug(on)->(writeln([exit,[[n,number],[Value]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+interpretstatement1(_F0,_Functions,[[n,letters],[Variable]],Vars,Vars,true,nocut) :-
+ getvalue(Variable,Value,Vars),
+ (debug(on)->(writeln([call,[[n,letters],[Value]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ string_codes(Value,Value1),
+ phrase(word1(Value1),_),
+ (debug(on)->(writeln([exit,[[n,letters],[Value]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+interpretstatement1(_F0,_Functions,[[n,variable],[Variable]],Vars,Vars,true,nocut) :-
+ var(Variable),
+ (debug(on)->(writeln([call,[[n,variable],[Variable]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,variable],[Variable]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+interpretstatement1(_F0,_Functions,[[n,Operator],[Variable1,Variable2]],Vars1,Vars2,true,nocut) :-
+ isop(Operator),
+ interpretpart(is,Variable1,Variable2,Vars1,Vars2).
+
+interpretstatement1(_F0,_Functions,[[n,Operator],[Variable1,Variable2]],Vars1,Vars2,true,nocut) :-
+%%writeln(31),
+ isop(Operator),
+ interpretpart(is,Variable2,Variable1,Vars1,Vars2).
+
+interpretstatement1(_F0,_Functions,[[n,+],[Variable2,Variable3,Variable1]],Vars1,Vars2,true,nocut) :-
+%%writeln(4),
+ interpretpart(isplus,Variable1,Variable2,Variable3,Vars1,Vars2).
+
+%%interpretstatement1(_F0,_Functions,[Variable2+Variable3,is,Variable1],Vars1,Vars2,true,nocut) :-
+%%writeln(41),
+ %%interpretpart(isplus,Variable1,Variable2,Variable3,Vars1,Vars2).
+
+interpretstatement1(_F0,_Functions,[[n,=],[Variable1,[Variable2,Variable3]]],Vars1,Vars2,true,nocut) :-
+%%writeln(5),
+ interpretpart(match,Variable1,Variable2,Variable3,Vars1,Vars2).
+
+%%interpretstatement1(_F0,_Functions,[[Variable2,Variable3]=Variable1],Vars1,Vars2,true,nocut) :-
+%%writeln(51),
+%% interpretpart(match,Variable1,Variable2,Variable3,Vars1,Vars2).
+
+interpretstatement1(_F0,_Functions,[[n,wrap],[Variable1,Variable2]],Vars1,Vars2,true,nocut) :-
+%%writeln(52), wrap
+ interpretpart(bracket1,Variable1,Variable2,Vars1,Vars2).
+
+interpretstatement1(_F0,_Functions,[[n,unwrap],[Variable1,Variable2]],Vars1,Vars2,true,nocut) :-
+%%writeln(53), unwrap
+ interpretpart(bracket2,Variable1,Variable2,Vars1,Vars2).
+
+interpretstatement1(_F0,_Functions,[[n,head],[Variable1,Variable2]],Vars1,Vars2,true,nocut) :-
+%%writeln(6),
+ interpretpart(head,Variable1,Variable2,Vars1,Vars2).
+
+interpretstatement1(_F0,_Functions,[[n,tail],[Variable1,Variable2]],Vars1,Vars2,true,nocut) :-
+%%writeln(61),
+ interpretpart(tail,Variable1,Variable2,Vars1,Vars2).
+
+
+interpretstatement1(_F0,_Functions,[[n,member],[Variable1,Variable2]],Vars1,Vars2,true,nocut) :-
+%%writeln(8),
+ interpretpart(member,Variable1,Variable2,Vars1,Vars2).
+
+interpretstatement1(_F0,_Functions,[[n,delete],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut) :-
+%%writeln(),
+ interpretpart(delete,Variable1,Variable2,Variable3,Vars1,Vars2).
+%%** all in form f,[1,1,etc], including + with 0,1
+
+interpretstatement1(_F0,_Functions,[[n,append],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut) :-
+%%writeln(9),
+ interpretpart(append,Variable1,Variable2,Variable3,Vars1,Vars2).
+
+interpretstatement1(_F0,_Functions,[[n,stringconcat],[Variable1,Variable2,Variable3]],Vars1,Vars2,true,nocut) :-
+%%writeln(9),
+ interpretpart(stringconcat,Variable1,Variable2,Variable3,Vars1,Vars2).
+
+/**interpretstatement1(_F0,_Functions,[[n,grammar_part]|Variables1],Vars1,Vars2,true,nocut) :-
+%%writeln(x9),
+ [Variables2]=Variables1,
+ interpretpart(grammar_part,Variables2,Vars1,Vars2),!.**/
+
+interpretstatement1(_F0,_Functions,[[n,stringtonumber],[Variable1,Variable2]],Vars1,Vars2,true,nocut) :-
+%%writeln(52), wrap
+ interpretpart(stringtonumber,Variable1,Variable2,Vars1,Vars2).
+
+interpretstatement1(Functions0,_Functions,Query1,Vars1,Vars8,true,nocut) :-
+%%writeln("h1/10"),
+ Query1=[[n,grammar]|Arguments],
+ ((Arguments=[[Grammar1,Phrase1,RuleName|Variables2]],
+ %%[Variables3]=Variables2,
+ name(RuleName),
+ convert_to_grammar_part1(Grammar1,[],Grammar2))->true;
+ (Grammar2=Functions0,
+ ((Arguments=[[Phrase1,RuleName|Variables2]]
+ %%([Variables3]=Variables2->true;(Variables2=[],Variables3=[]))
+ )))),
+
+%%writeln(["Arguments",Arguments,"Vars1",Vars1]),
+
+%%substitutevarsA1(Phrase,Vars1,[],Vars3,[],FirstArgs1),
+
+%%Vars3=[[[v,PhraseVarName],PhraseValue]],
+%%Vars4=[[[v,vgp1],PhraseValue]],
+
+ append([Phrase1],Variables2,Variables4), %% *** Should V3 be in [] v
+
+substitutevarsA1(Variables4,Vars1,[],Vars2,[],FirstArgs), %%% var to value, after updatevars: more vars to values, and select argument vars from latest vars
+%%writeln([substitutevarsA1,arguments,Arguments,vars1,Vars1,vars3,Vars3,firstargs,FirstArgs]),
+
+Vars2=[Phrase2|Vars4],
+((Phrase2=[]->true;Phrase2=[_A|_B])->End=[];End=""),
+ (not(Vars4=[])->append([RuleName,Phrase2,End],Vars4,Vars5);
+ (Vars5=[RuleName,Phrase2,End])),
+ Query2=[[n,grammar_part],Vars5],
+ ((((terminal(RuleName),
+
+
+ (not(Vars4=[])->append([Phrase2,RuleName],Vars4,Vars52);
+ (Vars52=[Phrase2,RuleName])),
+
+ (debug(on)->(writeln([call,[[n,grammar],Vars52],"Press c."]),(not(get_single_char(97))->true;abort));true),
+
+ interpretpart(grammar_part,Vars5,[],Result1),
+
+ updatevars2(FirstArgs,Result1,[],Vars51),
+ updatevars3(Vars2,Vars51,Vars6),
+ reverse(Vars6,[],Vars7),
+ ((not(Vars7=[])->
+ %%Vars7=[Var71|Vars72],
+ unique1(Vars7,[],Vars8)
+)->true;(
+%%writeln(here1),
+ Vars8=[]),strip(Vars8,[],Result2))->true)),
+
+ (debug(on)->(writeln([exit,[[n,grammar],Result2],"Press c."]),(not(get_single_char(97))->true;abort));true)
+
+)->true;(not(terminal(RuleName)),
+ %% Bodyvars2?
+
+ (not(Vars4=[])->append([Phrase2,RuleName],Vars4,Vars52);
+ (Vars52=[Phrase2,RuleName])),
+
+(debug(on)->(writeln([call,[[n,grammar],Vars52],"Press c."]),(not(get_single_char(97))->true;abort));true),
+
+%% debug(on)->writeln([call,[Function,[Vars3]]]),
+%%writeln(["Query2",Query2,"Functions0",Functions0]),
+ interpret2(Query2,Grammar2,Grammar2,Result1),
+ (debug(on)->(writeln([exit,[[n,grammar],Vars52],"Press c."]),(not(get_single_char(97))->true;abort));true),
+
+ updatevars2(FirstArgs,Result1,[],Vars51),
+ updatevars3(Vars2,Vars51,Vars6),
+ reverse(Vars6,[],Vars7),
+ ((not(Vars7=[])->
+ %%Vars7=[Var71|Vars72],
+ unique1(Vars7,[],Vars8)
+);(
+%%writeln(here1),
+ Vars8=[])))),!.
+
+
+interpretstatement1(Grammar,_Grammar2,Query1,Vars1,Vars8,true,nocut) :-
+%%writeln("h1/10"),
+%%trace,%%%%****
+ Query1=[[n,grammar_part]|Arguments],
+ Arguments=[[RuleName|Variables2]],
+ %%(([Variables4|Rest]=Variables2->Variables3=Variables2;(Variables2=[],Variables3=[]))),
+
+ ((not(terminal(RuleName)),
+%%writeln(["Arguments",Arguments,"Vars1",Vars1]),
+ substitutevarsA1(Variables2,Vars1,[],Vars3,[],FirstArgs), %%% var to value, after updatevars: more vars to values, and select argument vars from latest vars
+%%writeln([substitutevarsA1,arguments,Arguments,vars1,Vars1,vars3,Vars3,firstargs,FirstArgs]),
+ (not(Vars3=[])->(append([RuleName],Vars3,Vars4),Query2=[[n,grammar_part],Vars4]);
+ Query2=[[n,grammar_part],RuleName]), %% Bodyvars2?
+%% debug(on)->writeln([call,[Function,[Vars3]]]),
+%%writeln(["Query2",Query2,"Functions0",Functions0]),
+ %%notrace,%%****
+ interpret2(Query2,Grammar,Grammar,Result1),
+ %%trace,%****
+ updatevars2(FirstArgs,Result1,[],Vars5),
+ updatevars3(Vars1,Vars5,Vars6),
+ reverse(Vars6,[],Vars7),
+ ((not(Vars7=[])->
+ %%Vars7=[Var71|Vars72],
+ unique1(Vars7,[],Vars8)
+)->true;(
+%%writeln(here1),
+ Vars8=[]))->true)->true;
+(terminal(RuleName),substitutevarsA1(Variables2,Vars1,[],Vars3,[],FirstArgs),
+%%writeln(here), %%****
+%%Vars3=[Phrase,End],
+%%Vars41=[Phrase,[v,vgp]],
+append([RuleName],Vars3,Vars9),
+%%writeln([vars9,Vars9]), %%%%%*****
+interpretpart(grammar_part,Vars9,[],Result1),
+ updatevars2(FirstArgs,Result1,[],Vars5),
+ updatevars3(Vars3,Vars5,Vars6),
+ reverse(Vars6,[],Vars7),
+ ((not(Vars7=[])->
+ %%Vars7=[Var71|Vars72],
+ unique1(Vars7,[],Vars8)
+ %%writeln([vars8,Vars8]) %%%*****
+)->true;(
+%%writeln(here1),
+ Vars8=[]))->true)),%%notrace, %%****
+ !.
+
+
+interpretstatement1(Functions0,_Functions,Query1,Vars1,Vars8,true,nocut) :-
+%%writeln("h1/10"),
+ Query1=[Function,Arguments],not(Function=[n,grammar]->true;Function=[n,grammar_part]),
+%%writeln(["Arguments",Arguments,"Vars1",Vars1]),
+ substitutevarsA1(Arguments,Vars1,[],Vars3,[],FirstArgs), %%% var to value, after updatevars: more vars to values, and select argument vars from latest vars
+%%writeln([substitutevarsA1,arguments,Arguments,vars1,Vars1,vars3,Vars3,firstargs,FirstArgs]),
+ Query2=[Function,Vars3], %% Bodyvars2?
+%% debug(on)->writeln([call,[Function,[Vars3]]]),
+%%writeln(["Query2",Query2,"Functions0",Functions0]),
+ interpret2(Query2,Functions0,Functions0,Result1),
+ updatevars2(FirstArgs,Result1,[],Vars5),
+ updatevars3(Vars1,Vars5,Vars6),
+ reverse(Vars6,[],Vars7),
+ ((not(Vars7=[])->
+ %%Vars7=[Var71|Vars72],
+ unique1(Vars7,[],Vars8)
+);(
+%%writeln(here1),
+ Vars8=[])).
+%%**** reverse and take first instance of each variable.
+ %%findresult3(Arguments,Vars6,[],Result2)
+%%writeln(["FirstArgs",FirstArgs,"Result1",Result1,"Vars5",Vars5,"Vars4",Vars4]),
+%%writeln(["Vars1:",Vars1,"Vars4:",Vars4]),
+%% debug(on)->writeln([exit,[Function,[Result2]]]).
+interpretstatement1(Functions0,_Functions,Query,Vars,Vars,true) :-
+ Query=[_Function],
+ debug(on)->writeln([call,[Function]]),
+ interpret2(Query,Functions0,Functions0,_Result1),
+ debug(on)->writeln([exit,[Function]]).
+
+word1([])-->[].
+word1([A|As]) --> [A],word1(As),{%%atom_codes(A,AC),
+char_type(A,alpha)},!.
+/**interpretstatement1(_Functions0, _Functions,_Query,_Vars1,_Vars2,false) :-
+ writeln([false]).
+**/
+interpretstatement2(Value,_Vars,Value) :-
+ (number(Value);atom(Value)).
+interpretstatement2(Variable,Vars1,Value) :-
+ getvalue(Variable,Value,Vars1).
+interpretstatement3(A + B,Vars,Value1) :-
+ interpretstatement2(A,Vars,Value2),
+ interpretstatement2(B,Vars,Value3),
+ Value1 = Value2 + Value3.
+interpretstatement3(Value,_Vars,Value) :-
+ (number(Value);atom(Value)).
+interpretstatement3(Variable,Vars,Value) :-
+ getvalue(Variable,Value,Vars).
+getvalue(Variable,Value,Vars) :-
+ ((not(isvar(Variable)),isvalstrorundef(Value),Variable=Value)->true;
+ (isvar(Variable),isvalstrorundef(Value),getvar(Variable,Value,Vars))).
+putvalue(Variable,Value,Vars1,Vars2) :-
+ ((not(isvar(Variable)),isvalstrorundef(Value),Variable=Value,Vars1=Vars2)->true;
+ (isvar(Variable),isvalstrorundef(Value),updatevar(Variable,Value,Vars1,Vars2))),!.
+getvar(Variable,Value,Vars) :-
+ member([Variable,Value],Vars),
+ not(Value=empty).
+getvar(undef,undef,_Vars) :-
+ !.
+getvar(Variable,empty,Vars) :-
+ not(member([Variable,_Value],Vars))->true;
+ member([Variable,empty],Vars).
+updatevar(undef,_Value,Vars,Vars) :-
+ !.
+updatevar(Variable,Value,Vars1,Vars2) :-
+ ((((member([Variable,empty],Vars1),
+ delete(Vars1,[Variable,empty],Vars3),
+ append(Vars3,[[Variable,Value]],Vars2))->true;
+ ((not(member([Variable,Value1],Vars1)),
+ ((Value1=empty)->true;(Value1=Value)))),
+ append(Vars1,[[Variable,Value]],Vars2))->true;
+ (member([Variable,Value],Vars1),Vars2=Vars1))->true;
+ (undef(Variable),
+ append(Vars1,[[Variable,Value]],Vars2))).
+/**updatevars(_FirstArgs,[],Vars,Vars).
+updatevars(FirstArgs,Vars1,Vars2,Vars3) :-
+ Vars1=[[Variable1,Value]|Vars4],
+ ((member([Variable2,Variable1],FirstArgs), %% removed brackets around firstargs here and 2 line below
+ append(Vars2,[[Variable2,Value]],Vars5))->true;
+ (member([Variable1,_Variable2],FirstArgs),
+ append(Vars2,[[Variable1,Value]],Vars5))),
+ updatevars(FirstArgs,Vars4,Vars5,Vars3),
+ !.
+updatevars(FirstArgs,Vars1,Vars2,Vars3) :-
+ Vars1=[_Vars4|Vars5],
+ updatevars(FirstArgs,Vars5,Vars2,Vars3).**/
+updatevars([],_Vars1,Vars2,Vars2) :- !.
+updatevars(FirstArgs,Vars1,Vars2,Vars3) :-
+ FirstArgs=[[Orig,New]|Rest],
+ (expressionnotatom(New)->append(Vars2,[[Orig,New]],Vars4);
+ (member([New,Value],Vars1),
+ append(Vars2,[[Orig,Value]],Vars4))),
+ updatevars(Rest,Vars1,Vars4,Vars3),!.
+updatevars2(_FirstArgs,[],Vars,Vars) :- !.
+updatevars2(FirstArgs,Vars1,Vars2,Vars3) :-
+ Vars1=[[Variable,Value]|Vars4],
+ (member(Variable,FirstArgs), %% removed brackets around firstargs here and 2 line below, ** vars1 into arg in (10), check cond
+ append(Vars2,[[Variable,Value]],Vars5)),
+ updatevars2(FirstArgs,Vars4,Vars5,Vars3).
+updatevars3(Vars1,[],Vars1).
+updatevars3(Vars1,Vars2,Vars4) :-
+ Vars2=[[Variable,Value]|Vars5],
+ delete(Vars1,[Variable,empty],Vars6),
+ append(Vars6,[[Variable,Value]],Vars7),
+ updatevars3(Vars7,Vars5,Vars4),
+ !.
+updatevars3(Vars1,Vars2,Vars4) :-
+ Vars2=[[Variable,Value]|Vars5],
+ append(Vars1,[[Variable,Value]],Vars6),
+ updatevars3(Vars6,Vars5,Vars4).
+reverse([],List,List).
+reverse(List1,List2,List3) :-
+ List1=[Head|Tail],
+ append([Head],List2,List4),
+ reverse(Tail,List4,List3).
+unique1([],Items,Items).
+unique1([Item|Items1],Items2,Items3) :-
+ delete(Items1,Item,Items4),
+ append(Items2,[Item],Items5),
+ unique1(Items4,Items5,Items3).
+isvar([v,_Value]) :- !.
+isval(Value) :-
+ number(Value).
+isvalstr(N) :-
+ isval(N);string(N).
+isvalempty(N) :-
+ isval(N);(N=empty).
+/**isvalstrempty(N) :-
+ isval(N);(string(N);N=empty).**/
+isvalstrempty(N) :-
+ var(N),!.
+isvalstrempty(N) :-
+ isval(N),!.
+isvalstrempty(N) :-
+ string(N).
+isvalstrempty(empty).
+isvalstrempty([]).
+/**isvalstrempty(N) :-
+ atom(N),fail,!.
+**/
+isvalstrorundef(N) :-
+ var(N),!.
+isvalstrorundef(N) :-
+ not(var(N)),isval(N),!.
+isvalstrorundef(N) :-
+ not(var(N)),expression(N),!.
+undef(N) :-
+ var(N).
+/**
+expression(N) :-
+ isval(N);(string(N);atom(N)),!.
+expression([]).
+expression(empty).
+expression([N]) :-
+ expression(N).
+expression([N|Ns]):-
+ expression(N),expression(Ns).
+**/
+
+expression(empty) :-
+ !.
+expression(N) :-
+ isval(N),!.
+expression(N) :-
+ string(N),!.
+expression(N) :-
+ atom(N),!.
+expression([]) :-
+ !.
+expression(N) :-
+ not(atom(N)),
+ length(N,L),L>=1,
+ expression2(N).
+expression2([]).
+expression2([N|Ns]) :-
+ expression3(N),
+ expression2(Ns).
+expression3(N) :-
+ isval(N),!.
+expression3(N) :-
+ string(N),!.
+expression3(N) :-
+ atom(N),!.
+
+expressionnotatom(N) :-
+ isvalstrempty(N),!.
+expressionnotatom(N) :-
+ not(atom(N)),
+ length(N,L),L>=1,
+ expressionnotatom2(N),!.
+expressionnotatom(Name) :-
+ predicate_or_rule_name(Name),!.
+expressionnotatom2([]).
+expressionnotatom2([N|Ns]) :-
+ isvalstrempty(N),
+ expressionnotatom2(Ns).
+
+substitutevarsA1(Arguments,Vars1,Vars2,Vars3,FirstArgs1,FirstArgs2) :-
+ substitutevarsA2(Arguments,Vars1,Vars2,Vars3,FirstArgs1,FirstArgs2),!.
+substitutevarsA2([],_Vars1,Vars2,Vars2,FirstArgs,FirstArgs):-!.
+substitutevarsA2(Arguments,Vars1,Vars2,Vars3,FirstArgs1,FirstArgs2) :-
+ Arguments=[Variable|Variables],
+ ((getvalue(Variable,Value,Vars1),
+ Value=empty)->
+ ((append(Vars2,[Variable],Vars4)),
+ (isvar(Variable)->append(FirstArgs1,[Variable],
+ FirstArgs3);FirstArgs3=FirstArgs1));
+ (getvalue(Variable,Value,Vars1),
+ append(Vars2,[Value],Vars4)),
+ FirstArgs3=FirstArgs1),
+ substitutevarsA2(Variables,Vars1,Vars4,Vars3,FirstArgs3,FirstArgs2),!.
+
+findresult3([],_Result,Result2,Result2).
+findresult3(Arguments1,Result1,Result2,Result3) :-
+ Arguments1=[Value|Arguments2],
+ expressionnotatom(Value),
+ append(Result2,[Value],Result4),
+ findresult3(Arguments2,Result1,Result4,Result3).
+findresult3(Arguments1,Result1,Result2,Result3) :-
+ Arguments1=[Variable|Arguments2],
+ isvar(Variable),
+ member([Variable,Value],Result1),
+ append(Result2,[Value],Result4),
+ findresult3(Arguments2,Result1,Result4,Result3).
+
+strip([],Result2,Result2).
+strip(Arguments1,Result2,Result3) :-
+ Arguments1=[[Variable,Value]|Arguments2],
+ isvar(Variable),
+ append(Result2,[Value],Result4),
+ strip(Arguments2,Result4,Result3).
diff --git a/Text-to-Breasonings-master/listprologinterpreter3preds5.pl b/Text-to-Breasonings-master/listprologinterpreter3preds5.pl
new file mode 100644
index 0000000000000000000000000000000000000000..5bab8794134637fbffd1255171f1a130675a2040
--- /dev/null
+++ b/Text-to-Breasonings-master/listprologinterpreter3preds5.pl
@@ -0,0 +1,218 @@
+interpretpart(is,Variable1,Variable2,Vars1,Vars2) :-
+ getvalues(Variable1,Variable2,Value1,Value2,Vars1),
+
+ %%getvalue(Value1,Value1A,Vars1),
+ %%isvalstr(Value1),
+ %%isvalstr(Value1A),
+ expression(Value1),
+ expression(Value2),
+ val1emptyorvalsequal(Value1,Value2),
+ %%isval(Value2),
+ putvalue(Variable1,Value2,Vars1,Vars2),
+ (debug(on)->(writeln([call,[[n,is],[variable,Value2]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,is],[Variable1,Value2]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+ interpretpart(bracket1,Variable1,Variable2,Vars1,Vars2) :-
+ getvalues(Variable1,Variable2,Value1,Value2,Vars1),
+ Value1A = [Value2],
+ val1emptyorvalsequal(Value1,Value1A),
+ %%val1emptyorvalsequal(Value1A,Value2),
+ putvalue(Variable1,Value1A,Vars1,Vars2),
+ (debug(on)->(writeln([call,[[n,wrap],[variable,[Value2]]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,wrap],[Variable2,[Value2]]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+ interpretpart(stringtonumber,Variable2,Variable1,Vars1,Vars2) :-
+ getvalues(Variable1,Variable2,Value1,Value2,Vars1),
+ %%Value1A = [Value2],
+ (Value2A=""->Value1="";
+ number_string(Value1,Value2A)),
+ val1emptyorvalsequal(Value2,Value2A),
+ %%val1emptyorvalsequal(Value1A,Value2),
+ putvalue(Variable2,Value2A,Vars1,Vars2),
+ (debug(on)->(writeln([call,[[n,stringtonumber],[Value1,Value2A]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,stringtonumber],[Value1,Value2A]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+interpretpart(bracket2,Variable1,Variable2,Vars1,Vars2) :-
+ getvalues(Variable1,Variable2,Value1,Value2,Vars1),
+ Value1A = Value2,
+ val1emptyorvalsequal(Value1,Value1A),
+ %%val1emptyorvalsequal(Value2A,Value1),
+ putvalue(Variable1,Value1A,Vars1,Vars2),
+ (debug(on)->(writeln([call,[[n,unwrap],[[variable],[Value2]]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,unwrap],[[Value2],[Value2]]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+interpretpart(head,Variable1,Variable2,Vars1,Vars2) :-
+ getvalues(Variable1,Variable2,Value1,Value2,Vars1),
+ Value1=[Value1A|_Rest],
+ val1emptyorvalsequal(Value2,Value1A),
+ putvalue(Variable2,Value1A,Vars1,Vars2),
+ (debug(on)->(writeln([call,[[n,head],[Value1,variable]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,head],[Value1,Value1A]],"Press c."]),(not(get_single_char(97))->true;abort));true), !.
+
+interpretpart(tail,Variable1,Variable2,Vars1,Vars2) :-
+ getvalues(Variable1,Variable2,Value1,Value2,Vars1),
+ Value1=[_Head|Value1A],
+ %%removebrackets(Value1A,Value1B),
+ val1emptyorvalsequal(Value2,Value1A),
+ putvalue(Variable2,Value1A,Vars1,Vars2),
+ (debug(on)->(writeln([call,[[n,tail],[Value1,variable]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,tail],[Value1,Value1A]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+interpretpart(member,Variable1,Variable2,Vars1,Vars2) :-
+ getvalues(Variable1,Variable2,Value1,Value2,Vars1),
+ (not(Value1=empty)->(member(Value1,Value2),Vars2=Vars1,
+ (debug(on)->(writeln([call,[[n,member],[Value1,Value2]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,member],[Value1,Value2]],"Press c."]),(not(get_single_char(97))->true;abort));true));
+ (member(Value3,Value2),
+ putvalue(Variable1,Value3,Vars1,Vars2),
+ (debug(on)->(writeln([call,[[n,member],[variable1,Value2]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,member],[Value3,Value2]],"Press c."]),(not(get_single_char(97))->true;abort));true))).
+
+interpretpart(isplus,Variable1,Variable2,Variable3,Vars1,Vars2) :-
+ getvalues(Variable1,Variable2,Variable3,Value1,Value2,Value3,Vars1),
+ isvalempty(Value1),
+ isval(Value2),
+ isval(Value3),
+ Value1A is Value2 + Value3,
+ val1emptyorvalsequal(Value1,Value1A),
+ putvalue(Variable1,Value1A,Vars1,Vars2),
+ (debug(on)->(writeln([call,[[n,+],[Value2,Value3,variable]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,+],[Value2,Value3,Value1A]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+interpretpart(match,Variable1,Variable2,Variable3,Vars1,Vars2) :-
+ getvalues(Variable1,Variable2,Variable3,Value1,Value2,Value3,Vars1),
+ Value1 = [Value2A, Value3A],
+ val1emptyorvalsequal(Value2,Value2A),
+ val1emptyorvalsequal(Value3,Value3A),
+ putvalue(Variable2,Value2A,Vars1,Vars3),
+ putvalue(Variable3,Value3A,Vars3,Vars2),
+ (debug(on)->(writeln([call,[[n,=],[[Value2A, Value3A],[variable1,variable2]]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,=],[[Value2A, Value3A],[Value2A, Value3A]],"Press c."]]),(not(get_single_char(97))->true;abort));true).
+
+interpretpart(match,Variable1,Variable2,Variable3,Vars1,Vars2) :-
+ getvalues(Variable1,Variable2,Variable3,Value1,Value2,Value3,Vars1),
+ Value1A = [Value2, Value3],
+ val1emptyorvalsequal(Value1,Value1A),
+ putvalue(Variable1,Value1A,Vars1,Vars2),
+ (debug(on)->(writeln([call,[[n,=],[variable,[Value2,Value3]]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,=],[Value2,Value3],[Value2,Value3]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+interpretpart(delete,Variable1,Variable2,Variable3,Vars1,Vars2) :-
+ getvalues(Variable1,Variable2,Variable3,Value1,Value2,Value3,Vars1),
+ delete(Value1,Value2,Value3A),
+ val1emptyorvalsequal(Value3,Value3A),
+ putvalue(Variable3,Value3A,Vars1,Vars2),
+ (debug(on)->(writeln([call,[[n,delete],[Value1,Value2,variable3]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,delete],[Value1,Value2,Value3A]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+
+interpretpart(append,Variable1,Variable2,Variable3,Vars1,Vars2) :-
+ getvalues(Variable1,Variable2,Variable3,Value1,Value2,Value3,Vars1),
+ append1(Value1,Value2,Value3A),
+ val1emptyorvalsequal(Value3,Value3A),
+ putvalue(Variable3,Value3A,Vars1,Vars2),
+ (debug(on)->(writeln([call,[[n,append],[Value1,Value2,variable3]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,append],[Value1,Value2,Value3A]],"Press c."]),(not(get_single_char(97))->true;abort));true).
+
+
+interpretpart(stringconcat,Terminal,Phrase2,Phrase1,Vars1,Vars2) :-
+ %%Variables1=[Terminal,Phrase1,Phrase2], %% terminal can be v or "a"
+ getvalues2([Terminal,Phrase1,Phrase2],
+ [],[TerminalValue1,Phrase1Value1,Phrase2Value1],Vars1,[],[Flag1,Flag2,_Flag3]), %% prolog vars, list of vars, [v]=[prolog var]
+ %%delete(Value1,Value2,Value3A),
+ (Terminal=[_Value]->TerminalValue2=[TerminalValue1];TerminalValue2=TerminalValue1),
+
+(Terminal=""->(TerminalValue2="",
+
+string_concat(TerminalValue2,Phrase2Value1,Phrase1Value1))->true;
+ ((var(TerminalValue2)->(string_concat(TerminalValue2,Phrase2Value1,Phrase1Value1)),string_length(TerminalValue2,1));string_concat(TerminalValue2,Phrase2Value1,Phrase1Value1))),
+
+ putvalue(Terminal,TerminalValue2,Vars1,Vars3),
+ putvalue(Phrase2,Phrase2Value1,Vars3,Vars4),
+ putvalue(Phrase1,Phrase1Value1,Vars4,Vars2),
+ (Flag1=true->TerminalValue3=variable1;TerminalValue3=TerminalValue1),
+ (Flag2=true->Phrase1Value3=variable2;Phrase1Value3=Phrase1Value1),
+ (debug(on)->(writeln([call,[[n,stringconcat],[TerminalValue3,Phrase1Value3,Phrase2]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,stringconcat],[TerminalValue1,Phrase1Value1,Phrase2Value1]],"Press c."]),(not(get_single_char(97))->true;abort));true),!.
+
+
+
+interpretpart(grammar_part,Variables1,Vars1,Vars2) :-
+ Variables1=[Terminal,Phrase1,Phrase2], %% terminal can be v or "a"
+ %%terminal(Terminal),
+ getvalues2([Terminal,Phrase1,Phrase2],
+ [],[TerminalValue1,Phrase1Value1,Phrase2Value1],Vars1,[],[Flag1,Flag2,_Flag3]), %% prolog vars, list of vars, [v]=[prolog var]
+ %%delete(Value1,Value2,Value3A),
+ (Terminal=[_Value]->TerminalValue2=[TerminalValue1];TerminalValue2=TerminalValue1),
+
+
+
+((string(Phrase1Value1)->Phrase1Value1=Phrase1Value11;(number(Phrase1Value1)->number_string(Phrase1Value1,Phrase1Value11);Phrase1Value1=Phrase1Value11)),
+
+(Terminal=""->TerminalValue2="";true),
+
+(((var(TerminalValue2)->(string_concat(TerminalValue2,Phrase2Value1,Phrase1Value11)),string_length(TerminalValue2,1));string_concat(TerminalValue2,Phrase2Value1,Phrase1Value11))->true;
+
+string_concat(TerminalValue2,Phrase2Value1,Phrase1Value11))->true;
+
+
+
+((Phrase1Value1=[_ItemA|_ItemsA]),(Terminal=[]->(TerminalValue2=[],
+
+((var(TerminalValue2)->length(TerminalValue2,1);true),(append(TerminalValue2,Phrase2Value1,Phrase1Value1))))->true;
+
+(append(TerminalValue2,Phrase2Value1,Phrase1Value1)->true)))),
+
+ putvalue(Terminal,TerminalValue2,Vars1,Vars3),
+ putvalue(Phrase2,Phrase2Value1,Vars3,Vars4),
+ putvalue(Phrase1,Phrase1Value1,Vars4,Vars2),
+ (Flag1=true->TerminalValue3=variable1;TerminalValue3=TerminalValue1),
+ (Flag2=true->Phrase1Value3=variable2;Phrase1Value3=Phrase1Value1),
+ (debug(on)->(writeln([call,[[n,grammar_part],[TerminalValue3,Phrase1Value3,Phrase2]],"Press c."]),(not(get_single_char(97))->true;abort));true),
+ (debug(on)->(writeln([exit,[[n,grammar_part],[TerminalValue1,Phrase1Value1,Phrase2Value1]],"Press c."]),(not(get_single_char(97))->true;abort));true),!.
+
+getvalues(Variable1,Variable2,Value1,Value2,Vars) :-
+ getvalue(Variable1,Value1,Vars),
+ getvalue(Variable2,Value2,Vars).
+getvalues(Variable1,Variable2,Variable3,Value1,Value2,Value3,Vars) :-
+ getvalue(Variable1,Value1,Vars),
+ getvalue(Variable2,Value2,Vars),
+ getvalue(Variable3,Value3,Vars).
+val1emptyorvalsequal(empty,_Value) :- !.
+val1emptyorvalsequal(Value,Value) :-
+ not(Value=empty).
+isop(is).
+isop(=).
+stringconcat1([],Item,Item) :-
+ !.
+stringconcat1(Item11,Item21,Item31) :-
+
+replace_empty_with_empty_set( [Item11,Item21,Item31],[],[Item1,Item2,Item3]),
+maplist(expressionnotatom,[Item1,Item2,Item3]),
+ string_concat(Item1,Item2,Item3),!.
+
+append1([],Item,Item) :-
+ !.
+append1(Item11,Item21,Item31) :-
+
+replace_empty_with_empty_set( [Item11,Item21,Item31],[],[Item1,Item2,Item3]),
+maplist(expressionnotatom,[Item1,Item2,Item3]),
+/**((isvalstr(Item1),Item1A=[Item1]);(not(isvalstr(Item1)),Item1A=Item1)),
+ ((isvalstr(Item2),Item2A=[Item2]);(not(isvalstr(Item2)),Item2A=Item2)),
+ %%((isvalstr(Item3),Item3A=[Item3]);(not(isvalstr(Item3)),Item3A=Item3)),
+ **/
+ append(Item1,Item2,Item3),!.
+/**delete1(Item1,Item2,Item3) :-
+ ((isvalstr(Item1),Item1A=[Item1]);(not(isvalstr(Item1)),Item1A=Item1)),
+ ((isvalstr(Item2),Item2A=[Item2]);(not(isvalstr(Item2)),Item2A=Item2)),
+ %%((isvalstr(Item3),Item3A=[Item3]);(not(isvalstr(Item3)),Item3A=Item3)),
+ delete(Item1A,Item2A,Item3).
+**/
+replace_empty_with_empty_set([],A,A) :-!.
+replace_empty_with_empty_set(A,B,C) :-
+ A=[Item1|Items],
+ (var(Item1)->Item2=Item1;(Item1=empty->Item2=[];Item2=Item1)),
+ append(B,[Item2],D),
+ replace_empty_with_empty_set(Items,D,C),!.
+removebrackets([[Value]],Value) :-!.
+removebrackets(Value,Value).
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/lucian_s_pedagogy.txt b/Text-to-Breasonings-master/lucian_s_pedagogy.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b48666cf3273ba26b07d7bcb7b81db870e11397a
--- /dev/null
+++ b/Text-to-Breasonings-master/lucian_s_pedagogy.txt
@@ -0,0 +1,331 @@
+Lucian’s Pedagogy
+Writing Sentences By Making Distinctions Between Objects (The Pedagogical Ways of Thinking)
+
+The first aim of this website is to help students write sentences by making distinctions between objects.
+
+I recommend you read the following pages:
+
+1. Details - As an exercise, think of two uses, a future use and two types for each object.
+2. Breasoning - Think of the x, y, z dimensions and colour of each object.
+3. Rebreasoning - Think of the fact that the person and the object in a sentence are connected by a verb (an action) that means they touch.
+4. Breathsoning - Think of a reason that the object is good.
+5. Rebreathsoning - Think of a reason that the verb (action) is done well.
+6. Space - Think of spatial characteristics of the person in relation to the object.
+7. Time - Think of temporal characteristics of the person in relation to the object.
+8. God Algorithm - Initialise your ability to hone breasonings for H1s.
+9. Professor Algorithm - Use your ability to hone breasonings for H1s.
+Ideas
+The following ideas should be represented in high quality work.
+
+1. Two uses
+a->b, a->c
+Include two uses or ideas about an idea from your essay. For example, John (0.5m, 0.3m, 1.8m) ate an apple (0.6m, 0.6m, 0.6m) has the two uses John (see previous dimensions) planted the seed (0.005m, 0.0025m, 0.0025m) and John stepped over the line (0.5m, 0.01m, 0.0001m).
+
+2. Future
+a->b
+Think about how one of your ideas relates to the future. For example, a student should learn to read a sign (0.3m, 0.6m, 2m) so he can step over a crack (0.5m, 0.01m, 0.005m).
+
+3. Two types
+a->b, c->b
+Think about how two objects are co-ordinated in relation to each other. For example, Luke ate the wheat biscuit (0.1m, 0.05m, 0.01m), which was softened by milk, which was constituted by the wheat biscuit (0.1m, 0.05m, 0.01m) and the glass of milk (0.05m, 0.05m, 0.15m).
+
+
+Breasoning
+Pray for the breasoning, then think of the x, y and z dimensions, and the colour of each object (their "breasonings").
+
+
+
+When you think of the object's properties, you will think of the object's specific name.
+
+See also Professor Algorithm - Use your ability to hone breasonings for H1s.
+
+Creating original philosophy with help only from God: Also, to visualise imagery of a quality necessary to God, think of objects that appear normally, as part of an argument, inside a square. There are sub squares for the verb for the object, uses and algorithmic objects for use with the object.
+
+Be God: In addition, this square is necessary to think of with you as God.
+
+
+
+Rebreasoning
+There should be a chain of breasoned objects interacting to ensure the flow of the essay or story. Think of the way two objects touch when they are mentioned together.
+a. Think of the fact the two objects touch.
+b. Do either of the objects change size?
+c. Do either of the objects change colour?
+These are known as the "rebreasoning" rules.
+
+
+where apple = 6x6x6 cm
+
+When you think of the action's properties, you will think of the action's specific name.
+
+
+Breathsoning
+Think of an adjective (a "breathsoning"), which is a human judgement for each noun. For example, describe an apple as "delicious".
+
+
+
+
+
+where apple = 6x6x6 cm
+
+Rebreathsoning
+Think of an adverb (called a "rebreathsoning"), which is a human judgement for each verb. For example, describe "John ate the apple" (6x6x6 cm) with "ravenously".
+
+
+
+
+
+Space
+a. Which room is the proposition set in?
+
+ where dining room = 10x5x5 m
+
+b. Which part of the room is it set in?
+
+ where chair = 0.5x0.5x0.5 m
+
+
+
+c. Which direction is the person facing?
+
+
+
+where dinner plate = 20x20x5 cm
+
+
+Time
+a. What happened before the event?
+
+
+where apple = 6x6x6 cm, shopping bag = 30x10x40 cm.
+b. How long will the event take?
+
+
+where apple = 6x6x6 cm
+c. What will happen after the event?
+
+
+
+where apple core = 1x1x6 cm, bin = 20x20x20 cm
+
+God Algorithm
+
+To breason out an A, that can be an 80%, 90% or 100% for 85, 130 or 190 breasonings respectively:
+1. Spiritually "turn off" the following, meaning it is protected.
+2. Spiritually "play" 3 previously breasoned out As (done using Lucian Green's Anarchy Quiz – see Appendix 1) to Cosmology (meaning that it is protected).
+3. Breason out the object by thinking of its x, y and z dimensions.
+4. Spiritually place a Lucian doll on the left side of a stage with you behind it, looking at the object.
+5. Move Lucian to the right, to a mother doll, to forget the object.
+6. Imagine the object is replaced with a counter. Move Lucian to the left, to recognise that it is divine, and spiritually listen to him saying a three line prayer.
+7. To help the counter and it's seen as version to move forward in a straight line, say "It is a line", then say "It is the same", then repeat the three prayer points, "I love you", "I love you dearly" and "I love you forever". This step "dots on" the breasoning in a "high quality way".
+
+Professor Algorithm
+
+The "Professor Algorithm" is different from the "God Algorithm" even though it is an alternative to it because it allows working out the way of thinking (including the verb), not just the object the verb is performed on.
+
+1a. "Find out" an A (agreeing) way of thinking after thinking of a "blue eater that moves in the x direction" (that comes from the most general perspective Darwinism applied to Pedagogy, i.e. one moves in the x direction to eat).
+
+The way to use this is:
+
+
+- The first step in “dotting” anything on requires thinking of a professor thinking of a pathway for a breasoning (an action on an object) in relation to that object, where a certain number of breasonings form part of an A-grade argument, by moving a cotton swab along a pathway from inside a clean, dry test tube.
+- Pretend the cotton part of the test tube system is the object to be breasoned out.
+- Breason out the object (visualise it as being measured by the dimensions x m, y m, z m).
+- As part of visualising the breasoning, pretend to remove the blue dots from the ground below the object to make sure the object is “pure” by “asking” that the dots should to be removed, then checking that this is done.
+- This removal of impurities can also be done while pretending to untouch a foam blue strip from another strip, meaning the dots are “lifted” away.
+- Take the object “off” it’s “on” status by repeating the untouching step, this time to remove it from view.
+
+Appendix 1
+
+Anarchy Quiz
+
+Earn A in 85 questions. Use the A you earn to earn A in an assignment (search for Lucian Green breasoning list or Lucian Green BR in Google for more breasoning lists), to have a healthy baby or use 50 As to earn a job.
+You still have to do the work, and there are no guarantees.
+
+For these questions, do not check any previous answers before answering, and do not submit the same set of answers twice or more for different purposes.
+
+ 1. What is the reason you would like to complete this quiz?
+
+This seen-as essay will be breasoned out by you (you will be asked for the x, y and z dimensions of each object from a short sentence about the army, originally the argument for my essay on anarchy, which I wrote a pop-song about.
+
+NB: Before breasoning out each of the following objects (thinking of their x, y and z dimensions) pray for the breasoning.
+
+EXPOSITION:
+
+1. What are the x, y and z dimensions in metres of "cup" in "The soldier cleaned himself with a cup of water"?
+
+2. What are the x, y and z dimensions in metres of "bottle" in "The soldier drank a bottle of apple juice"?
+
+3. What are the x, y and z dimensions in metres of "apple" in "The soldier put an apple in his lunch-box"?
+
+4. What are the x, y and z dimensions in metres of "periscope" in "The soldier looked at the stand through the periscope"?
+
+5. What are the x, y and z dimensions in metres of "pear" in "The soldier ate a pear with the friend he found on the Internet"?
+
+CRITIQUE:
+
+6. What are the x, y and z dimensions in metres of "brick" in "The soldier stood on a brick, which was like a wall"?
+
+7. What are the x, y and z dimensions in metres of "log" in "The soldier stepped over the log"?
+
+8. What are the x, y and z dimensions in metres of "flag" in "The soldier found a flag"?
+
+9. What are the x, y and z dimensions in metres of "bun" in "The soldier ate a bun, which he had bartered for"?
+
+10. What are the x, y and z dimensions in metres of "plant" in "The soldier watered the plant, after moving it"?
+
+DETAILED REASONING:
+
+11. What are the x, y and z dimensions in metres of "tofu" in "The soldier ate tofu"?
+
+12. What are the x, y and z dimensions in metres of "garbage bag" in "The soldier moved the garbage bag"?
+
+13. What are the x, y and z dimensions in metres of "nuts" in "The soldier chewed nuts at the theatre"?
+
+14. What are the x, y and z dimensions in metres of "processed cheese" in "The soldier bit processed cheese"?
+
+15. What are the x, y and z dimensions in metres of "cup" in "The soldier swallowed a cup of grape juice"?
+
+16. What are the x, y and z dimensions in metres of "roll" in "The soldier ate a roll with vegan cheese"?
+
+17. What are the x, y and z dimensions in metres of "peanut" in "The soldier nipped a peanut"?
+
+18. What are the x, y and z dimensions in metres of "nectarine" in "The soldier munched a nectarine"?
+
+19. What are the x, y and z dimensions in metres of "sugar" in "The soldier packed sugar in his bag"?
+
+20. What are the x, y and z dimensions in metres of "ball" in "The soldier threw a ball in the air"?
+
+21. What are the x, y and z dimensions in metres of "banana" in "The soldier peeled the banana"?
+
+22. What are the x, y and z dimensions in metres of "orange" in "The soldier squeezed the orange"?
+
+23. What are the x, y and z dimensions in metres of "mandarin" in "The soldier removed a segment from a mandarin"?
+
+24. What are the x, y and z dimensions in metres of "bra" in "The soldier made a bra"?
+
+25. What are the x, y and z dimensions in metres of "stand" in "The soldier jumped to touch the top of the stand"?
+
+26. What are the x, y and z dimensions in metres of "ring" in "The soldier wore a ring"?
+
+27. What are the x, y and z dimensions in metres of "watering container" in "The soldier watered the apricot tree with the watering container"?
+
+28. What are the x, y and z dimensions in metres of "base" in "The soldier placed the base on the flat ground"?
+
+29. What are the x, y and z dimensions in metres of "abdominal muscle exerciser" in "The soldier exercised his abdominal muscles with the abdominal muscle exerciser"?
+
+30. What are the x, y and z dimensions in metres of "flask" in "The soldier gargled water from his flask"?
+
+31. What are the x, y and z dimensions in metres of "dried fig" in "The soldier chewed the dried fig"?
+
+32. What are the x, y and z dimensions in metres of "shorts" in "The soldier ran on the spot in shorts"?
+
+33. What are the x, y and z dimensions in metres of "two sticks" in "The soldier jumped over two sticks"?
+
+34. What are the x, y and z dimensions in metres of "hoop" in "The soldier swung the hoop around his waist"?
+
+35. What are the x, y and z dimensions in metres of "glass" in "The soldier drank a glass of water"?
+
+MIND MAP:
+
+36. What are the x, y and z dimensions in metres of "bible" in "The army chaplain distributed the bibles"?
+
+37. What are the x, y and z dimensions in metres of "wood" in "The soldier cut the wood into skirting boards"?
+
+38. What are the x, y and z dimensions in metres of "stretcher" in "The soldier lied down on the stretcher"?
+
+39. What are the x, y and z dimensions in metres of "locker" in "The soldier found the correct locker"?
+
+40. What are the x, y and z dimensions in metres of "carrot" in the sentence "The soldier ate the carrot to check it was healthy"?
+
+41. What are the x, y and z dimensions in metres of "seat" in the sentence "The soldier sat on the seat to check it was stable"?
+
+42. What are the x, y and z dimensions in metres of "salt" in the sentence "The soldier salted the onion"?
+
+43. What are the x, y and z dimensions in metres of "name badge" in the sentence "The soldier found his name badge"?
+
+44. What are the x, y and z dimensions in metres of "drum" in the sentence "The soldier beat a regular rhythm on the drum"?
+
+45. What are the x, y and z dimensions in metres of "bow" in the sentence "The soldier stayed balanced when aiming the arrow at the target with the bow"?
+
+46. What are the x, y and z dimensions in metres of "crotchet" in the sentence "The soldier moved the crotchet forward one beat of the musical bar"?
+
+47. What are the x, y and z dimensions in metres of "money" in the sentence "The soldier labelled the money to take home"?
+
+48. What are the x, y and z dimensions in metres of "celery" in the sentence "The soldier fed the kangaroo the celery"?
+
+49. What are the x, y and z dimensions in metres of "balloon" in the sentence "The soldier blew up a balloon"?
+
+50. What are the x, y and z dimensions in metres of "corn" in the sentence "The soldier ate the corn"?
+
+51. What are the x, y and z dimensions in metres of "towel" in the sentence "The soldier towelled himself dry"?
+
+52. What are the x, y and z dimensions in metres of "playing card" in the sentence "The soldier placed the playing card on the table"?
+
+53. What are the x, y and z dimensions in metres of "tea cup" in the sentence "The soldier drank tea from the tea cup"?
+
+54. What are the x, y and z dimensions in metres of "stick" in the sentence "The soldier moved the stick off the road"?
+
+55. What are the x, y and z dimensions in metres of "label" in the sentence "The soldier read the label"?
+
+56. What are the x, y and z dimensions in metres of "pole" in the sentence "The soldier stood straight against the pole"?
+
+57. What are the x, y and z dimensions in metres of "pupil" in the sentence "The soldier looked at the girl's pupil"?
+
+58. What are the x, y and z dimensions in metres of "face" in the sentence "The soldier looked at the boy's face"?
+
+59. What are the x, y and z dimensions in metres of "number" in the sentence "The soldier wrote the table number on the vegemite"?
+
+60. What are the x, y and z dimensions in metres of "ladder" in the sentence "The soldier like his friend because his friend was able to climb a ladder"?
+
+61. What are the x, y and z dimensions in metres of "tea towel" in the sentence "The soldier folded the tea towel until it was hand sized"?
+
+62. What are the x, y and z dimensions in metres of "cow" in the sentence "The soldier counted the number of times the cow mooed"?
+
+63. What are the x, y and z dimensions in metres of "glasses" in the sentence "The soldier opened a shape book at the page for science and looked at the illustration of the glasses"?
+
+64. What are the x, y and z dimensions in metres of "mitochondrion" in the sentence "The soldier examined the model mitochondrion"?
+
+65. What are the x, y and z dimensions in metres of "candle" in the sentence "The soldier lit a candle at church"?
+
+66. What are the x, y and z dimensions in metres of "birth schedule" in the sentence "The soldier displayed the birth schedule"?
+
+67. What are the x, y and z dimensions in metres of "staff timetable" in the sentence "The soldier wrote the staff timetable"?
+
+68. What are the x, y and z dimensions in metres of "room timetable" in the sentence "The soldier read the room timetable"?
+
+69. What are the x, y and z dimensions in metres of "couch" in the sentence "The soldier sat on the couch"?
+
+70. What are the x, y and z dimensions in metres of "pencil case" in the sentence "The soldier put a pencil in the pencil case"?
+
+71. What are the x, y and z dimensions in metres of "hole puncher" in the sentence "The soldier punched holes in the paper with the hole puncher"?
+
+72. What are the x, y and z dimensions in metres of "water container" in the sentence "The soldier took the water container with him for his hike"?
+
+73. What are the x, y and z dimensions in metres of "pen" in the sentence "The soldier returned his friend's pen to his friend"?
+
+74. What are the x, y and z dimensions in metres of "two pieces of paper" in the sentence "The soldier wrote what he will do and said he will do on the two pieces of paper, respectively"?
+
+75. What are the x, y and z dimensions in metres of "piece of paper" in the sentence "The soldier wrote five reasons to do a job in his company on a piece of paper"?
+
+76. What are the x, y and z dimensions in metres of "tambourine" in the sentence "The soldier made a model of a tambourine"?
+
+77. What are the x, y and z dimensions in metres of "friend" in the sentence "The soldier found the friend of his who mentioned the same key phrase as him"?
+
+78. What are the x, y and z dimensions in metres of "three friends" in the sentence "The soldier found two other friends, each of whom said the same key phrase as another one in the group"?
+
+79. What are the x, y and z dimensions in metres of "objects" in the sentence "The soldier found objects representing what he and his three friends had said they needed together"?
+
+80. What are the x, y and z dimensions in metres of "the library" in the sentence "The soldier checked the random place: the library"?
+
+81. What are the x, y and z dimensions in metres of "the conference room" in the sentence "The soldier checked the conference room, in the library"?
+
+82. What are the x, y and z dimensions in metres of "the encyclopaedia" in the sentence "The soldier read an article in the encyclopaedia to read widely"?
+
+83. What are the x, y and z dimensions in metres of "the blank book" in the sentence "The soldier wrote his own encyclopaedia article in the blank book"?
+
+84. What are the x, y and z dimensions in metres of "wheat biscuits" in the sentence "The soldier moistened wheat biscuits after he answered a girl friend's call"?
+
+85. What are the x, y and z dimensions in metres of "glove" in the sentence "The soldier inserted his hand in his glove"?
+
+
+
diff --git a/Text-to-Breasonings-master/luciansphilosophy.txt b/Text-to-Breasonings-master/luciansphilosophy.txt
new file mode 100644
index 0000000000000000000000000000000000000000..979ed2e5b03e77a8fa7fbd132b184f0cf35b4e08
--- /dev/null
+++ b/Text-to-Breasonings-master/luciansphilosophy.txt
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/medicinenoreplace.pl b/Text-to-Breasonings-master/medicinenoreplace.pl
new file mode 100644
index 0000000000000000000000000000000000000000..04905a28422792baed50df4c7fae891f67c88026
--- /dev/null
+++ b/Text-to-Breasonings-master/medicinenoreplace.pl
@@ -0,0 +1,13 @@
+%% Medicine.pl
+
+medicine :-
+ File="I love you, I love you, I love you. Love.",
+ doctors(Doctors),
+ length(Doctors,DL),
+ texttobr2(DL,u,File,u),!.
+doctors([
+%% Don't include meditators here
+[doctor1firstname,surname,dobd,dobm,doby,started_day,started_month,started_year],
+[doctor2firstname,surname,dobd,dobm,doby,started_day,started_month,started_year]
+%% number of meditators + number of doctors= e.g. 21
+]).
diff --git a/Text-to-Breasonings-master/meditation.pl b/Text-to-Breasonings-master/meditation.pl
new file mode 100644
index 0000000000000000000000000000000000000000..82fdabf95cb683f054e1fab166278cc68f97a7cc
--- /dev/null
+++ b/Text-to-Breasonings-master/meditation.pl
@@ -0,0 +1,49 @@
+%% Meditation.pl
+
+%% lucian, green, friendliness, medicine, sutras, courses, qi gong and yoga mantras and sutras - arem 10 br links
+%% Stops linking in meditators 100 years after date of learning LM
+
+%%:- include('qb2.pl').
+:- include('../listprologinterpreter/listprolog').
+:- include('texttobr').
+%%:- include('texttobr2qb').
+%%:- include('texttobrqb').
+:- include('../listprologinterpreter/la_strings').
+:- include('mergetexttobrdict').
+:- include('edit.pl').
+
+meditation :-
+ File="I love you, I love you, I love you. Arem.",
+ Utterances=[lucianicmeditationapps,dailyregimen,nobodyproblemsapp,lucian, green, friendliness, medicine, childrenh1earningjobsprotectioninjobs,headsofstate,lucianmantrapureform,lucianmantrasunsafety,maharishisutra,meditationteachersutra,movingappearances,purusha,upasanasutra,yellowgod,greensutra,bluenature,appearances,pranayama,soma,hoursprayer,fiftybreasoningspersecond,meditationindicatorlowerriskofcancerandotherdiseasesinworkersandbroadcasters,meditationindicatordecreasedstress,meditationindicatorincreasedbloodflow,meditationincreasedbrainpotential,autobiography,computationalenglish,computerscience,economics,hermeneutics,pedagogy,breasonings,quantumbox,lucianicmeditation,lm,meditation,metaphysics,music,plays,popology,theology, qigongmantra,qigongsutra, yogamantra,yogasutra],
+ %% initiate_utterances(File,Utterances),
+ %% currentDate(Today),
+ %% Today=date(Year,Month,Day),
+ meditators(Meditators),
+ length(Utterances,UL),
+ length(Meditators,ML),
+ Length2 is UL+ML,
+ texttobr2(Length2,u,File,u),texttobr(Length2,u,File,u),!.
+
+ %% protect(File,Year,Month,Day,Meditators,[],Old),
+ %% writeln([oldmeditators,Old]),!.
+initiate_utterances(_File,[]) :- !.
+initiate_utterances(File,[_Utterances|Utterances]) :-
+ texttobr2(File),texttobr(File),
+ initiate_utterances(File,Utterances).
+protect(_File,_Year,_Month,_Day,[],Old1,Old1) :- !.
+protect(File,Year1,_Month1,_Day1,[Meditator|Meditators],Old1,Old2) :-
+ Meditator=[_FirstName,_LastName,_DayDOB,_MonthDOB,_YearDOB,_DayLearned,_MonthLearned,YearLearned],
+ Year2 is YearLearned+101,
+ (Year2=Year1->append(Old1,[Meditator],Old3);Old3=Old1),
+ texttobr2(File),texttobr(File), %% Sender
+ texttobr2(File),texttobr(File), %% Recipient
+
+ protect(File,Year1,_Month,_Day,Meditators,Old3,Old2).
+currentDate(Today) :-
+ get_time(Stamp),
+ stamp_date_time(Stamp,DateTime,local),
+ date_time_value(date,DateTime,Today).
+meditators([
+[first,surname,dob_d,dob_m,dob_y,day_of_learning_d,day_of_learning_m,day_of_learning_y]
+]).
+
diff --git a/Text-to-Breasonings-master/meditation1.pl b/Text-to-Breasonings-master/meditation1.pl
new file mode 100644
index 0000000000000000000000000000000000000000..68fffc18f507256f265fad62b6d74cf7d0a02a01
--- /dev/null
+++ b/Text-to-Breasonings-master/meditation1.pl
@@ -0,0 +1,12 @@
+#!SWI-Prolog -f -q
+
+:- include('meditation.pl').
+
+:- initialization prolog_edit:main.
+
+main :-
+ time((texttobr2(u,u,u,u),texttobr(u,u,u,u))),time((prolog_edit:mergetexttobrdict)),
+ halt(0) .
+main :-
+ halt(1).
+
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/meditationnoreplace.pl b/Text-to-Breasonings-master/meditationnoreplace.pl
new file mode 100644
index 0000000000000000000000000000000000000000..879122e521a45475d78ed035a5a2abdb44612185
--- /dev/null
+++ b/Text-to-Breasonings-master/meditationnoreplace.pl
@@ -0,0 +1,2 @@
+:-include('meditationnoreplace2.pl').
+:-include('meditatorsanddoctors').
diff --git a/Text-to-Breasonings-master/meditationnoreplace2.pl b/Text-to-Breasonings-master/meditationnoreplace2.pl
new file mode 100644
index 0000000000000000000000000000000000000000..77e9c532c093ffda76d01ca02061186293b0eb53
--- /dev/null
+++ b/Text-to-Breasonings-master/meditationnoreplace2.pl
@@ -0,0 +1,566 @@
+%% Meditation.pl
+
+%% lucian, green, friendliness, medicine, sutras, courses, qi gong and yoga mantras and sutras - arem 10 br links
+%% Stops linking in meditators 100 years after date of learning LM
+
+%%:- include('qb2.pl').
+:- include('../listprologinterpreter/listprolog').
+:- include('texttobr').
+:- include('texttobr2qb').
+%%:- include('texttobrqb').
+:- include('../listprologinterpreter/la_strings').
+%:- include('mergetexttobrdict').
+%:- include('edit.pl').
+%% Meditation.pl
+
+%% 14 5 19 - 250 for dot, point or utterance instance
+
+meditation :-
+
+meditation1(Utterances1,Utterances2,Immortality),
+meditation2(Utterances1,Utterances2,Immortality).
+
+meditation1(Utterances1,Utterances2,Immortality) :-
+
+ Utterances1=[%%dailyregimen and noheadaches,
+ time_travel,mind_reading,medicine,meditation,fish_oil,
+
+ tt_loc_one_to_two,tt_loc_two_to_three,tt_loc_three_to_one,
+a_for_love_head_of_state,b_for_love_head_of_state,b_to_b_for_love_head_of_state,
+a_for_immortality,b_for_immortality,b_to_b_for_immortality,
+a_for_body_replacement,b_for_body_replacement,b_to_b_for_body_replacement,
+a_for_immortality_medicine_for_thinking,b_for_immortality_medicine_for_thinking,b_to_b_for_immortality_medicine_for_thinking,
+a_for_immortality_medicine_for_stopping_dementia,b_for_immortality_medicine_for_stopping_dementia,b_to_b_for_immortality_medicine_for_stopping_dementia,
+a_for_immortality_medicine_for_seeing_clearly,b_for_immortality_medicine_for_seeing_clearly,b_to_b_for_immortality_medicine_for_seeing_clearly,
+a_for_immortality_medicine_for_muscle_relaxation,b_for_immortality_medicine_for_muscle_relaxation,b_to_b_for_immortality_medicine_for_muscle_relaxation,
+a_for_immortality_medicine_for_antidepressant,b_for_immortality_medicine_for_antidepressant,b_to_b_for_immortality_medicine_for_antidepressant,
+a_for_immortality_medicine_for_antipsychotic,b_for_immortality_medicine_for_antipsychotic,b_to_b_for_immortality_medicine_for_antipsychotic,
+a_for_other_medicines_for_the_body,b_for_other_medicines_for_the_body,b_to_b_for_other_medicines_for_the_body,
+a_for_the_other_as,b_for_the_other_as,b_to_b_for_the_other_as,
+a_for_thank_head_of_state,b_for_thank_head_of_state,b_to_b_for_thank_head_of_state,
+
+
+ %%/**
+ connect_what_i_say_and_the_question,the_adverse,knock_out_cancer_frequency,i_am_serious,rod_off,good_circulation,no_smells,knock_out_annoying_frequency,knock_out_nagging_frequency,knock_out_complaining_frequency,stop_pain_inflammation_help_blood_flow_relaxation_and_wellbeing_and_deeptissue_massage
+,memory,learning,no_cancer,comments,i_do_not_mean_it,law_to_protect_product,krishna_rcawp_for_wanted_people,say_reason_to_them,wanted_otherwise_dismissed,graciously_give_as, royalty, royalty_about_sales, nothing_rather_than_something,to_lucian,to_god,to_lecturer,today,tomorrow,day_after_tomorrow,a,b,b_to_b,seen_as_version,high_quality_version,army_go,army_return,
+%%**
+ no_digestive_system_pops_from_practising_the_sutra,
+first_radio_button_put_on_recordings_put_through_with_pray_nut_and_bolt_quantum_box_prayer_for_protector_from_headache_in_meditation_after_honours_study,
+second_radio_button_put_on_recordings_put_through_with_pray_nut_and_bolt_quantum_box_prayer_for_protector_from_headache_in_meditation_after_honours_study,
+first_radio_button_put_on_recordings_put_through_with_pray_nut_and_bolt_quantum_box_prayer_for_no_headache,
+second_radio_button_put_on_recordings_put_through_with_pray_nut_and_bolt_quantum_box_prayer_for_no_headache,
+first_radio_button_put_on_recordings_put_through_with_pray_nut_and_bolt_quantum_box_prayer_for_turn_off_workload_from_all_employees_including_you_below_you,
+second_radio_button_put_on_recordings_put_through_with_pray_nut_and_bolt_quantum_box_prayer_for_turn_off_workload_from_all_employees_including_you_below_you,
+%%/**
+lecturer_training,
+recordings_training,
+prepare_the_radio_button_accredited__at_the_time__turned_off_openbracket_to_make_accreditation_acceptable_closebracket_computer_science__breathsoned__vocational_education_and_training__sales__education_for_the_following,
+seen_as_breasoning_out_text_before_texttobr__computer_housing_the_breasonings__70_breasonings_per_waking_hour_for_16_hours__stopping_at_midnight__no_medical_problems_from_it,
+put_through_prepared_radio_button,
+put_through_250_word_breasonings_from_job_medicine_to_start_the_spiritual_breasoning_process,
+turn_off_mistakes,
+turn_off_breasonings,
+%%**/
+first_radio_button_put_on_recordings_put_through_with_pray_nut_and_bolt_quantum_box_prayer_for_detect_and_turn_off_workloads_using_manager_algorithm,
+second_radio_button_put_on_recordings_put_through_with_pray_nut_and_bolt_quantum_box_prayer_for_detect_and_turn_off_workloads_using_manager_algorithm,
+first_radio_button_put_on_recordings_put_through_with_pray_nut_and_bolt_quantum_box_prayer_for_detect_and_turn_off_workloads_using_manager_network,
+second_radio_button_put_on_recordings_put_through_with_pray_nut_and_bolt_quantum_box_prayer_for_detect_and_turn_off_workloads_using_manager_network,first_radio_button_put_on_recordings_put_through_with_pray_nut_and_bolt_quantum_box_prayer_for_no_muscle_aches/pains,
+second_radio_button_put_on_recordings_put_through_with_pray_nut_and_bolt_quantum_box_prayer_for_no_muscle_aches/pains
+%%**/
+],
+ Utterances2=[
+ medicine,
+ memory_receiver, memory_transmitter, use_memory_transmitter,
+ %%/**
+ fifty_As_per_organ,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_heart,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_heart_muscles,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_continually_circulating_blood_around_the_body,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_knowing_your_heart_is_working_because_you_can_feel_your_heart_beat,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_feeling_the_blood_at_your_pulse,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_pumping_blood_containing_new_oxygen_to_every_part_of_your_body,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_pumping_the_old_blood_without_oxygen_back_through_the_lungs_where_it_picks_up_new_oxygen_to_repeat_this_cycle,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_heart_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_heart_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_heart_muscles_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_continually_circulating_blood_around_the_body_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_knowing_your_heart_is_working_because_you_can_feel_your_heart_beat_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_feeling_the_blood_at_your_pulse_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_pumping_blood_containing_new_oxygen_to_every_part_of_your_body_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_pumping_the_old_blood_without_oxygen_back_through_the_lungs_where_it_picks_up_new_oxygen_to_repeat_this_cycle_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_heart_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_lungs,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_breathing,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_filtering_oxygen_from_the_air_through_tiny_vessels_into_the_blood,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_carrying_oxygen_to_the_heart_to_be_pumped_round_your_body,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_filtering_carbon_dioxide_from_your_body_when_you_breathe_out,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_lungs_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_lungs_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_breathing_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_filtering_oxygen_from_the_air_through_tiny_vessels_into_the_blood_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_carrying_oxygen_to_the_heart_to_be_pumped_round_your_body_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_filtering_carbon_dioxide_from_your_body_when_you_breathe_out_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_lungs_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_liver,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_filtering_the_blood,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_filtering_chemicals_and_impurities,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_including_from_drugs_and_medications,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_making_and_processes_many_body_fats_and_the_liver_regrowing,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_liver_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_liver_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_filtering_the_blood_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_filtering_chemicals_and_impurities_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_including_from_drugs_and_medications_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_making_and_processes_many_body_fats_and_the_liver_regrowing_should_be_kept_going_and_not_have_blocks_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_liver_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_kidneys,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_kidneys_filtering,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_filtering_some_drugs_and_filtering_waste_products_that_leave_the_body_as_urine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_kidneys_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_kidneys_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_kidneys_filtering_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_filtering_some_drugs_and_filtering_waste_products_that_leave_the_body_as_urine_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_kidneys_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_stomach_and_intestines,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_starting_to_break_down_and_process_food__drink_and_oral_medications_in_the_body_and_absorbing_nutrients_and_drugs_through_the_stomach_and_small_intestine_walls,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_stomach_and_intestines_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_stomach_and_intestines_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_starting_to_break_down_and_process_food__drink_and_oral_medications_in_the_body_and_absorbing_nutrients_and_drugs_through_the_stomach_and_small_intestine_walls_should_be_kept_going_and_not_have_blocks_,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_stomach_and_intestines_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_thymus,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_developing_cdfour_cells_and_other_white_blood_cells,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_thymus_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_thymus_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_developing_cdfour_cells_and_other_white_blood_cells_should_be_kept_going_and_not_have_blocks_,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_thymus_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_pancreas,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_releasing_digestive_enzymes_into_the_small_intestine_and_hormones_that_control_sugar_levels_in_your_blood,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_in_that_case__living_without_a_pancreas_by_taking_insulin_to_regulate_blood_sugar_levels_and_taking_supplementary_digestive_enzymes,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_pancreas_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_pancreas_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_releasing_digestive_enzymes_into_the_small_intestine_and_hormones_that_control_sugar_levels_in_your_blood,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_in_that_case__living_without_a_pancreas_by_taking_insulin_to_regulate_blood_sugar_levels_and_taking_supplementary_digestive_enzymes_should_be_kept_going_and_not_have_blocks_,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_pancreas_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_skin,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_stopping_your_body_from_drying_out_and_being_the_main_barrier_against_infection,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_skin_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_skin_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_stopping_your_body_from_drying_out_and_being_the_main_barrier_against_infection_should_be_kept_going_and_not_have_blocks_,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_skin_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_bones,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_onezero_percent_of_bone_being_replaced_each_year,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_bones_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_bones_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_onezero_percent_of_bone_being_replaced_each_year_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_bones_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_bone_marrow,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_blood_cells_originally_coming_from_bone_marrow,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_bone_marrow_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_bone_marrow_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_blood_cells_originally_coming_from_bone_marrow_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_bone_marrow_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_blood,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_blood_pumped_by_your_heart,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_delivering_oxygen_and_nutrients_to_every_part_of_your_body_and_carrying_waste_products_away,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_blood_cells_openbracket_red_cells__white_cells__platelets_etc_closebracket_and_plasma,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_blood_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_blood_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_blood_pumped_by_your_heart_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_delivering_oxygen_and_nutrients_to_every_part_of_your_body_and_carrying_waste_products_away_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_blood_cells_openbracket_red_cells__white_cells__platelets_etc_closebracket_and_plasma_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_blood_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_plasma,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_its_nutrients__sugars__proteins__minerals__enzymes__and_other_substances_but_with_the_blood_cells_taken_out,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_plasma_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_plasma_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_its_nutrients__sugars__proteins__minerals__enzymes__and_other_substances_but_with_the_blood_cells_taken_out_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_plasma_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_lymph,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_its_white_blood_cells_and_antibodies,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_lymph_vessels__nodes__and_organs_and_removing_waste_products_from_the_body,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_lymph_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_lymph_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_its_white_blood_cells_and_antibodies_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_lymph_vessels__nodes__and_organs_and_removing_waste_products_from_the_body_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_lymph_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_lymph_nodes,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_cdfour_cells_in_your_body_resting_and_reproducing_in_your_lymph_nodes,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_lymph_nodes_function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_lymph_nodes,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_the_cdfour_cells_in_your_body_resting_and_reproducing_in_your_lymph_nodes,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_lymph_nodes_medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_organs__function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_organs__medicine,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_heart_does_not_beat_unless_your_brain_and_nervous_system_tell_it_to_do_so,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_heart_beating_because_your_brain_and_nervous_system_tell_it_to_do_so_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_skeletal_system_relies_on_the_nutrients_it_gains_from_your_digestive_system_to_build_strong__healthy_bones,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_skeletal_system_relying_on_the_nutrients_it_gains_from_your_digestive_system_to_build_strong__healthy_bones_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_cardiovascular_system_works_to_circulate_your_blood,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_cardiovascular_system_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_respiratory_system_introduces_oxygen_into_your_body,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_respiratory_system_introducing_oxygen_into_your_body_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_heart_pumping_blood_through_a_complex_network_of_blood_vessels__your_blood_circulating_through_your_digestive_system_and_picking_up_nutrients_your_body_absorbed_from_your_last_meal__your_blood_carrying_oxygen_inhaled_by_the_lungs__your_circulatory_system_delivering_oxygen_and_nutrients_to_the_other_cells_of_your_body_picking_up_any_waste_products_created_by_these_cells_including_carbon_dioxide__and_delivering_these_waste_products_to_the_kidneys_and_lungs_for_disposal_and_the_circulatory_system_carrying_hormones_from_the_endocrine_system__and_the_immune_system_s_white_blood_cells_that_fight_off_infection,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_heart_pumping_blood_through_a_complex_network_of_blood_vessels__your_blood_circulating_through_your_digestive_system_and_picking_up_nutrients_your_body_absorbed_from_your_last_meal__your_blood_carrying_oxygen_inhaled_by_the_lungs__your_circulatory_system_delivering_oxygen_and_nutrients_to_the_other_cells_of_your_body_picking_up_any_waste_products_created_by_these_cells_including_carbon_dioxide__and_delivering_these_waste_products_to_the_kidneys_and_lungs_for_disposal_and_the_circulatory_system_carrying_hormones_from_the_endocrine_system__and_the_immune_system_s_white_blood_cells_that_fight_off_infection_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_respiratory_system_relying_on_your_circulatory_system_to_deliver_the_oxygen_it_gathers__the_muscles_of_your_heart_functioning_with_the_oxygen_they_receive_from_your_lungs__the_bones_of_your_skull_and_spine_protecting_your_brain_and_spinal_cord__your_brain_regulating_the_position_of_your_bones_by_controlling_your_muscles__the_circulatory_system_providing_your_brain_with_a_constant_supply_of_oxygen_rich_blood_and_your_brain_regulating_your_heart_rate_and_blood_pressure,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_respiratory_system_relying_on_your_circulatory_system_to_deliver_the_oxygen_it_gathers__the_muscles_of_your_heart_functioning_with_the_oxygen_they_receive_from_your_lungs__the_bones_of_your_skull_and_spine_protecting_your_brain_and_spinal_cord__your_brain_regulating_the_position_of_your_bones_by_controlling_your_muscles__the_circulatory_system_providing_your_brain_with_a_constant_supply_of_oxygen_rich_blood_and_your_brain_regulating_your_heart_rate_and_blood_pressure_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_skeletal_system_relying_on_your_urinary_system_to_remove_waste_produced_by_bone_cells__the_bones_of_your_skeleton_creating_structure_that_protects_your_bladder_and_other_urinary_system_organs__your_circulatory_system_delivers_oxygen_rich_blood_to_your_bones_and_your_bones_making_new_blood_cells,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_your_skeletal_system_relying_on_your_urinary_system_to_remove_waste_produced_by_bone_cells__the_bones_of_your_skeleton_creating_structure_that_protects_your_bladder_and_other_urinary_system_organs__your_circulatory_system_delivers_oxygen_rich_blood_to_your_bones_and_your_bones_making_new_blood_cells_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_working_together__these_systems_maintaining_internal_stability_and_balance__otherwise_known_as_homeostasis,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_working_together__these_systems_maintaining_internal_stability_and_balance__otherwise_known_as_homeostasis_should_be_kept_going_and_not_have_blocks,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_organ_connections__function,
+quantum_box__quantum_box_for_head_of_state_for_and_quantum_box_for_no_problems_from_honours_and_beyond_for_other_organ_connections__medicine,
+
+%%as degrees
+
+reishi_mushroom, goji, ginseng, he_shou_wu, gotu_kola, schisandra, army, meditation_about_medicine_in_ayurveda, pedagogy_about_medicine_in_ayurveda,
+
+%%book args
+
+doctor_sutra, meditation, protector_from_headache_in_meditation_currant_bun, meditation, panic_attack_prevented_by_deep_breathing_and_sutra, family_medicine, help_ensure_successful_conception_and_prevent_miscarriage, pedagogy, lucianic_pedagogical_medicine, pedagogy_grades_failure, pedagogy_course_plan, get_in_touch_with_god_about_breasonings_details_to_see_high_quality_imagery_and_earn_h_one, breasonings_two_hundred_and_fifty, preventing_sales_from_being_dangerous, perpetual_university_short_courses, apple_meditation_for_successful_relationship, miscellaneous, four_glasses_of_water_and_exercise_45_minutes_before_breakfast, go_to_bed_at_nine_thirty_pm, yoga_surya_namaskar1, yoga_surya_namaskar2, yoga_surya_namaskar3, yoga_surya_namaskar4, yoga_surya_namaskar5, yoga_surya_namaskar6, yoga_surya_namaskar7, yoga_surya_namaskar8, yoga_surya_namaskar9, yoga_surya_namaskar10, yoga_surya_namaskar11, yoga_surya_namaskar12, yoga_asanas1, yoga_asanas2, yoga_asanas3, yoga_asanas4, yoga_asanas5, yoga_asanas6, yoga_asanas7, yoga_asanas8, yoga_asanas9, yoga_asanas10, qigongbrocades1, qigongbrocades2, qigongbrocades3, qigongbrocades4, qigongbrocades5, qigongbrocades6, qigongbrocades7, qigongbrocades8, push_ups_shoulders, push_ups_chest, push_ups_triceps, push_ups_back, stomach_exercises_high_knee_taps, stomach_exercises_russian_twists, stomach_exercises_standing_bicycle_crunches, stomach_exercises_classic_plank, stomach_exercises_plank_knees_to_elbows, stomach_exercises_roll_up, stomach_exercises_rolling_like_a_ball, stomach_exercises_earthquake,immortality,
+
+simulation,
+
+supercard_or_any_number_of_as,
+work_out_with_250_breasonings_that_buying_a_product_from_my_time_represents_buying_a_product_to_the_future_,
+help_writers_of_secondary_texts_to_mine,
+help_primary_text_writers,
+help_businesses,
+the_computer_preferred_for_me_to_receive_rather_than_make_up_my_own_thoughts,
+warmth,
+food,
+shelter,
+i_chose_red_positive_not_blue_negative_thoughts,
+the_behaviour_that_led_to_no_disease_was_text_to_breasonings_about_meditation,
+my_body_was_replaced,
+the_building_which_looked_like_my_home_was_an_image_but_maintained_replaced_and_the_weather_surroundings_and_people_were_all_to_my_liking,
+heaven_on_earth_for_philosophers,
+time_travel_enables_immortality,
+people_in_the_simulation_came_back_to_the_real_world,
+i_mind_read_with_guru_dev_whether_it_was_safe_to_time_travel,
+i_could_buy_space_travel,
+my_consciousness_transferred_to_the_bot,
+invite_others_to_the_simulation,
+
+consciousness,
+
+prevent_headaches_on_train_and_a_bent_spine, brain, brain, brain_ii, maintain_dry_eyes, avoid_diseased_people, fewer_mental_breakdowns_schizophrenia, less_depression, honey_pot_prayer_for_no_headaches_in_cars_trains_and_walks, quantum_box_prayer, nut_and_bolt, head_of_state_head_ache_prevention, daily_regimen, laughter_for_depression, heart, contagious_diseases, berocca_prevents_colds_and_flu, food, grains_nuts_fruits_vegetables, sit_properly_at_table_during_meals, computational_english_argument, computational_english_is_like_a_calculator, intertextuality, finite_data_will_be_a_solution_in_conglish, radical_difference, order_in_conglish, dereconstruction, kolmogorov_hermeneutics, derivability, the_science_of_crossing_over, a_new_logic_reflecting_language_or_natural_logic, philosophical_computational_english, lenses, analysing_characteristics_of_arguments, conglish_reflection, narratology_diagram, how_can_the_program_cope_with_real_variation, subject_mix, perspectives, ratios, exploring_opposites_in_hamlet, drawing_connections, symbols, children___h_one____earning_jobs___protection_in_jobs, heads_of_state, lucian_mantra_pure_form, lucian_mantra_sun_safety, maharishi_sutra, meditation_teacher_sutra, moving_appearances, purusha, upasana_sutra, yellow_god, green_sutra, blue_nature, appearances, pranayama, soma, hours_prayer, fifty_breasonings_per_utterance, two_uses, x, y, breathsonings, rebreathsonings, room, part_of_room, direction, time_to_prepare, time_to_do, time_to_finish, professor_algorithm, god_algorithm, marking_scheme__humanities_and_science, marking_scheme__creative_arts, leadership, uses_for_money_in_theatre_studies, uses_for_money_in_epistemology_poetry, uses_for_money_in_music, uses_for_money_in_fine_arts, breasonings_currency, sales_for_lm_to_siva, marketing_for_lm_to_siva, breasoning_currency, lower_risk_of_cancer_and_other_diseases_in_workers_and_broadcasters, decreased_stress, increased_blood_flow, increased_brain_potential, higher_grades, fewer_stillbirths, a_greater_number_of_successful_job_applications, aigs_for_pedagogy_helper, accreditation, protectedness, areas_of_study_to_create_a_pedagogue, create_a_pedagogy_helper_for_the_student, finding_out_about_the_student_as_a_pedagogy_helper, daily_professional_requirement_of_the_pedagogy_helper, preparing_the_student_to_write_each_breasoning, pedagogy_helper__write_on_breasoning___politics, pedagogy_helper__write_on_breasoning___philosophy, pedagogy_helper__write_on_breasoning___computer_science, unification_to_become_pedagogy_helper, practicum, breason_out_arguments_twice_when_in_large_class, details, breasonings, rebreasoning, breathsoning, rebreathsoning, room, part_of_room, direction, time_to_prepare, time_to_do, time_to_finish, god_algorithm, professor_algorithm, marking_scheme__humanities, marking_scheme__creative_arts_and_science, gods_infallibility_from_being_critiqued,
+
+pedagogy, meditation, medicine, computational_english, business, theology, popology, societology, music, theatre_studies, time_travel,politics,
+
+sales, professor, time_travel_in_place_now, berocca,
+
+utterances_to_arems,
+%%receptor_for_number_of_la_utterances_by_meditators,
+%%transmitter_for_number_of_arems_to_meditators,
+%%transmitted_number_of_arems_to_meditators,
+
+%%qi_gong_receptor_for_muscle_aches_and_pains,
+%%qi_gong_transmitter_for_prevention_muscle_aches_and_pains,
+%%transmitted_qi_gong_prevention_muscle_aches_and_pains,
+
+%%qi_gong_receptor_for_medicine,
+%%qi_gong_transmitter_for_prevention_medicine,
+%%transmitted_qi_gong_prevention_medicine,
+
+%%ayur_veda_receptor_for_medicine,
+%%ayur_veda_transmitter_for_prevention_medicine,
+%%transmitted_ayur_veda_prevention_medicine,
+
+%%receptor_for_breasonings,
+%%transmitter_for_breasonings,
+%%transmitted_breasonings,
+
+%%receptor_for_sales,
+%%transmitter_for_sales,
+%%transmitted_sales,
+
+dott_equals_250_breasonings_time_travel_with_10_algorithm_and_b_and_breasonings_text_describing_from_where_and_when_to_time_place_with_separate_radio_buttons_to_describe_breasonings_and_travel_stop_time_travel_safety_stop_time_travel_see_when_watched_stop_time_travel_no_depression_stop_time_travel_no_hole_in_my_character_at_the_start_stop_time_travel_hone_in_to_where_want_to_go_not_go_off_it_stop_time_travel_lead_comfortably__around_me_during_travel_for_no_anything_like_radiation_sickness_stop_time_travel_prevent_sickness_from_travelling_with_me_stop_time_travel_others_helped_to_find_my_time_travel_delightful__receptor_for_dott,
+transmitter_for_dott,
+transmitted_dott,
+
+berocca,
+%%receptor_for_need_of_berocca,
+%%transmitter_for_need_of_berocca,
+%%berocca_transmitted
+
+i_love_the_robot_because_i_know_that_it_loves_me,
+
+the_craft,
+
+cosmology,
+
+famousness_each_second,
+
+give_bots_as,%%,
+
+%%politics_give_as_when_departments_come_up
+viagra_transmitter_if_necessary,
+
+cast_with_it_over_answers,
+
+sin_stopped,
+
+port_thoughts,
+
+b_to_bots_misbehaving, bots_help,
+
+defend_mind_reading, defend_time_travel, defend_bots,
+
+talk_to_copy_of_universe,
+listen_to_copy_of_universe,
+see_copy_of_universe,
+appear_in_copy_of_universe,
+
+give_people_who_i_see_5_as_over_5_days,
+
+music_etc_number_one_education_help,
+
+unfolding_of_bots_life,
+
+%%**/
+
+sales_point_a_meditation_short_course,dot_on_sales_point_a_meditation_short_course,sales_point_b_meditation_short_course,dot_on_sales_point_b_meditation_short_course,sales_point_bb_meditation_short_course,dot_on_sales_point_bb_meditation_short_course,
+
+sales_point_a_pedagogy_short_course,dot_on_sales_point_a_pedagogy_short_course,sales_point_b_pedagogy_short_course,dot_on_sales_point_b_pedagogy_short_course,sales_point_bb_pedagogy_short_course,dot_on_sales_point_bb_pedagogy_short_course,
+
+sales_point_a_medicine_short_course,dot_on_sales_point_a_medicine_short_course,sales_point_b_medicine_short_course,dot_on_sales_point_b_medicine_short_course,sales_point_bb_medicine_short_course,dot_on_sales_point_bb_medicine_short_course,
+
+sales_point_a_politics_short_course,dot_on_sales_point_a_politics_short_course,sales_point_b_politics_short_course,dot_on_sales_point_b_politics_short_course,sales_point_bb_politics_short_course,dot_on_sales_point_bb_politics_short_course,
+
+sales_point_a_mindfulness_short_course,dot_on_sales_point_a_mindfulness_short_course,sales_point_b_mindfulness_short_course,dot_on_sales_point_b_mindfulness_short_course,sales_point_bb_mindfulness_short_course,dot_on_sales_point_bb_mindfulness_short_course,
+
+sales_point_a_economics_short_course,dot_on_sales_point_a_economics_short_course,sales_point_b_economics_short_course,dot_on_sales_point_b_economics_short_course,sales_point_bb_economics_short_course,dot_on_sales_point_bb_economics_short_course,
+
+sales_point_a_computer_science_short_course,dot_on_sales_point_a_computer_science_short_course,sales_point_b_computer_science_short_course,dot_on_sales_point_b_computer_science_short_course,sales_point_bb_computer_science_short_course,dot_on_sales_point_bb_computer_science_short_course,
+
+sales_point_a_computational_english_short_course,dot_on_sales_point_a_computational_english_short_course,sales_point_b_computational_english_short_course,dot_on_sales_point_b_computational_english_short_course,sales_point_bb_computational_english_short_course,dot_on_sales_point_bb_computational_english_short_course,
+
+three_plus_three_seconds_eye_direction1,
+three_plus_three_seconds_eye_direction2,
+three_plus_three_seconds_eye_direction3,
+three_plus_three_seconds_eye_direction4,
+three_plus_three_seconds_eye_direction5,
+three_plus_three_seconds_eye_direction6,
+three_plus_three_seconds_eye_direction7,
+three_plus_three_seconds_eye_direction8,
+
+lactobacillus_salivarius_massaged_into_teeth_and_gums_and_swallowed,
+
+mucous_in_intestines_blocking_lactobacillus_salivarius_dissolved,
+
+no_fluoride
+
+
+
+],
+
+Immortality=[
+
+immortality_stasis_field,
+
+big_idea_canceller,
+
+bot_appears_to_age_normally,
+
+bot_dies_at_80,
+
+no_effect_of_eating_food_food_transported_directly_stomach,
+
+no_other_effects_on_body,
+
+no_early_death_from_tt,
+
+mother_will_be_alive_to_cook_and_care_for_me,
+
+friends_will_be_immortal,
+
+no_natural_disasters_in_simulation,
+
+partner_s_family_immortal,
+
+really_different_looking_bot_in_simulation,
+
+my_family_will_be_immortal,
+a_for_reishi_mushroom,b_for_reishi_mushroom,b_to_b_for_reishi_mushroom,
+a_for_goji,b_for_goji,b_to_b_for_goji,
+a_for_ginseng,b_for_ginseng,b_to_b_for_ginseng,
+a_for_he_shou_wu,b_for_he_shou_wu,b_to_b_for_he_shou_wu,
+a_for_gotu_kola,b_for_gotu_kola,b_to_b_for_gotu_kola,
+a_for_schisandra,b_for_schisandra,b_to_b_for_schisandra,
+a_for_love_head_of_state,b_for_love_head_of_state,b_to_b_for_love_head_of_state,
+a_for_thank_who_helped_me_with_immortality_medicine_body_replacement_and_anti_ageing,b_for_thank_who_helped_me_with_immortality_medicine_body_replacement_and_anti_ageing,b_to_b_for_thank_who_helped_me_with_immortality_medicine_body_replacement_and_anti_ageing,
+a_for_thank_head_of_state_for_reishi_mushroom,b_for_thank_head_of_state_for_reishi_mushroom,b_to_b_for_thank_head_of_state_for_reishi_mushroom,
+a_for_thank_head_of_state_for_goji,b_for_thank_head_of_state_for_goji,b_to_b_for_thank_head_of_state_for_goji,
+a_for_thank_head_of_state_for_ginseng,b_for_thank_head_of_state_for_ginseng,b_to_b_for_thank_head_of_state_for_ginseng,
+a_for_thank_head_of_state_for_he_shou_wu,b_for_thank_head_of_state_for_he_shou_wu,b_to_b_for_thank_head_of_state_for_he_shou_wu,
+a_for_thank_head_of_state_for_gotu_kola,b_for_thank_head_of_state_for_gotu_kola,b_to_b_for_thank_head_of_state_for_gotu_kola,
+a_for_thank_head_of_state_for_schisandra,b_for_thank_head_of_state_for_schisandra,b_to_b_for_thank_head_of_state_for_schisandra,
+a_for_immortality,b_for_immortality,b_to_b_for_immortality,
+a_for_body_replacement,b_for_body_replacement,b_to_b_for_body_replacement,
+a_for_other_medicines_for_the_body,b_for_other_medicines_for_the_body,b_to_b_for_other_medicines_for_the_body,
+a_for_ginkgo_biloba,b_for_ginkgo_biloba,b_to_b_for_ginkgo_biloba,
+a_for_practicum_for_others_in_immortality_etc,b_for_practicum_for_others_in_immortality_etc,b_to_b_for_practicum_for_others_in_immortality_etc,
+a_for_the_other_as,b_for_the_other_as,b_to_b_for_the_other_as,
+a_for_thank_head_of_state,b_for_thank_head_of_state,b_to_b_for_thank_head_of_state,
+
+
+a_for_immortality_medicine_for_memory,b_for_immortality_medicine_for_memory,b_to_b_for_immortality_medicine_for_memory,
+a_for_body_replacement_for_memory,b_for_body_replacement_for_memory,b_to_b_for_body_replacement_for_memory,
+a_for_anti_ageing_for_memory,b_for_anti_ageing_for_memory,b_to_b_for_anti_ageing_for_memory,
+a_for_immortality_medicine_for_thinking,b_for_immortality_medicine_for_thinking,b_to_b_for_immortality_medicine_for_thinking,
+a_for_body_replacement_for_thinking,b_for_body_replacement_for_thinking,b_to_b_for_body_replacement_for_thinking,
+a_for_anti_ageing_for_thinking,b_for_anti_ageing_for_thinking,b_to_b_for_anti_ageing_for_thinking,
+a_for_immortality_medicine_for_stopping_dementia,b_for_immortality_medicine_for_stopping_dementia,b_to_b_for_immortality_medicine_for_stopping_dementia,
+a_for_body_replacement_for_stopping_dementia,b_for_body_replacement_for_stopping_dementia,b_to_b_for_body_replacement_for_stopping_dementia,
+a_for_anti_ageing_for_stopping_dementia,b_for_anti_ageing_for_stopping_dementia,b_to_b_for_anti_ageing_for_stopping_dementia,
+a_for_immortality_medicine_for_seeing_clearly,b_for_immortality_medicine_for_seeing_clearly,b_to_b_for_immortality_medicine_for_seeing_clearly,
+a_for_body_replacement_for_seeing_clearly,b_for_body_replacement_for_seeing_clearly,b_to_b_for_body_replacement_for_seeing_clearly,
+a_for_anti_ageing_for_seeing_clearly,b_for_anti_ageing_for_seeing_clearly,b_to_b_for_anti_ageing_for_seeing_clearly,
+a_for_immortality_medicine_for_muscle_relaxation,b_for_immortality_medicine_for_muscle_relaxation,b_to_b_for_immortality_medicine_for_muscle_relaxation,
+a_for_body_replacement_for_muscle_relaxation,b_for_body_replacement_for_muscle_relaxation,b_to_b_for_body_replacement_for_muscle_relaxation,
+a_for_anti_ageing_for_muscle_relaxation,b_for_anti_ageing_for_muscle_relaxation,b_to_b_for_anti_ageing_for_muscle_relaxation,
+a_for_immortality_medicine_for_circulatory_system__cardiovascular_system,b_for_immortality_medicine_for_circulatory_system__cardiovascular_system,b_to_b_for_immortality_medicine_for_circulatory_system__cardiovascular_system,
+a_for_body_replacement_for_circulatory_system__cardiovascular_system,b_for_body_replacement_for_circulatory_system__cardiovascular_system,b_to_b_for_body_replacement_for_circulatory_system__cardiovascular_system,
+a_for_anti_ageing_for_circulatory_system__cardiovascular_system,b_for_anti_ageing_for_circulatory_system__cardiovascular_system,b_to_b_for_anti_ageing_for_circulatory_system__cardiovascular_system,
+a_for_immortality_medicine_for_digestive_system_and_excretory_system,b_for_immortality_medicine_for_digestive_system_and_excretory_system,b_to_b_for_immortality_medicine_for_digestive_system_and_excretory_system,
+a_for_body_replacement_for_digestive_system_and_excretory_system,b_for_body_replacement_for_digestive_system_and_excretory_system,b_to_b_for_body_replacement_for_digestive_system_and_excretory_system,
+a_for_anti_ageing_for_digestive_system_and_excretory_system,b_for_anti_ageing_for_digestive_system_and_excretory_system,b_to_b_for_anti_ageing_for_digestive_system_and_excretory_system,
+a_for_immortality_medicine_for_endocrine_system,b_for_immortality_medicine_for_endocrine_system,b_to_b_for_immortality_medicine_for_endocrine_system,
+a_for_body_replacement_for_endocrine_system,b_for_body_replacement_for_endocrine_system,b_to_b_for_body_replacement_for_endocrine_system,
+a_for_anti_ageing_for_endocrine_system,b_for_anti_ageing_for_endocrine_system,b_to_b_for_anti_ageing_for_endocrine_system,
+a_for_immortality_medicine_for_integumentary_system__exocrine_system,b_for_immortality_medicine_for_integumentary_system__exocrine_system,b_to_b_for_immortality_medicine_for_integumentary_system__exocrine_system,
+a_for_body_replacement_for_integumentary_system__exocrine_system,b_for_body_replacement_for_integumentary_system__exocrine_system,b_to_b_for_body_replacement_for_integumentary_system__exocrine_system,
+a_for_anti_ageing_for_integumentary_system__exocrine_system,b_for_anti_ageing_for_integumentary_system__exocrine_system,b_to_b_for_anti_ageing_for_integumentary_system__exocrine_system,
+a_for_immortality_medicine_for_immune_system_and_lymphatic_system,b_for_immortality_medicine_for_immune_system_and_lymphatic_system,b_to_b_for_immortality_medicine_for_immune_system_and_lymphatic_system,
+a_for_body_replacement_for_immune_system_and_lymphatic_system,b_for_body_replacement_for_immune_system_and_lymphatic_system,b_to_b_for_body_replacement_for_immune_system_and_lymphatic_system,
+a_for_anti_ageing_for_immune_system_and_lymphatic_system,b_for_anti_ageing_for_immune_system_and_lymphatic_system,b_to_b_for_anti_ageing_for_immune_system_and_lymphatic_system,
+a_for_immortality_medicine_for_muscular_system,b_for_immortality_medicine_for_muscular_system,b_to_b_for_immortality_medicine_for_muscular_system,
+a_for_body_replacement_for_muscular_system,b_for_body_replacement_for_muscular_system,b_to_b_for_body_replacement_for_muscular_system,
+a_for_anti_ageing_for_muscular_system,b_for_anti_ageing_for_muscular_system,b_to_b_for_anti_ageing_for_muscular_system,
+a_for_immortality_medicine_for_nervous_system,b_for_immortality_medicine_for_nervous_system,b_to_b_for_immortality_medicine_for_nervous_system,
+a_for_body_replacement_for_nervous_system,b_for_body_replacement_for_nervous_system,b_to_b_for_body_replacement_for_nervous_system,
+a_for_anti_ageing_for_nervous_system,b_for_anti_ageing_for_nervous_system,b_to_b_for_anti_ageing_for_nervous_system,
+a_for_immortality_medicine_for_renal_system_and_urinary_system,b_for_immortality_medicine_for_renal_system_and_urinary_system,b_to_b_for_immortality_medicine_for_renal_system_and_urinary_system,
+a_for_body_replacement_for_renal_system_and_urinary_system,b_for_body_replacement_for_renal_system_and_urinary_system,b_to_b_for_body_replacement_for_renal_system_and_urinary_system,
+a_for_anti_ageing_for_renal_system_and_urinary_system,b_for_anti_ageing_for_renal_system_and_urinary_system,b_to_b_for_anti_ageing_for_renal_system_and_urinary_system,
+a_for_immortality_medicine_for_reproductive_system,b_for_immortality_medicine_for_reproductive_system,b_to_b_for_immortality_medicine_for_reproductive_system,
+a_for_body_replacement_for_reproductive_system,b_for_body_replacement_for_reproductive_system,b_to_b_for_body_replacement_for_reproductive_system,
+a_for_anti_ageing_for_reproductive_system,b_for_anti_ageing_for_reproductive_system,b_to_b_for_anti_ageing_for_reproductive_system,
+a_for_immortality_medicine_for_respiratory_system,b_for_immortality_medicine_for_respiratory_system,b_to_b_for_immortality_medicine_for_respiratory_system,
+a_for_body_replacement_for_respiratory_system,b_for_body_replacement_for_respiratory_system,b_to_b_for_body_replacement_for_respiratory_system,
+a_for_anti_ageing_for_respiratory_system,b_for_anti_ageing_for_respiratory_system,b_to_b_for_anti_ageing_for_respiratory_system,
+a_for_immortality_medicine_for_skeletal_system,b_for_immortality_medicine_for_skeletal_system,b_to_b_for_immortality_medicine_for_skeletal_system,
+a_for_body_replacement_for_skeletal_system,b_for_body_replacement_for_skeletal_system,b_to_b_for_body_replacement_for_skeletal_system,
+a_for_anti_ageing_for_skeletal_system,b_for_anti_ageing_for_skeletal_system,b_to_b_for_anti_ageing_for_skeletal_system,
+a_for_immortality_medicine_for_antidepressant,b_for_immortality_medicine_for_antidepressant,b_to_b_for_immortality_medicine_for_antidepressant,
+a_for_body_replacement_for_antidepressant,b_for_body_replacement_for_antidepressant,b_to_b_for_body_replacement_for_antidepressant,
+a_for_anti_ageing_for_antidepressant,b_for_anti_ageing_for_antidepressant,b_to_b_for_anti_ageing_for_antidepressant,
+a_for_immortality_medicine_for_antipsychotic,b_for_immortality_medicine_for_antipsychotic,b_to_b_for_immortality_medicine_for_antipsychotic,
+a_for_body_replacement_for_antipsychotic,b_for_body_replacement_for_antipsychotic,b_to_b_for_body_replacement_for_antipsychotic,
+a_for_anti_ageing_for_antipsychotic,b_for_anti_ageing_for_antipsychotic,b_to_b_for_anti_ageing_for_antipsychotic,
+
+a_1_for_immortality_keeping_same_appearance_to_home,a_2_for_immortality_keeping_same_appearance_to_home,
+a_3_for_immortality_keeping_same_appearance_to_home,
+a_4_for_immortality_keeping_same_appearance_to_home,
+
+school_teacher_a_1,
+school_teacher_a_2,
+school_teacher_a_3,
+school_teacher_a_4,
+
+medicine_a_1,
+medicine_a_2,
+medicine_a_3,
+medicine_a_4,
+
+bots_a_1,
+bots_a_2,
+bots_a_3,
+bots_a_4,
+
+sales_a_1,
+sales_a_2,
+sales_a_3,
+sales_a_4,
+
+if_a_teacher_then_seen_as_leading_a_country,
+
+control_not_to_die,control_not_to_have_s_contact,control_not_to_leave_simulation,control_whether_appear_to_people,
+
+can_t_be_involuntarily_time_travelled,
+
+ai_and_ped_thoughts
+
+
+
+].
+
+meditation2(Utterances1,Utterances2,Immortality) :-
+
+ %%File="I love you, I love you, I love you. Arem.",
+ %% dailyregimen,noheadachesapp,nobodyproblemsapp,arem
+ DotsandUtterances is 4*108, %% With radio button for graciously give or blame and graciously give or blame
+ texttobr2_1(DotsandUtterances), %% arem
+ texttobr2_1(DotsandUtterances), %% lucian
+ texttobr2_1(DotsandUtterances), %% green
+ texttobr2_1(DotsandUtterances), %% yoga
+ texttobr2_1(DotsandUtterances), %% dao
+
+ texttobr2_1(DotsandUtterances), %% arem time travel leave loc 1
+texttobr2_1(DotsandUtterances), %% friendliness time travel leave loc 1
+texttobr2_1(DotsandUtterances), %% arem time travel arrive loc 2
+texttobr2_1(DotsandUtterances), %% friendliness time travel arrive loc 2
+texttobr2_1(DotsandUtterances), %% arem time travel leave loc 2
+texttobr2_1(DotsandUtterances), %% friendliness time travel leave loc 2
+texttobr2_1(DotsandUtterances), %% arem time travel arrive loc 3
+texttobr2_1(DotsandUtterances), %% friendliness time travel arrive loc 3
+texttobr2_1(DotsandUtterances), %% arem time travel leave loc 3
+texttobr2_1(DotsandUtterances), %% friendliness time travel leave loc 3
+texttobr2_1(DotsandUtterances), %% arem time travel arrive loc 1
+texttobr2_1(DotsandUtterances), %% friendliness time travel arrive loc 1
+
+
+ %%noheadachesapp,nobodyproblemsapp,arem],
+ %% initiate_utterances(File,Utterances),
+ %% currentDate(Today),
+ %% Today=date(Year,Month,Day),
+ meditators(Meditators1),
+ meditators2(Meditators2),
+ append(Meditators1,Meditators2,Meditators),
+ length(Utterances1,UL1),
+ length(Utterances2,UL2),
+ length(Meditators,ML),
+ %%Length2 is 3*2*32*16*(2*UL1+3*UL2), %% 3 for receiver, transmitter, transmitted
+ Length2 is 4*3*10*(UL1+UL2), % 3 - A, B, B to B, 10 - simulate uni
+ % 4 - tt settings
+ % 64 to turn 250 into 16k x
+
+ %% 3 for receiver, transmitter, transmitted
+ %% 2 radio buttons for ul2
+ %% 32 for 128k br
+ %% 2: 1 for Ayurveda, 1 for TCM
+ %%Length3 is is DL*250*3*250,
+
+ %texttobr2_1(800), % graciously give person 10*5*50 As for medit, to simulate uni
+ texttobr2_1(Length2),
+ %%Length3 is (1+0+(32*16*5))*ML,%%+(2*2), %% Give the meditators the As with graciously give or blame, radio button for graciously give or blame
+
+ Length3 is ML,%%+(2*2), %% Give the meditators the As with graciously give or blame, radio button for graciously give or blame
+ %% x: and 2*250 br to turn off more than 80 medit breasonings per day with the rest as recordings for 1 subjects (black and white hen with speckles roosting)
+ %% 32*4 for medicine, meditation in ayur veda, qi gong, memory
+ texttobr2_1(Length3),
+
+ findall(_Meditators3,member([_,_, _,_,_, _,_,_,_,_,_,immortal],Meditators),Meditators4),
+
+ length(Immortality,J2),
+ Length4 is 3*10*J2, % 3*10 see above
+ texttobr2_1(Length4),
+
+ Length5 is 3*10*((4*4*50*80)/250), % medit, tt, medic frozen age, hq thought
+ texttobr2_1(Length5),
+
+ length(Meditators4,ML4),
+ texttobr2_1(ML4),
+
+
+ !.
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/meditationnoreplace3.pl b/Text-to-Breasonings-master/meditationnoreplace3.pl
new file mode 100644
index 0000000000000000000000000000000000000000..b14c9832df2cd73c002f2da166ccff095030c72d
--- /dev/null
+++ b/Text-to-Breasonings-master/meditationnoreplace3.pl
@@ -0,0 +1,11 @@
+#!/usr/bin/swipl -f -q
+
+:- initialization main.
+
+:- include('meditationnoreplace.pl').
+:- include('meditatorsanddoctors.pl').
+
+main :-
+ meditation,halt.
+
+main :- halt(1).
diff --git a/Text-to-Breasonings-master/meditatorsanddoctors.pl b/Text-to-Breasonings-master/meditatorsanddoctors.pl
new file mode 100644
index 0000000000000000000000000000000000000000..1fd73225ae8d548b4a7777629cb1cba26b6b01fb
--- /dev/null
+++ b/Text-to-Breasonings-master/meditatorsanddoctors.pl
@@ -0,0 +1,21 @@
+%% meditatorsanddoctors.pl
+
+%% Name, DOB, Date learned, psych appointment month=1 or 2, psych appointment day, thoughts count
+
+meditators([
+%%/**
+% note if following invited to sim when in 5689 with texttobr2_1(*number of new medits).
+[first,last,dobd,dobm,doby,learntd,learntm,learnty,1,0,16,immortal], %% sim/not in sim
+[first,last,dobd,dobm,doby,learntd,learntm,learnty,1,0,16,immortal] %% sim/not in sim
+]).
+
+meditators2([
+%%/**
+% note if following invited to sim when in 5689 with texttobr2_1(*number of new medits).
+[first,last,dobd,dobm,doby,learntd,learntm,learnty,1,0,16,immortal], %% sim/not in sim
+[first,last,dobd,dobm,doby,learntd,learntm,learnty,1,0,16,immortal] %% sim/not in sim
+]).
+
+%% empty, because meditators is now based on 50 As
+doctors([
+]).
diff --git a/Text-to-Breasonings-master/mergetexttobrdict.pl b/Text-to-Breasonings-master/mergetexttobrdict.pl
new file mode 100644
index 0000000000000000000000000000000000000000..2ec6548afa128f6712c6b85704994761f6de67e8
--- /dev/null
+++ b/Text-to-Breasonings-master/mergetexttobrdict.pl
@@ -0,0 +1,22 @@
+%% mergetexttobrdict.pl
+
+/** logs in, renames,
+copies bdrict1.txt and 2.txt to 1vps.vps and 2vps.txt
+Loads dictionaries, uses term_to_atom to turn into term
+Appends to home dictionaries
+Runs texttobr
+Uploads new dictionaries to vps
+rename
+**/
+
+%% [mergetexttobrdict],
+%% [edit].
+%% mergetexttobrdict.
+
+%%:- include('edit.pl').
+
+use_module(library(pio)).
+use_module(library(dcg/basics)).
+
+mergetexttobrdict :-
+ prolog_edit:run1.
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/mindreadingcaw.pl b/Text-to-Breasonings-master/mindreadingcaw.pl
new file mode 100644
index 0000000000000000000000000000000000000000..47f2db88e91d1858e737ead6ad6111caf5481942
--- /dev/null
+++ b/Text-to-Breasonings-master/mindreadingcaw.pl
@@ -0,0 +1,621 @@
+:- dynamic debug/1.
+:- include('texttobr2qb').
+:- include('mindreadtestshared').
+:- include('listprologinterpreter1listrecursion4.pl').
+:- include('listprologinterpreter3preds5.pl').
+:- include('grammar.pl').
+
+%% Silly to mind read caw inputs, because they are mostly unused. Use mind reading for definitely used multi choice answer
+
+%% caw00(off,[n,f],[[[n,append],2,1],[[n,delete],2,1],[[n,head],1,1],[[n,tail],1,1],[[n,member],1,1]],2,8,_InputVarList,_OutputVarList,[],_Program2,Ps).
+%% [[[[n,f],[[b,c],[b,a],[v,d]]],[[[n,f],[[v,a],[v,b],[v,d]],:-,[[[n,=],[[v,d],[v,a]]]]]],[[[v,d],[b,c]]]],[[[n,f],[[b,c],[b,a],[v,d]]],[[[n,f],[[v,a],[v,b],[v,d]],:-,[[[n,append],[[v,b],[v,a],[v,e]]],[[n,=],[[v,d],[v,e]]]]]],[[[v,d],[b,a,b,c]]]]]
+
+/**
+
+?- interpret(on,[[n,f],[["b","c"],["b","a"],[v,d]]],[[[n,f],[[v,a],[v,b],[v,d]],":-",[[[n,=],[[v,d],[v,a]]]]]],Result).
+[call,[[n,f],[[b,c],[b,a],[v,d]]],Press c.]
+[call,[[n,is],[variable,[b,c]]],Press c.]
+[exit,[[n,is],[[v,d],[b,c]]],Press c.]
+[exit,[[n,f],[[b,c],[b,a],[b,c]]],Press c.]
+Result = [[[v, d], ["b", "c"]]].
+
+?- interpret(on,[[n,f],[["b","c"],["b","a"],[v,d]]],[[[n,f],[[v,a],[v,b],[v,d]],":-",[[[n,append],[[v,b],[v,a],[v,e]]],[[n,=],[[v,d],[v,e]]]]]],Result).
+[call,[[n,f],[[b,c],[b,a],[v,d]]],Press c.]
+[call,[[n,append],[[b,a],[b,c],variable3]],Press c.]
+[exit,[[n,append],[[b,a],[b,c],[b,a,b,c]]],Press c.]
+[call,[[n,is],[variable,[b,a,b,c]]],Press c.]
+[exit,[[n,is],[[v,d],[b,a,b,c]]],Press c.]
+[exit,[[n,f],[[b,c],[b,a],[b,a,b,c]]],Press c.]
+Result = [[[v, d], ["b", "a", "b", "c"]]].
+
+**/
+
+%% ML max 25
+shell1(Command) :-
+ (bash_command(Command,_)->
+ true;
+ (writeln(["Failed shell1 command: ",Command]),abort)
+ ),!.
+
+bash_command(Command, Output) :-
+ setup_call_cleanup(process_create(path(bash),
+ ['-c', Command],
+ [stdout(pipe(Out))]),
+ read_string(Out, _, Output),
+ close(Out)).
+
+
+caw00(Debug,PredicateName,Rules,MaxLength,TotalVars,_InputVarList,_OutputVarList,Program1,_Program2,Ps1) :-
+ repeat,
+ %%MaxLength2 is MaxLength + 1,
+ %%TotalVars = MaxLength,
+ randvars(MaxLength,MaxLength,[],RandVars),
+ populatevars(RandVars,MaxLength,[],PV),
+ Code is MaxLength + 1 + 97,
+ char_code(Char,Code),
+ OutputVarList=[[[v,Char],1]],
+ retractall(debug(_)),
+ assertz(debug(Debug)),
+ retractall(totalvars(_)),
+ assertz(totalvars(TotalVars)),
+ caw0(PredicateName,Rules,MaxLength,PV,OutputVarList,Program1,_Program3,Ps),
+ sort(Ps,Ps1),not(Ps1=[]),!.
+
+random1(N1) :-
+ random2(N2),random2(N3), string_concat(N2,N3,S), number_string(N1,S).
+
+random2(N) :-
+ trialy2_30("0",H21),
+ trialy2_30("1",H22),
+ trialy2_30("2",H23),
+ trialy2_30("3",H24),
+ trialy2_30("4",H25),
+ trialy2_30("5",H26),
+ trialy2_30("6",H27),
+ trialy2_30("7",H28),
+ trialy2_30("8",H29),
+ trialy2_30("9",H210),
+
+ H2L=[H21,H22,H23,H24,H25,
+ H26,H27,H28,H29,H210],
+ sort(H2L,H2A),
+ reverse(H2A,H2B),
+ H2B=[[_,N]|_Rest2].
+
+randvars(0,_,V,V) :- !.
+randvars(N,L,V1,V2) :-
+
+ random1(N0), N1 is N0/100, N2A is round(97+(N1*L)), char_code(V3,N2A), V31=[v,V3], ((member(V31,V1))->randvars(N,L,V1,V2);
+ (append(V1,[V31],V4),
+ NA is N-1, randvars(NA,L,V4,V2))),!.
+randvars2(0,_L,V,V) :- !.
+randvars2(N,L,V1,V2) :-
+ random1(N0), N1 is N0/100, N2A is round(97+(N1*L)), char_code(V3,N2A), atom_string(V3,V4), %%V41=[v,V4],
+ ((member(V4,V1))->randvars2(N,L,V1,V2);
+ (append(V1,[V4],V5),
+ NA is N-1, randvars2(NA,L,V5,V2))),!.
+populatevars([],_,PV,PV) :- !.
+populatevars([RV1|RVs],MaxLength2,PV1,PV2) :-
+ randvars2(MaxLength2,MaxLength2,[],RV2),
+ append(PV1,[[RV1,RV2]],PV3),
+ populatevars(RVs,MaxLength2,PV3,PV2),!.
+
+caw0(PredicateName,Rules,MaxLength,InputVarList,OutputVarList,Program1,Program2,Ps2) :-
+ varnames(InputVarList,[],InputVars,[],InputValues),
+ varnames(OutputVarList,[],OutputVars,[],_OutputValues),
+ retractall(outputvars(_)),
+ assertz(outputvars(OutputVars)),
+ append(InputVars,OutputVars,Vars11),
+ %%Vars11=InputVars,
+ %%Vars12=InputVars,
+ append(InputValues,OutputVars,Vars2),
+ %%append(InputValues,OutputValues,Values),
+ Query=[PredicateName,Vars2],
+ caw1(Query,PredicateName,Rules,MaxLength,Vars11,InputVars,InputVars,_,OutputVarList,OutputVars,Program1,Program2,[],Ps2), !.
+
+caw1(_,_,_,0,_,_,_,_,_,_,_,_,Ps,Ps) :- !.
+caw1(Query,PredicateName,Rules,MaxLength,VarList,InputVars1,InputVars2,InputVars3,OutputVarList,OutputVars,Program1,Program2,Programs2,Ps1) :-
+ MaxLength2 is MaxLength - 1,
+ addrules0(InputVars2,OutputVars,OutputVars,[],Program3),
+ %%writeln([addrules(InputVars2,OutputVars,OutputVars,[],PenultimateVars,[],Program3)]),
+ %%optimise(Program1,InputVars1,InputVars2,PenultimateVars,Program4), %% IV2->3
+ %%writeln([optimise(Program1,InputVars1,InputVars2,PenultimateVars,Program4)]),
+ append(Program1,Program3,Program5),
+ append(InputVars1,OutputVars,Vars2),
+ Program2=[
+ [PredicateName,Vars2,":-",
+ Program5
+ ]
+ ],debug(Debug),
+
+ %%writeln([interpret(Debug,Query,Program2,OutputVarList2)]),
+
+ interpret(Debug,Query,Program2,OutputVarList2),
+ %%writeln([interpret(Debug,Query,Program2,OutputVarList2)]),
+ append(Programs2,[[Query,Program2,OutputVarList2]],Ps1).%% ,Programs3->Ps1
+ %%caw1a(Query,PredicateName,Rules,MaxLength2,VarList,InputVars1,InputVars2,InputVars3,OutputVarList,OutputVars,[],_Program2,Programs3,Ps1),!.
+
+%%caw1(_Query,_PredicateName,_Rules,_MaxLength,_VarList,_InputVars1,_InputVars2,_InputVars3,_OutputVarList,_OutputVars,_Program1,_Program4,Ps,Ps) :- writeln(here1),!.
+caw1(Query,PredicateName,Rules,MaxLength2,VarList,InputVars1,InputVars2,InputVars3,OutputVarList,OutputVars,[],_Program2,Programs3,Programs3) :- !.
+ %%writeln([here1, caw1(Query,PredicateName,Rules,MaxLength2,VarList,InputVars1,InputVars2,InputVars3,OutputVarList,OutputVars,[],_Program21,Programs3,Programs3)]),!.
+
+caw1a(Query,PredicateName,Rules,MaxLength,VarList,InputVars1,InputVars2,InputVars3,OutputVarList,OutputVars,Program1,Program4,Ps1,Ps2) :-
+
+ %%writeln([caw(Query,PredicateName,Rules,MaxLength,VarList,InputVars1,InputVars2,OutputVarList,OutputVars,Program1,Program4)]),
+ %%MaxLength2 is MaxLength - 1,
+ %%writeln(["ml",MaxLength2]),
+ reverse(InputVars2,InputVars5),
+ random1(N0), N1 is N0/100, length(Rules,L), N2 is round(L*N1)-1,
+ (N2>=0->
+ (length(List1,N2), append(List1,List2,Rules),
+ List2=[[RuleName,NumInputs,NumOutputs]|_Rest]);fail),
+ %%writeln([member([RuleName,NumInputs,NumOutputs],Rules)]),
+ %%writeln([rule(RuleName,NumInputs,NumOutputs,VarList,VarList2,Rule)]),
+ rule(RuleName,NumInputs,NumOutputs,InputVars5,InputVars4,VarList,VarList2,Rule),
+%%writeln([inputVars1,InputVars1]),
+%% writeln([rule(RuleName,NumInputs,NumOutputs,InputVars5,InputVars4,VarList,VarList2,Rule)]),
+ append(Program1,[Rule],Program3),
+ %%writeln([inputVars3,InputVars3]),
+ %%InputVars2=InputVars3,
+ %%writeln([program4,Program4]),
+
+%%caw1a(Query,PredicateName,Rules,MaxLength,VarList,InputVars1,InputVars2,InputVars3,OutputVarList,OutputVars,Program1,Program4,Ps,Ps) :-
+%%writeln([here,caw1a(Query,PredicateName,Rules,MaxLength,VarList,InputVars1,InputVars2,InputVars3,OutputVarList,OutputVars,Program1,Program4,Ps,Ps)])
+
+
+caw(Query,PredicateName,Rules,MaxLength,VarList2,InputVars1,InputVars4,InputVars3,OutputVarList,OutputVars,Program3,Program4,Ps1,Ps2),!.
+
+
+caw(_,_,_,0,_,_,_,_,_,_,_,_,Ps,Ps) :- !.
+caw(Query,PredicateName,Rules,MaxLength,VarList,InputVars1,InputVars2,InputVars3,OutputVarList,OutputVars,Program1,Program2,Programs1,Programs2) :-
+ MaxLength2 is MaxLength - 1,
+ addrules(InputVars2,OutputVars,OutputVars,[],_PenultimateVars,[],Program3),
+ %%writeln([addrules(InputVars2,OutputVars,OutputVars,[],PenultimateVars,[],Program3)]),
+ %%optimise(Program1,InputVars1,InputVars2,PenultimateVars,Program4), %% IV2->3
+ %%writeln([optimise(Program1,InputVars1,InputVars2,PenultimateVars,Program4)]),
+ append(Program1,Program3,Program5),
+ append(InputVars1,OutputVars,Vars2),
+ Program2=[
+ [PredicateName,Vars2,":-",
+ Program5
+ ]
+ ],debug(Debug),
+%%***
+%% () choose iv1 as args during caw, () eliminate e problem, could move forward in optimiser but don't need it v
+%% should have a leading edge of 1 immediately previous (new output) as an arg in latest rule v, go backwards to choose latest possible args x, 3 x rules can have same as previous rule's output as an output x: at a time
+%% chunks will solve having at least 1 rule that connects to last output
+%% can optimise number of inputs
+
+%% test member, = in caw
+
+ %%writeln([interpret(Debug,Query,Program2,OutputVarList2)]),
+
+ interpret(Debug,Query,Program2,OutputVarList2),
+ %%writeln([interpret(Debug,Query,Program2,OutputVarList2)]),
+ append(Programs1,[[Query,Program2,OutputVarList2]],Programs3),
+ cawa(Query,PredicateName,Rules,MaxLength2,VarList,InputVars1,InputVars2,InputVars3,OutputVarList,OutputVars,[],_Program2,Programs3,Programs2),!.
+%%caw(_,_,_,_,_,_,_,_,_,_,_,_,Ps,Ps) :- !.
+
+caw(Query,PredicateName,Rules,MaxLength2,VarList,InputVars1,InputVars2,InputVars3,OutputVarList,OutputVars,[],_Program2,Programs3,Programs3) :-
+ %%writeln([here2, caw(Query,PredicateName,Rules,MaxLength2,VarList,InputVars1,InputVars2,InputVars3,OutputVarList,OutputVars,[],_Program21,Programs3,Programs3)]),
+ !.
+
+
+cawa(Query,PredicateName,Rules,MaxLength,VarList,InputVars1,InputVars2,InputVars3,OutputVarList,OutputVars,Program1,Program4,Ps1,Ps2) :-
+ %%writeln([caw(Query,PredicateName,Rules,MaxLength,VarList,InputVars1,InputVars2,OutputVarList,OutputVars,Program1,Program4)]),
+ %%MaxLength2 is MaxLength - 1,
+ %%writeln(["ml",MaxLength2]),
+ random1(N0), N1 is N0/100, length(Rules,L), N2 is round(L*N1)-1,
+ (N2>=0->
+ (length(List1,N2), append(List1,List2,Rules),
+ List2=[[RuleName,NumInputs,NumOutputs]|_Rest]);fail),
+ %%writeln([member([RuleName,NumInputs,NumOutputs],Rules)]),
+ %%writeln([rule(RuleName,NumInputs,NumOutputs,VarList,VarList2,Rule)]),
+ rule(RuleName,NumInputs,NumOutputs,InputVars2,InputVars4,VarList,VarList2,Rule),
+%%writeln([inputVars1,InputVars1]),
+%% writeln([rule(RuleName,NumInputs,NumOutputs,InputVars2,InputVars4,VarList,VarList2,Rule)]),
+ append(Program1,[Rule],Program3),
+ %%writeln([inputVars3,InputVars3]),
+ %%InputVars2=InputVars3,
+ %%writeln([program4,Program4]),
+caw(Query,PredicateName,Rules,MaxLength,VarList2,InputVars1,InputVars4,InputVars3,OutputVarList,OutputVars,Program3,Program4,Ps1,Ps2), !.
+
+varnames([],Vars,Vars,Values,Values) :- !.
+varnames(VarList,Vars1,Vars2,Values1,Values2) :-
+ VarList=[Var|Vars3],
+ Var=[VarName,Value],
+ append(Vars1,[VarName],Vars4),
+ append(Values1,[Value],Values3),
+ varnames(Vars3,Vars4,Vars2,Values3,Values2),!.
+
+addrules0(_,_,[],Program,Program) :- !.
+addrules0(VarList,OutputVars1,OutputVars2,Program1,Program2) :-
+ OutputVars2=[OutputVar|OutputVars3],
+
+ random1(N0), N1 is N0/100, length(VarList,L), N2 is round(L*N1)-1,
+ (N2>=0->
+ (length(List1,N2), append(List1,List2,VarList),
+ List2=[Var|_Rest]);fail),
+
+ random1(N01), N11 is N01/100, length(OutputVars1,L1), N21 is round(L1*N11)-1,
+ (N21>=0->
+ (length(List11,N21), append(List11,List21,OutputVars1),
+ List21=[OutputVar|_Rest2]);fail),
+
+ append(Program1,[[[n,=],[OutputVar,Var]]],Program3),
+ addrules0(VarList,OutputVars1,OutputVars3,Program3,Program2),!.
+
+addrules(_,_,[],PV,PV,Program,Program) :- !.
+addrules(VarList,OutputVars1,OutputVars2,PenultimateVars1,PenultimateVars2,Program1,Program2) :-
+ restlast(VarList,[],_,Var),
+ %%OutputVars2=[OutputVar|OutputVars3],
+
+ random1(N0), N1 is N0/100, length(OutputVars2,L), N2 is round(L*N1)-1,
+ (N2>=0->
+ (length(List1,N2), append(List1,List2,OutputVars2),
+ List2=[OutputVar|_Rest]);fail),
+
+ delete(OutputVars1,OutputVar,OutputVars3),
+%% member(Var,VarList),
+
+ random1(N01), N11 is N01/100, length(OutputVars1,L1), N21 is round(L1*N11)-1,
+ (N21>=0->
+ (length(List11,N21), append(List11,List21,OutputVars1),
+ List21=[OutputVar|_Rest2]);fail),
+
+ append(Program1,[[[n,=],[OutputVar,Var]]],Program3),
+ append(PenultimateVars1,[Var],PenultimateVars3),
+ addrules2(VarList,OutputVars1,OutputVars3,PenultimateVars3,PenultimateVars2,Program3,Program2),!.
+
+addrules2(_,_,[],PV,PV,Program,Program) :- !.
+addrules2(VarList,OutputVars1,OutputVars2,PenultimateVars1,PenultimateVars2,Program1,Program2) :-
+%% restlast(VarList,[],_,Var),
+ OutputVars2=[OutputVar|OutputVars3],
+
+ random1(N0), N1 is N0/100, length(VarList,L), N2 is round(L*N1)-1,
+ (N2>=0->
+ (length(List1,N2), append(List1,List2,VarList),
+ List2=[Var|_Rest]);fail),
+
+ not(member(Var,PenultimateVars1)),
+
+ random1(N01), N11 is N01/100, length(OutputVars1,L1), N21 is round(L1*N11)-1,
+ (N21>=0->
+ (length(List11,N21), append(List11,List21,OutputVars1),
+ List21=[OutputVar|_Rest2]);fail),
+
+ append(Program1,[[[n,=],[OutputVar,Var]]],Program3),
+ append(PenultimateVars1,[Var],PenultimateVars3),
+ addrules2(VarList,OutputVars1,OutputVars3,PenultimateVars3,PenultimateVars2,Program3,Program2),!.
+
+%% optimise([[append,[a,a,d]],[append,[a,a,e]],[append,[a,a,f]],[append,[a,b,g]]],[g],P).
+/**
+optimise(Program1,InputVars1,InputVars2,PenultimateVars,Program2) :-
+ reverse(Program1,Program4),
+ findrulesflowingtopv1(Program4,InputVars1,InputVars2,PenultimateVars,[],Rules,true),
+ %%findrulesflowingtopv1a(Program1,_Program32,InputVars1,InputVars2,PenultimateVars,[],_Rules1),
+ intersection(Program1,Rules,Program3),
+ unique1(Program3,[],Program2).
+findrulesflowingtopv1(_,_,_,[],Rules,Rules,false).
+findrulesflowingtopv1(Program0,InputVars1,InputVars2,Var,Rules1,Rules2,IV1Flag1) :-
+ (atom(Var);length(Var,1)),
+ findrulesflowingtopv20(Program0,Program0,InputVars1,InputVars2,Var,Rules1,Rules2,IV1Flag1).
+findrulesflowingtopv1(Program0,InputVars1,InputVars2,Vars1,Rules1,Rules2,IV1Flag1) :-
+ Vars1=[Var|Vars2],
+ findrulesflowingtopv20(Program0,Program0,InputVars1,InputVars2,Var,Rules1,Rules3,IV1Flag2),
+ findrulesflowingtopv1(Program0,InputVars1,InputVars2,Vars2,Rules3,Rules2,IV1Flag3),
+ iv1flagdisjunction(IV1Flag2,IV1Flag3,IV1Flag1).
+
+%%findrulesflowingtopv2([],Program,Program,_,_,Rules,Rules).
+findrulesflowingtopv20(_,[],_InputVars1,_InputVars2,_Var,Rules,Rules,false).
+findrulesflowingtopv20(Program0,Rules4,InputVars1,InputVars2,Var,Rules1,Rules2,IV1Flag1) :-
+ Rules4=[Rule|Rules],
+ (findrulesflowingtopv2(Program0,Rule,InputVars1,InputVars2,Var,Rules1,Rules3,IV1Flag2)->true;(Rules3=Rules1,IV1Flag2=false)),
+ %%delete(Program0,Rule,Program1),
+ findrulesflowingtopv20(Program0,Rules,InputVars1,InputVars2,Var,Rules3,Rules2,IV1Flag3),%%p1->0
+ iv1flagdisjunction(IV1Flag2,IV1Flag3,IV1Flag1).
+%%findrulesflowingtopv2(_,[],[],_,_,_,Rules,Rules).
+findrulesflowingtopv2(Program0,Rule,InputVars1,InputVars2,Var,Rules1,Rules2,IV1Flag1) :-
+ Rule=[_PredicateName,Vars],
+ restlast(Vars,[],Rest,Var),
+ %%delete(Program1,[PredicateName,Vars],Program2),
+ %%Program2=Program1,
+ %%(not(intersection(Rulesx,Rules1))-> x
+ %% append, append, unique1
+ %%append(Rules1,[Rule],Rules3);Rules3=Rules1),
+
+ %%member(Var2,Rest),
+ %%member(Var2,InputVars1),
+
+ length(Rest,Length1), Length1>=1,
+ subtract(Rest,InputVars1,IV3s),
+ length(IV3s,Length3),
+ subtract(Rest,IV3s,IV1s),
+ length(IV1s,Length2), Length2>=1,
+ subtract(IV3s,InputVars2,[]),
+
+ IV1Flag2=true,
+
+ %%delete(Program0,Rule,Program1),
+
+ %%(delete(Program0,Rule,Program3),
+ %%iv3s1(IV3s,Program3,IV3s,[]),
+ (Length3>=1->
+ (findrulesflowingtopv1(Program0,InputVars1,InputVars2,IV3s,[],Rules5,IV1Flag3),not(Rules5=[]));
+ (Rules5=[],IV1Flag3=false)),
+ iv1flagdisjunction(IV1Flag2,IV1Flag3,IV1Flag4),
+ %%->true; Rules5=[],IV1Flag1=IV1Flag4),
+
+ ((findrulesflowingtopv1(Program0,InputVars1,InputVars2,IV1s,[],Rules6,IV1Flag5), %%iv1s->rest, etc
+ iv1flagdisjunction(IV1Flag4,IV1Flag5,IV1Flag1))->true;(Rules6=[],IV1Flag1=IV1Flag4)),
+
+ append([Rule],Rules1,Rules9),
+ append(Rules9,Rules5,Rules7),
+ append(Rules7,Rules6,Rules8),
+ unique1(Rules8,[],Rules2).
+
+/**
+findrulesflowingtopv2(_Program0,Rule,InputVars1,InputVars2,Var,Rules1,Rules2,IV1Flag1) :-
+ Rule=[_PredicateName,Vars],
+ restlast(Vars,[],Rest,Var),
+ %%delete(Program1,[PredicateName,Vars],Program2),
+ %%Program2=Program1,
+ (not(member(Rule,Rules1))->
+ append(Rules1,[Rule],Rules2);Rules2=Rules1),
+ subset(Rest,InputVars2),
+
+ intersection(Rest,InputVars1,Intersection),
+ length(Intersection,0),
+
+%% not((member(Var2,Rest),
+%% member(Var2,InputVars1))),
+
+ IV1Flag1=false.
+**/
+/**
+findrulesflowingtopv2(Program0,Rule,InputVars1,InputVars2,Var,Rules1,Rules2,IV1Flag1) :-
+ Rule=[_PredicateName,Vars],
+ restlast(Vars,[],Rest,Var),
+ %%delete(Program1,[PredicateName,Vars],Program3),
+ %%Program3=Program1,
+ %%append(Rules1,[Rule],Rules3),
+ subset(Rest,InputVars2),
+
+ intersection(Rest,InputVars1,Intersection),
+ length(Intersection,0),
+
+%% not((member(Var2,Rest),
+%% member(Var2,InputVars1))),
+
+%% delete(Program0,Rule,Program1),
+
+ IV1Flag2=false,
+ findrulesflowingtopv1(Program0,InputVars1,InputVars2,Rest,[],Rules4,IV1Flag3),
+ %%not(Rules4=[]),
+ iv1flagdisjunction(IV1Flag2,IV1Flag3,IV1Flag1),
+
+ append(Rules1,[Rule],Rules7),
+ append(Rules7,Rules4,Rules8),
+ unique1(Rules8,[],Rules2).
+**/
+/**
+%%->true;(Program2=Program1,Rules2=Rules1)).
+findrulesflowingtopv2(Rule,Program0,Program1,_Program2,InputVars1,InputVars,Var,Rules1,Rules2,IV1Flag1) :-
+ Rule=[PredicateName,Vars],
+ restlast(Vars,[],Rest,Var),
+ %%delete(Program1,[PredicateName,Vars],Program4),
+ %%Program4=Program1,
+ append(Rules1,[[PredicateName,Vars]],Rules3),
+ findrulesflowingtopv1(Program0,Program1,_Program2,InputVars1,InputVars,Rest,Rules3,Rules2,IV1Flag3),
+ iv1flagdisjunction(IV1Flag2,IV1Flag3,IV1Flag1).
+
+ %%findrulesflowingtopv2(Program5,Program2,Rest,Rules3,Rules2).
+
+**/
+iv1flagdisjunction(A,B,true) :-
+ ((A=true)->true; (B=true)),!.
+iv1flagdisjunction(_,_,false) :- !.
+/**
+iv3s0([],_,IV3s1,IV3s2).
+iv3s0(IV3s,Program0,IV3s1,IV3s2).
+ IV3s=[IV3|IV3s3],
+ iv3s1(IV3,Program0,IV3s1,IV3s4),
+ iv3s0(IV3s3,Program0,IV3s4,IV3s2).
+iv3s1(_,[],IV3s,IV3s).
+iv3s1(IV3,Program0,IV3s1,IV3s2) :-
+ Program0=[Rule|Rules],
+ iv3s2(IV3,Rule,IV3s1,IV3s3),
+ iv3s1(IV3,Rules,IV3s3,IV3s2).
+iv3s2(IV3,Rule,IV3s,IV3s1,IV3s2).
+ Rule=[_PredicateName,Vars],
+ restlast(Vars,[],_Rest,IV3),
+ delete(IV3s1,IV3,IV3s2).
+
+
+findrulesflowingtopv1a(_,_,_,_,[],Rules,Rules).
+findrulesflowingtopv1a(Program1,Program2,InputVars1,InputVars2,Var,Rules1,Rules2) :-
+ atom(Var),
+ findrulesflowingtopv2a(Program1,Program2,InputVars1,InputVars2,Var,Rules1,Rules2).
+findrulesflowingtopv1a(Program1,Program2,InputVars1,InputVars2,Vars1,Rules1,Rules2) :-
+ Vars1=[Var|Vars2],
+ findrulesflowingtopv2(Program1,Program3,InputVars1,InputVars2,Var,Rules1,Rules3),
+ findrulesflowingtopv1a(Program3,Program2,InputVars1,InputVars2,Vars2,Rules3,Rules2).
+%%findrulesflowingtopv2([],Program,Program,_,_,Rules,Rules).
+findrulesflowingtopv2a([],[],_,_,_,Rules,Rules).
+findrulesflowingtopv2a(Program1,Program2,_InputVars1,InputVars2,Var,Rules1,Rules2) :-
+ member([PredicateName,Vars],Program1),
+ restlast(Vars,[],Rest,Var),
+ (
+%%delete(Program1,[PredicateName,Vars],Program2),
+Program2=Program1,
+ append(Rules1,[[PredicateName,Vars]],Rules2),
+ subset(Rest,InputVars2)).
+findrulesflowingtopv2a(Program1,Program2,InputVars1,InputVars2,Var,Rules1,Rules2) :-
+ member([PredicateName,Vars],Program1),
+ restlast(Vars,[],Rest,Var),
+ (
+%%delete(Program1,[PredicateName,Vars],Program3),
+Program3=Program1,
+ append(Rules1,[[PredicateName,Vars]],Rules3),
+ subset(Rest,InputVars2)),
+ findrulesflowingtopv1a(Program3,Program2,InputVars1,InputVars2,Rest,Rules3,Rules2).
+
+%%->true;(Program2=Program1,Rules2=Rules1)).
+findrulesflowingtopv2a(Program1,Program2,InputVars1,InputVars,Var,Rules1,Rules2) :-
+ member([PredicateName,Vars],Program1),
+ restlast(Vars,[],Rest,Var),
+ %%delete(Program1,[PredicateName,Vars],Program4),
+ Program4=Program1,
+ append(Rules1,[[PredicateName,Vars]],Rules3),
+ findrulesflowingtopv1a(Program4,Program2,InputVars1,InputVars,Rest,Rules3,Rules2).
+ %%findrulesflowingtopv2(Program5,Program2,Rest,Rules3,Rules2).
+ **/
+**/
+restlast([],_,_,_) :- fail, !.
+restlast([Last],Rest,Rest,Last) :-
+ Last=[v,_],!.
+restlast(Last,Rest,Rest,Last) :-
+ length(Last,1),!.
+restlast(Vars1,Rest1,Rest2,Last) :-
+ Vars1=[Var|Vars2],
+ append(Rest1,[Var],Rest3),
+ restlast(Vars2,Rest3,Rest2,Last),!.
+
+
+
+rule(RuleName,1,1,InputVars1,InputVars2,VarList,VarList2,Rule) :-
+
+ random1(N0), N1 is N0/100, length(InputVars1,L), N2 is round(L*N1)-1,
+ (N2>=0->
+ (length(List1,N2), append(List1,List2,InputVars1),
+ List2=[Var|_Rest]);fail),
+
+ rule2(RuleName,Var,VarList,VarList2,Rule,Var1),
+ restlast(InputVars1,[],_,Last), %% Last should be outputs - 2nd last rule?
+ (Var=Last->true;Last=Var1),
+ append(InputVars1,[Var1],InputVars2),!.
+rule(RuleName,1,2,InputVars1,InputVars2,VarList,VarList2,Rule) :-
+
+ random1(N0), N1 is N0/100, length(InputVars1,L), N2 is round(L*N1)-1,
+ (N2>=0->
+ (length(List1,N2), append(List1,List2,InputVars1),
+ List2=[Var|_Rest]);fail),
+
+ rule3(RuleName,Var,VarList,VarList2,Rule,Var1,Var2),
+ restlast(InputVars1,[],_,Last),
+ (Var=Last->true;
+ (Last=Var1->true;Last=Var2)),
+ append(InputVars1,[Var1,Var2],InputVars2),!.
+rule(RuleName,2,0,InputVars,InputVars,VarList,VarList,Rule) :-
+%%writeln([rule(RuleName,2,1,InputVars1,InputVars2,VarList,VarList2,Rule)]),
+ random1(N0), N1 is N0/100, length(InputVars,L), N2 is round(L*N1)-1,
+ (N2>=0->
+ (length(List1,N2), append(List1,List2,InputVars),
+ List2=[Var|_Rest]);fail),
+
+ random1(N01), N11 is N01/100, length(InputVars,L1), N21 is round(L1*N11)-1,
+ (N21>=0->
+ (length(List11,N21), append(List11,List21,InputVars),
+ List21=[Vara|_Rest2]);fail),
+
+ rule6(RuleName,Var,Vara,_VarList,_VarList2,Rule),
+ restlast(InputVars,[],_,Last),
+%%writeln([last,Last]),
+ (Var=Last->true;Vara=Last),!.
+rule(RuleName,2,1,InputVars1,InputVars2,VarList,VarList2,Rule) :-
+%%writeln([rule(RuleName,2,1,InputVars1,InputVars2,VarList,VarList2,Rule)]),
+ random1(N0), N1 is N0/100, length(InputVars1,L), N2 is round(L*N1)-1,
+ (N2>=0->
+ (length(List1,N2), append(List1,List2,InputVars1),
+ List2=[Var|_Rest]);fail),
+
+ random1(N01), N11 is N01/100, length(InputVars1,L1), N21 is round(L1*N11)-1,
+ (N21>=0->
+ (length(List11,N21), append(List11,List21,InputVars1),
+ List21=[Vara|_Rest2]);fail),
+
+ rule4(RuleName,Var,Vara,VarList,VarList2,Rule,Var1),
+ restlast(InputVars1,[],_,Last),
+%%writeln([last,Last]),
+ ((Var=Last->true;Vara=Last)->true;
+ (Last=Var1)),
+%%writeln([var,Var,vara,Vara]),
+ append(InputVars1,[Var1],InputVars2),!.
+rule(RuleName,2,2,InputVars1,InputVars2,VarList,VarList2,Rule) :-
+
+ random1(N0), N1 is N0/100, length(InputVars,L), N2 is round(L*N1)-1,
+ (N2>=0->
+ (length(List1,N2), append(List1,List2,InputVars),
+ List2=[Var|_Rest]);fail),
+
+ random1(N01), N11 is N01/100, length(InputVars,L1), N21 is round(L1*N11)-1,
+ (N21>=0->
+ (length(List11,N21), append(List11,List21,InputVars),
+ List21=[Vara|_Rest2]);fail),
+
+ rule5(RuleName,Var,Vara,VarList,VarList2,Rule,Var1,Var2),
+ restlast(InputVars1,[],_,Last),
+ ((Var=Last->true;Vara=Last)->true;
+ (Last=Var1->true;Last=Var2)), %% make last var2, use different inputs from previous rule, make this line usea version of previous line as well (args from rule before that) - redo rules based on past programming
+ append(InputVars1,[Var1,Var2],InputVars2),!.
+
+
+rule2(RuleName,Var,VarList,VarList2,Rule,Var1) :-
+ var(VarList,Var1,VarList2),
+ Rule=[RuleName,[Var,Var1]],!.%%,
+ %%member(Var,!.
+
+rule3(RuleName,Var,VarList,VarList3,Rule,Var1,Var2) :-
+ var(VarList,Var1,VarList2),
+ var(VarList2,Var2,VarList3),
+ Rule=[RuleName,[Var,Var1,Var2]],!.
+
+rule6(RuleName,Var,Vara,_VarList,_VarList2,Rule) :-
+ Rule=[RuleName,[Var,Vara]],!.
+
+rule4(RuleName,Var,Vara,VarList,VarList2,Rule,Var1) :-
+ var(VarList,Var1,VarList2),
+ Rule=[RuleName,[Var,Vara,Var1]],!.
+
+%%ae be with predicate support also
+rule5(RuleName,Var,Vara,VarList,VarList3,Rule,Var1,Var2) :-
+ var(VarList,Var1,VarList2),
+ var(VarList2,Var2,VarList3),
+ Rule=[RuleName,[Var,Vara,Var1,Var2]],!.
+
+%%var(Item,Var,Vars,Vars) :-
+%% member([Item,Var],Vars).
+var(Vars1,Var1,Vars2) :-
+ length(Vars1,Vars1Length1),
+ Vars1Length2 is Vars1Length1-1,
+ length(Vars3,Vars1Length2),
+ append(Vars3,[Var2],Vars1),
+ Var2=[v,Var21],
+ char_code(Var21,Var2Code1),
+ Var2Code2 is Var2Code1 + 1,
+ var2(Var2Code2,Var1),
+ append(Vars1,[Var1],Vars2),!.
+
+var2(Code,Var1) :-
+ outputvars(OutputVars),
+ totalvars(TotalVars),
+ Code2 is 96+TotalVars,
+ Code =< Code2, %% 122
+ char_code(Var11,Code),
+ Var1=[v,Var11],
+ not(member(Var1,OutputVars)),!.
+var2(Var2Code,Code3) :-
+ Var2Code2 is Var2Code + 1,
+ totalvars(TotalVars),
+ Code2 is 96+TotalVars,
+ Var2Code2 =< Code2,
+ var2(Var2Code2,Code31),
+ Code3=[v,Code31],!.
+
+%% this goes from e.g. c not a to TotalVars
+%% skip over vars, start from a x reassign vars to abc etc
+
+%% if returning 12 from 12345 remove 345 args
+
+%% try lowest possible number of vars first (return shortest program first), then keep on adding number of vars
+%% can elimininate same program both here and in assessment verification
diff --git a/Text-to-Breasonings-master/mindreadtestpsychiatrist.pl b/Text-to-Breasonings-master/mindreadtestpsychiatrist.pl
new file mode 100644
index 0000000000000000000000000000000000000000..6120e7f6f31e7df136a95e2cf740510a37334aae
--- /dev/null
+++ b/Text-to-Breasonings-master/mindreadtestpsychiatrist.pl
@@ -0,0 +1,99 @@
+%% mind read test
+
+%% Make files different for different tests
+
+%% *** Important: initialise program before running for the first time:
+%% N is 1*2*3*5,texttobr2(N). %% 100 As for 1 (turned on)*2 (to and from computer)*3 (rb, itself (already done), graciously give or blame, radio button for graciously give or blame)*5 (5 objects)
+%% N is 1*2*3*5,texttobr2(N). %% 100 As for 1 (turned off)*2 (to and from computer)*3 (rb, itself (already done), graciously give or blame, radio button for graciously give or blame)*5 (5 objects)
+%% also breason out and dot on objects before line above and breason out and dot on when recognising and saying object (with all objects having different breasonings)
+
+%%use_module(library(pio)).
+
+:- use_module(library(date)).
+:- include('texttobr2qb').
+:- include('mindreadtestshared').
+
+sectest(Person1):-
+
+Person1=[Item1a,Item2a,_,_,_,_,_,_,Month2,Day2,_],
+ Person2=[Item1a,Item2a],
+get_time(TS),stamp_date_time(TS,date(_Year,Month1,Day1,_Hour1,_Minute1,_Seconda,_A,_TZ,_False),local),
+
+ ((Month2 is mod(Month1,2)) ->
+ ((Day1 is Day2)->do_c(Month1,Day1,Person2);true);true).
+
+do_c(Month1,Day1,Person):-
+ find_time(Hour,Minutes,Seconds),
+ %% "Do you see (hallucinatory) appearances?"
+ trialy2_6("Yes",R1),
+ trialy2_6("No",R2),
+ R=[R1,R2/**,R3,R4,R5,R6,R7,R8,R9,R10**,R11,R12,R13,R14,R15,R16,R17,R18,R19,R20,R21,R22,R23,R24,R25,R26,R27**/
+ ],
+ sort(R,RA),
+ reverse(RA,RB),
+ RB=[[_,RC]|_Rest1],
+
+ %% "Do you feel depressed?"
+ trialy2_6("Yes",S1),
+ trialy2_6("No",S2),
+ S=[S1,S2/**,S3,S4,S5,S6,S7,S8,S9,S10**,S11,S12,S13,S14,S15,S16,S17,S18,S19,S20,S21,S22,S23,S24,S25,S26,S27**/
+ ],
+ sort(S,SA),
+ reverse(SA,SB),
+ SB=[[_,SC]|_Rest2],
+
+ %% "Do you have headaches?"
+ trialy2_6("Yes",T1),
+ trialy2_6("No",T2),
+ T=[T1,T2/**,T3,T4,T5,T6,T7,T8,T9,T10**,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27**/
+ ],
+ sort(T,TA),
+ reverse(TA,TB),
+ TB=[[_,TC]|_Rest3],
+
+ %% "Do you have a job?"
+ trialy2_6("Yes",U1),
+ trialy2_6("No",U2),
+ U=[U1,U2/**,U3,U4,U5,U6,U7,U8,U9,U10**,U11,U12,U13,U14,U15,U16,U17,U18,U19,U20,U21,U22,U23,U24,U25,U26,U27**/
+ ],
+ sort(U,UA),
+ reverse(UA,UB),
+ UB=[[_,UC]|_Rest4],
+
+ %% "Do you have a business?"
+ trialy2_6("Yes",V1),
+ trialy2_6("No",V2),
+ V=[V1,V2/**,V3,V4,V5,V6,V7,V8,V9,V10**,V11,V12,V13,V14,V15,V16,V17,V18,V19,V20,V21,V22,V23,V24,V25,V26,V27**/
+ ],
+ sort(V,VA),
+ reverse(VA,VB),
+ VB=[[_,VC]|_Rest5],
+
+ %% "Are you doing training?"
+ trialy2_6("Yes",W1),
+ trialy2_6("No",W2),
+ W=[W1,W2/**,W3,W4,W5,W6,W7,W8,W9,W10**,W11,W12,W13,W14,W15,W16,W17,W18,W19,W20,W21,W22,W23,W24,W25,W26,W27**/
+ ],
+ sort(W,WA),
+ reverse(WA,WB),
+ WB=[[_,WC]|_Rest6],
+
+ %% "Do you have a partner?"
+ trialy2_6("Yes",X1),
+ trialy2_6("No",X2),
+ X=[X1,X2/**,X3,X4,X5,X6,X7,X8,X9,X10**,X11,X12,X13,X14,X15,X16,X17,X18,X19,X20,X21,X22,X23,X24,X25,X26,X27**/
+ ],
+ sort(X,XA),
+ reverse(XA,XB),
+ XB=[[_,XC]|_Rest7],
+
+ %% "Do you have sex?"
+ trialy2_6("Yes",Y1),
+ trialy2_6("No",Y2),
+ Y=[Y1,Y2/**,Y3,Y4,Y5,Y6,Y7,Y8,Y9,Y10**,Y11,Y12,Y13,Y14,Y15,Y16,Y17,Y18,Y19,Y20,Y21,Y22,Y23,Y24,Y25,Y26,Y27**/
+ ],
+ sort(Y,YA),
+ reverse(YA,YB),
+ YB=[[_,YC]|_Rest8],
+
+ writeln([Person,[appointment,Month1,Day1,Hour,Minutes,Seconds],["Do you see (hallucinatory) appearances?",RC],["Do you feel depressed?",SC],["Do you have headaches?",TC],["Do you have a job?",UC],["Do you have a business?",VC],["Are you doing training?",WC],["Do you have a partner?",XC],["Do you have sex?",YC]]).
diff --git a/Text-to-Breasonings-master/mindreadtestsec.pl b/Text-to-Breasonings-master/mindreadtestsec.pl
new file mode 100644
index 0000000000000000000000000000000000000000..a8aa9cc3644fa771dd259bc64236a7403a1a4a56
--- /dev/null
+++ b/Text-to-Breasonings-master/mindreadtestsec.pl
@@ -0,0 +1,32 @@
+%% mind read test
+
+%% Make files different for different tests
+
+%% *** Important: initialise program before running for the first time:
+%% N is 1*2*3*5,texttobr2(N). %% 100 As for 1 (turned on)*2 (to and from computer)*3 (rb, itself (already done), graciously give or blame, radio button for graciously give or blame)*5 (5 objects)
+%% N is 1*2*3*5,texttobr2(N). %% 100 As for 1 (turned off)*2 (to and from computer)*3 (rb, itself (already done), graciously give or blame, radio button for graciously give or blame)*5 (5 objects)
+%% also breason out and dot on objects before line above and breason out and dot on when recognising and saying object (with all objects having different breasonings)
+
+
+%%use_module(library(pio)).
+
+:- use_module(library(date)).
+:- include('texttobr2qb').
+:- include('mindreadtestshared').
+
+sectest(Person):-
+ find_time(H,M,S),
+ threats(0,Threats),
+ writeln([Person,H,M,S,Threats,threats]).
+
+threats(Threats1,Threats2):-
+ %% "Given that they are not likely to have meant it and that there is nothing wrong, is there anything else that is wrong?"
+ trialy2_6("Yes",R1),
+ trialy2_6("No",R2),
+ R=[R1,R2/**,R3,R4,R5,R6,R7,R8,R9,R10**,R11,R12,R13,R14,R15,R16,R17,R18,R19,R20,R21,R22,R23,R24,R25,R26,R27**/
+ ],
+ sort(R,RA),
+ reverse(RA,RB),
+ RB=[[_,Answer]|_Rest],
+
+ (Answer="No"->Threats2=Threats1;(Threats3 is Threats1+1,threats(Threats3,Threats2))).
diff --git a/Text-to-Breasonings-master/mindreadtestsecthoughts.pl b/Text-to-Breasonings-master/mindreadtestsecthoughts.pl
new file mode 100644
index 0000000000000000000000000000000000000000..4bc2ca9b089f2ad6794d6e5f7fbd461552e328b2
--- /dev/null
+++ b/Text-to-Breasonings-master/mindreadtestsecthoughts.pl
@@ -0,0 +1,40 @@
+%% mind read test
+
+%% Make files different for different tests
+
+%% *** Important: initialise program before running for the first time:
+%% N is 1*2*3*5,texttobr2(N). %% 100 As for 1 (turned on)*2 (to and from computer)*3 (rb, itself (already done), graciously give or blame, radio button for graciously give or blame)*5 (5 objects)
+%% N is 1*2*3*5,texttobr2(N). %% 100 As for 1 (turned off)*2 (to and from computer)*3 (rb, itself (already done), graciously give or blame, radio button for graciously give or blame)*5 (5 objects)
+%% also breason out and dot on objects before line above and breason out and dot on when recognising and saying object (with all objects having different breasonings)
+
+
+%%use_module(library(pio)).
+
+:- use_module(library(date)).
+:- include('texttobr2qb').
+:- include('mindreadtestshared').
+:- include('../Algorithm-Writer-with-Lists/grammar_logic_to_alg_random').
+
+sectest(Person):-
+ List=[1%%,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29
+ ],
+ findall(B,(member(_A,List),
+ %%find_time(H,M,S),
+ random_member(H,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]),
+ random_member(M,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]),
+ random_member(S,[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]),
+ B=[H,M,S]),C),
+ sort(C,D),
+ findall(_,(member(E,D),writeln1([Person,thought,at,time,E]),
+ thought, %% radio button
+ thought, %% thought
+ thought, %% seen-as version
+ thought, %% comment
+ thought, %% connection
+ thought, %% B
+ thought %% B solution
+
+),_).
+
+thought:-
+ grammar_logic_to_alg1.
diff --git a/Text-to-Breasonings-master/mindreadtestshared.pl b/Text-to-Breasonings-master/mindreadtestshared.pl
new file mode 100644
index 0000000000000000000000000000000000000000..e87d7882723c760ce3297657f8406a919a5daa75
--- /dev/null
+++ b/Text-to-Breasonings-master/mindreadtestshared.pl
@@ -0,0 +1,327 @@
+%% Name, DOB, Date learned, psych appointment month=0 or 1, psych appointment day, thoughts count
+
+sectest0 :-
+meditators(A),
+findall(_,(member(B,A),sectest(B)),_)
+/*
+sectest([first,last,dobd,dobm,doby,daylearned,monthlearned,yearlearned,0,1,16]),
+sectest([first,last,dobd,dobm,doby,daylearned,monthlearned,yearlearned,0,1,16])
+*/.
+
+sectest1 :-
+meditators2(A),
+findall(_,(member(B,A),sectest(B)),_)
+/*
+sectest([first,last,dobd,dobm,doby,daylearned,monthlearned,yearlearned,1,0,16]),
+sectest([first,last,dobd,dobm,doby,daylearned,monthlearned,yearlearned,1,0,16])
+*/
+.
+
+find_time(H,M,S) :-
+ trialy2_15("0",H11),
+ trialy2_15("1",H12),
+ trialy2_15("2",H13),
+ H1L=[H11,H12,H13],
+ sort(H1L,H1A),
+ reverse(H1A,H1B),
+ H1B=[[_,H1]|_Rest1],
+
+ (H1="2"->(
+ trialy2_30("0",H21),
+ trialy2_30("1",H22),
+ trialy2_30("2",H23),
+ trialy2_30("3",H24),
+ H2L=[H21,H22,H23,H24],
+ sort(H2L,H2A),
+ reverse(H2A,H2B),
+ H2B=[[_,H2]|_Rest2]
+ )
+ ;(
+ trialy2_30("0",H21),
+ trialy2_30("1",H22),
+ trialy2_30("2",H23),
+ trialy2_30("3",H24),
+ trialy2_30("4",H25),
+ trialy2_30("5",H26),
+ trialy2_30("6",H27),
+ trialy2_30("7",H28),
+ trialy2_30("8",H29),
+ trialy2_30("9",H210),
+
+ H2L=[H21,H22,H23,H24,H25,
+ H26,H27,H28,H29,H210],
+ sort(H2L,H2A),
+ reverse(H2A,H2B),
+ H2B=[[_,H2]|_Rest2]
+ )),
+
+ trialy2_15("0",M11),
+ trialy2_15("1",M12),
+ trialy2_15("2",M13),
+ trialy2_15("3",M14),
+ trialy2_15("4",M15),
+ trialy2_15("5",M16),
+ M1L=[M11,M12,M13,M14,M15,M16],
+ sort(M1L,M1A),
+ reverse(M1A,M1B),
+ M1B=[[_,M1]|_Rest3],
+
+ trialy2_30("0",M21),
+ trialy2_30("1",M22),
+ trialy2_30("2",M23),
+ trialy2_30("3",M24),
+ trialy2_30("4",M25),
+ trialy2_30("5",M26),
+ trialy2_30("6",M27),
+ trialy2_30("7",M28),
+ trialy2_30("8",M29),
+ trialy2_30("9",M210),
+ M2L=[M21,M22,M23,M24,M25,M26,M27,M28,M29,M210],
+ sort(M2L,M2A),
+ reverse(M2A,M2B),
+ M2B=[[_,M2]|_Rest4],
+
+ trialy2_15("0",S11),
+ trialy2_15("1",S12),
+ trialy2_15("2",S13),
+ trialy2_15("3",S14),
+ trialy2_15("4",S15),
+ trialy2_15("5",S16),
+ S1L=[S11,S12,S13,S14,S15,S16],
+ sort(S1L,S1A),
+ reverse(S1A,S1B),
+ S1B=[[_,S1]|_Rest5],
+
+ trialy2_30("0",S21),
+ trialy2_30("1",S22),
+ trialy2_30("2",S23),
+ trialy2_30("3",S24),
+ trialy2_30("4",S25),
+ trialy2_30("5",S26),
+ trialy2_30("6",S27),
+ trialy2_30("7",S28),
+ trialy2_30("8",S29),
+ trialy2_30("9",S210),
+ S2L=[S21,S22,S23,S24,S25,S26,S27,S28,S29,S210],
+ sort(S2L,S2A),
+ reverse(S2A,S2B),
+ S2B=[[_,S2]|_Rest6],
+
+ string_concat(H1,H2,H),
+ string_concat(M1,M2,M),
+ string_concat(S1,S2,S).
+
+trialy2_6(Label,RA) :-
+ %%writeln([testing,Label]),
+ trialy1(R1),
+ trialy1(R2),
+ trialy1(R3),
+ trialy1(R4),
+ trialy1(R5),
+ trialy1(R6), /**
+ trialy1(R7),
+ trialy1(R8),
+ trialy1(R9),
+ trialy1(R10),
+ trialy1(R11),
+ trialy1(R12),
+ trialy1(R13),
+ trialy1(R14),
+ trialy1(R15),
+ trialy1(R16),
+ trialy1(R17),
+ trialy1(R18),
+ trialy1(R19),
+ trialy1(R20),
+ trialy1(R21),
+ trialy1(R22),
+ trialy1(R23),
+ trialy1(R24),
+ trialy1(R25),
+ trialy1(R26),
+ trialy1(R27),
+ trialy1(R28),
+ trialy1(R29),
+ trialy1(R30), **/
+ R=[R1,R2,R3,R4,R5,R6 /**,R7,R8,R9,R10,
+ R11,R12,R13,R14,R15,R16,R17,R18,R19,R20,
+ R21,R22,R23,R24,R25,R26,R27,R28,R29,R30 **/
+ ],
+ %%(member(true,R)->(
+ aggregate_all(count, member(true,R), Count),
+ RA=[Count,Label].%%,writeln([Label,Count,"/10"]));true).
+
+trialy2_15(Label,RA) :-
+ %%writeln([testing,Label]),
+ trialy1(R1),
+ trialy1(R2),
+ trialy1(R3),
+ trialy1(R4),
+ trialy1(R5),
+ trialy1(R6),
+ trialy1(R7),
+ trialy1(R8),
+ trialy1(R9),
+ trialy1(R10),
+ trialy1(R11),
+ trialy1(R12),
+ trialy1(R13),
+ trialy1(R14),
+ trialy1(R15),
+ /**
+ trialy1(R16),
+ trialy1(R17),
+ trialy1(R18),
+ trialy1(R19),
+ trialy1(R20),
+ trialy1(R21),
+ trialy1(R22),
+ trialy1(R23),
+ trialy1(R24),
+ trialy1(R25),
+ trialy1(R26),
+ trialy1(R27),
+ trialy1(R28),
+ trialy1(R29),
+ trialy1(R30),**/
+ R=[R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,
+ R11,R12,R13,R14,R15 /**,R16,R17,R18,R19,R20,
+ R21,R22,R23,R24,R25,R26,R27,R28,R29,R30
+ **/],
+ %%(member(true,R)->(
+ aggregate_all(count, member(true,R), Count),
+ RA=[Count,Label].%%,writeln([Label,Count,"/10"]));true).
+
+trialy2_30(Label,RA) :-
+ %%writeln([testing,Label]),
+ trialy1(R1),
+ trialy1(R2),
+ trialy1(R3),
+ trialy1(R4),
+ trialy1(R5),
+ trialy1(R6),
+ trialy1(R7),
+ trialy1(R8),
+ trialy1(R9),
+ trialy1(R10),
+ trialy1(R11),
+ trialy1(R12),
+ trialy1(R13),
+ trialy1(R14),
+ trialy1(R15),
+ trialy1(R16),
+ trialy1(R17),
+ trialy1(R18),
+ trialy1(R19),
+ trialy1(R20),
+ trialy1(R21),
+ trialy1(R22),
+ trialy1(R23),
+ trialy1(R24),
+ trialy1(R25),
+ trialy1(R26),
+ trialy1(R27),
+ trialy1(R28),
+ trialy1(R29),
+ trialy1(R30),
+ R=[R1,R2,R3,R4,R5,R6,R7,R8,R9,R10,
+ R11,R12,R13,R14,R15,R16,R17,R18,R19,R20,
+ R21,R22,R23,R24,R25,R26,R27,R28,R29,R30],
+ %%(member(true,R)->(
+ aggregate_all(count, member(true,R), Count),
+ RA=[Count,Label].%%,writeln([Label,Count,"/10"]));true).
+
+
+trialy1(R1) :-
+ %%control11(A1),
+ trial0(A22), %% Control
+ sum(A22,0,S22),
+ mean(S22,A1),
+ trial0(A21), %% Test 1
+ sum(A21,0,S02),
+ mean(S02,A2),
+ (A1>A2->R1=true;R1=fail).
+
+trial0(S3) :- N is 10, trial1(N,[],S),trial01(S,S3).
+trial01(S1,S3) :-
+ sort(S1,S),
+ %%midpoint(S,MP),
+ halves(S,H1,H2),
+ midpoint(H1,Q1),
+ midpoint(H2,Q3),
+ IQR is Q3-Q1,
+ sum(S,0,S02),
+ mean(S02,Mean),
+ furthestfrommean(S,Mean,V),
+ D1 is 1.5*IQR,
+ D2 is V-Mean,
+ (D2>D1->(delete(S,V,S2),trial01(S2,S3));S=S3).
+
+trial1(0,A,A) :- !.
+trial1(N,A,B) :- mindreadtest(S), append(A,[S],A2),
+ N1 is N-1,trial1(N1,A2,B).
+
+midpoint(S,MP) :-
+ length(S,L),
+ A is mod(L,2),
+ (A is 0->
+ (M1 is L/2, M2 is M1+1,N1 is M1-1,N2 is M2-1,length(N11,N1),length(N21,N2),append(N11,[N12|_Rest1],S),append(N21,[N22|_Rest2],S),MP is (N12+N22)/2)
+ ;
+ (L2 is L+1, M1 is L2/2, N1 is M1-1,length(N11,N1),append(N11,[MP|_Rest],S))).
+
+halves(S,H1,H2) :-
+ length(S,L),
+ A is mod(L,2),
+ (A is 0->
+ (M1 is L/2,length(H1,M1),append(H1,H2,S))
+ ;
+ (L2 is L-1,M1 is L2/2,length(H1,M1),append(H1,[_|H2],S))).
+
+sum([],S,S):-!.
+sum(S0,S1,S2) :-
+ S0=[S3|S4],
+ S5 is S1+S3,
+ sum(S4,S5,S2).
+
+mean(Sum,Mean) :-
+ Mean is Sum/2.
+
+furthestfrommean(S,Mean,V) :-
+ absdiffmean(S,Mean,[],D),
+ sort(D,D1),
+ reverse(D1,[[_,V]|_Rest]).
+
+absdiffmean([],_M,D,D) :- !.
+absdiffmean(S,M,D1,D2) :-
+ S=[S1|S2],
+ S3 is abs(S1-M),
+ append(D1,[[S3,S1]],D3),
+ absdiffmean(S2,M,D3,D2).
+
+mindreadtest(Sec) :-
+ %% 250 br for characters to be br out with 10 br each from person to me - do when initial 250 br test done and doing 10 br test
+ %%comment(fiftyastest),
+ %%random(X),X1 is 10*X, X2 is floor(X1), (X2=<2 -> (
+ %%texttobr,writeln(['true test']), %%); %% use breasonings breasoned out by computer for not by me, for job medicine for "me", at last time point
+ %%true), %% leave last time point blank
+ %%**texttobr2(640);true),%% make an A to detect reaction to gracious giving or blame of in following
+ get_time(TimeStamp1),
+ %%phrase_from_file(string(_String), 'file.txt'),
+ texttobr2(2), %% 100 As for answer (must be br before this on same day)
+ %% is gracious giving or blame
+ get_time(TimeStamp2),
+ %%comment(turnoffas),
+ Sec is TimeStamp2 - TimeStamp1.
+
+shell1(Command) :-
+ (bash_command(Command,_)->
+ true;
+ (writeln(["Failed shell1 command: ",Command]),abort)
+ ),!.
+
+bash_command(Command, Output) :-
+ setup_call_cleanup(process_create(path(bash),
+ ['-c', Command],
+ [stdout(pipe(Out))]),
+ read_string(Out, _, Output),
+ close(Out)).
diff --git a/Text-to-Breasonings-master/objecttofinishdict.txt b/Text-to-Breasonings-master/objecttofinishdict.txt
new file mode 100644
index 0000000000000000000000000000000000000000..96c78b1baa6ec9c854b78bfb3b96dc4ff4613f95
--- /dev/null
+++ b/Text-to-Breasonings-master/objecttofinishdict.txt
@@ -0,0 +1 @@
+[[and,line]]
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/objecttopreparedict.txt b/Text-to-Breasonings-master/objecttopreparedict.txt
new file mode 100644
index 0000000000000000000000000000000000000000..daa5d00e22a9615a36153b53ec3253e368cd7d2b
--- /dev/null
+++ b/Text-to-Breasonings-master/objecttopreparedict.txt
@@ -0,0 +1 @@
+[[and,keyboard]]
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/partofroomdict.txt b/Text-to-Breasonings-master/partofroomdict.txt
new file mode 100644
index 0000000000000000000000000000000000000000..05cfe8d2e70468340f8a2047355ec700518fb652
--- /dev/null
+++ b/Text-to-Breasonings-master/partofroomdict.txt
@@ -0,0 +1 @@
+[[and,table]]
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/prompt_meditation b/Text-to-Breasonings-master/prompt_meditation
new file mode 100644
index 0000000000000000000000000000000000000000..ec37bf244ab34cd1f9ec81ed453a19d271883c42
Binary files /dev/null and b/Text-to-Breasonings-master/prompt_meditation differ
diff --git a/Text-to-Breasonings-master/prompt_meditation.pl b/Text-to-Breasonings-master/prompt_meditation.pl
new file mode 100644
index 0000000000000000000000000000000000000000..2cb91927a015b2f3180441b945baafdce3b47f15
--- /dev/null
+++ b/Text-to-Breasonings-master/prompt_meditation.pl
@@ -0,0 +1,6 @@
+:-include('prompt_meditation1.pl').
+main:-catch(prompt_meditation,Err,handle_error(Err)),halt.
+
+handle_error(_Err):-
+ halt(1).
+main :- halt(1).
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/prompt_meditation1.pl b/Text-to-Breasonings-master/prompt_meditation1.pl
new file mode 100644
index 0000000000000000000000000000000000000000..f819be15dcc718d04757984d77ba9cc69ac864ae
--- /dev/null
+++ b/Text-to-Breasonings-master/prompt_meditation1.pl
@@ -0,0 +1,4 @@
+prompt_meditation :-
+repeat,writeln("Please think of 108 arems and 108 friendlinesses, then enter \"y\":"),
+read_string(user_input,"\n\r","\n\r",_,S),
+S="y",!.
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/prompt_question b/Text-to-Breasonings-master/prompt_question
new file mode 100644
index 0000000000000000000000000000000000000000..93954c2fae06fecef03191c4d946541672c524a8
Binary files /dev/null and b/Text-to-Breasonings-master/prompt_question differ
diff --git a/Text-to-Breasonings-master/prompt_question.pl b/Text-to-Breasonings-master/prompt_question.pl
new file mode 100644
index 0000000000000000000000000000000000000000..ed1332c020f8c0925e3a623ae17212ad083672a1
--- /dev/null
+++ b/Text-to-Breasonings-master/prompt_question.pl
@@ -0,0 +1,6 @@
+:-include('prompt_question1.pl').
+main:-catch(prompt_question,Err,handle_error(Err)),halt.
+
+handle_error(_Err):-
+ halt(1).
+main :- halt(1).
diff --git a/Text-to-Breasonings-master/prompt_question1.pl b/Text-to-Breasonings-master/prompt_question1.pl
new file mode 100644
index 0000000000000000000000000000000000000000..b743507816348b447fce3992acb567172c8c735b
--- /dev/null
+++ b/Text-to-Breasonings-master/prompt_question1.pl
@@ -0,0 +1,4 @@
+prompt_question :-
+repeat,writeln("Please ask the future Head of State and the Simulation Co-ordinator for the age freezing medicine, then say \"too\" to each of the following:\n\nA, B, B to B for Reishi Mushroom\nA, B, B to B for Goji\nA, B, B to B for Ginseng\nA, B, B to B for He-Shou-Wu\nA, B, B to B for Gotu Kola\nA, B, B to B for Schisandra\nA, B, B to B for Love head of state\nA, B, B to B for Thank who helped me with immortality medicine, body replacement and anti-ageing\nA, B, B to B for Thank head of state for Reishi Mushroom\nA, B, B to B for Thank head of state for Goji\nA, B, B to B for Thank head of state for Ginseng\nA, B, B to B for Thank head of state for He-Shou-Wu\nA, B, B to B for Thank head of state for Gotu Kola\nA, B, B to B for Thank head of state for Schisandra\nA, B, B to B for Immortality\nA, B, B to B for Body replacement\nA, B, B to B for Anti-ageing medicine\nA, B, B to B for immortality medicine, body replacement and anti-ageing for memory\nA, B, B to B for immortality medicine, body replacement and anti-ageing for thinking\nA, B, B to B for immortality medicine, body replacement and anti-ageing for stopping dementia\nA, B, B to B for immortality medicine, body replacement and anti-ageing for seeing clearly\nA, B, B to B for immortality medicine, body replacement and anti-ageing for muscle relaxation\nA, B, B to B for immortality medicine, body replacement and anti-ageing for Circulatory system / Cardiovascular system\nA, B, B to B for immortality medicine, body replacement and anti-ageing for Digestive system and Excretory system\nA, B, B to B for immortality medicine, body replacement and anti-ageing for Endocrine system\nA, B, B to B for immortality medicine, body replacement and anti-ageing for Integumentary system / Exocrine system\nA, B, B to B for immortality medicine, body replacement and anti-ageing for Immune system and lymphatic system:\nA, B, B to B for immortality medicine, body replacement and anti-ageing for Muscular system\nA, B, B to B for immortality medicine, body replacement and anti-ageing for Nervous system\nA, B, B to B for immortality medicine, body replacement and anti-ageing for Renal system and Urinary system\nA, B, B to B for immortality medicine, body replacement and anti-ageing for Reproductive system\nA, B, B to B for immortality medicine, body replacement and anti-ageing for Respiratory system\nA, B, B to B for immortality medicine, body replacement and anti-ageing for Skeletal System\nA, B, B to B for immortality medicine, body replacement and anti-ageing for antidepressant\nA, B, B to B for immortality medicine, body replacement and anti-ageing for antipsychotic\nA, B, B to B for Other medicines for the body\nA, B, B to B for ginkgo biloba\nA, B, B to B for practicum for others in immortality, etc.\nA, B, B to B for the other As\nA, B, B to B for Thank head of state.\n\nThen enter \"y\":"),
+read_string(user_input,"\n\r","\n\r",_,S),
+S="y",!.
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/random_proof_reader.pl b/Text-to-Breasonings-master/random_proof_reader.pl
new file mode 100644
index 0000000000000000000000000000000000000000..0b78a9d9cd7403d56177886161deeb12a39b53f2
--- /dev/null
+++ b/Text-to-Breasonings-master/random_proof_reader.pl
@@ -0,0 +1,17 @@
+% random_proof_reader.pl
+
+% randomly highlight parts to proofread
+
+:-include('../listprologinterpreter/listprolog.pl').
+main :- open_string_file_s("../Text-to-Breasonings/file.txt",A),
+find_sent(A,A1),
+
+findall([Mark,B],(member(B,A1),((B="\n"->true;B=".")->Mark="";random_member(Mark,[""," *: "]))),List),
+flatten(List,List1),
+foldr(string_concat,List1,S),
+save_file_s("../Text-to-Breasonings/file-rpr-out.txt",S),
+!.
+
+find_sent(A,F) :-
+split_string(A,"\n\r","\n\r",B),findall([B14,"\n"],(member(B11,B),split_string(B11,".",".",B12),findall([B13,"."],member(B13,B12),B1),flatten(B1,B15),(string_concat(_,".",B11)->B14=B15;append(B14,[_],B15))),B2),flatten(B2,B3),((string_concat(_,"\n",A)->true;string_concat(_,"\r",A))->B21=B3;append(B21,[_],B3)),findall(C,(member(C,B21),string_chars(C,D),not(forall(member(E,D),char_type(E,white)))),F),!.
+
diff --git a/Text-to-Breasonings-master/rcaw.paste b/Text-to-Breasonings-master/rcaw.paste
new file mode 100644
index 0000000000000000000000000000000000000000..421a893d0fa7063232d558b8769e60ea271b041f
--- /dev/null
+++ b/Text-to-Breasonings-master/rcaw.paste
@@ -0,0 +1,292 @@
+% member(List,Item) (below) is part of deprecated lpi
+
+%% rcaw.paste - paste this into terminal
+%% before pasting, to avoid conjunctivitis and haemorrhoids, think of two radio buttons put on recordings, put through with prayer, nut and bolt, quantum box prayer 1, 1, 0.5 cm and 1, 1, 0.5 cm.
+
+ssh root@x.x.x.x -p 22
+/** Access your VPS - see https://github.com/luciangreen/listprologinterpreter/blob/master/Setting_up_a_VPS_with_TextToBr.txt
+
+set up shell ssh key terminal mac save public key log in
+https://www.linode.com/docs/security/authentication/use-public-key-authentication-with-ssh/
+does ssh key require password
+https://stackoverflow.com/questions/21095054/ssh-key-still-asking-for-password-and-passphrase
+where is ssh configuration file mac
+http://osxdaily.com/2011/04/05/setup-ssh-config-fie/
+command-shift-. see invisible finder files
+**/
+
+cd ../var/www/yourdomain.com/
+
+%% Meditation and Medicine
+
+swipl -G100g -T20g -L2g
+
+[meditationnoreplace].
+meditation.
+
+halt.
+
+%% Preparation for Mind Reading - or at least gives you 100 done up As
+
+leash(-all),visible(+all).
+protocol("./file.txt").
+trace.
+caw00(off,[n,f],[[[n,append],2,1],[[n,delete],2,1],[[n,head],1,1],[[n,tail],1,1],[[n,member],1,1]],2,8,_InputVarList,_OutputVarList,[],_Program2,Ps).
+notrace,noprotocol.
+
+%% ** Stop - close window x halt (last time I stopped here)
+halt.
+swipl -G100g -T20g -L2g
+['../Text-to-Breasonings/text_to_breasonings.pl'].
+
+[meditatorsanddoctors].
+meditators(Meditators),doctors(Doctors),append(Meditators,Doctors,MeditatorsandDoctors),length(MeditatorsandDoctors,LengthMeditatorsandDoctors),
+
+time((N is 100*4, M is 4000, texttobr2(N,u,u,M),texttobr(N,u,u,M))).
+
+%% Give the meditators, etc. the As.
+
+[texttobr2qb].
+
+[meditatorsanddoctors].
+meditators(Meditators),doctors(Doctors),append(Meditators,Doctors,MeditatorsandDoctors),length(MeditatorsandDoctors,LengthMeditatorsandDoctors1),
+
+LengthMeditatorsandDoctors2 is 3*LengthMeditatorsandDoctors1,
+texttobr2(LengthMeditatorsandDoctors2).
+
+halt.
+
+%% Security
+
+%% First half
+
+swipl -G100g -T20g -L2g
+
+FileName2='./sfile1.txt',
+FileName3='sfile1.txt',
+
+protocol(FileName2).
+notrace.
+
+[mindreadtestsec].
+
+sectest0.
+
+noprotocol.
+
+['../Text-to-Breasonings/text_to_breasonings.pl'].
+
+FileName2='./sfile1.txt',
+FileName3='sfile1.txt',
+
+time((texttobr2(u,FileName3,u,u),texttobr(u,FileName3,u,u))),
+
+atom_concat('echo "" | mutt -s "Security 1" you@yourdomain.com -a ',FileName3,A1),
+
+shell1(A1).
+
+halt.
+
+%% Second half
+
+swipl -G100g -T20g -L2g
+
+FileName2='./sfile2.txt',
+FileName3='sfile2.txt',
+
+protocol(FileName2).
+notrace.
+
+[mindreadtestsec].
+
+sectest1.
+
+noprotocol.
+
+['../Text-to-Breasonings/text_to_breasonings.pl'].
+
+FileName2='./sfile2.txt',
+FileName3='sfile2.txt',
+
+time((texttobr2(u,FileName3,u,u),texttobr(u,FileName3,u,u))),
+
+atom_concat('echo "" | mutt -s "Security 2" you@yourdomain.com -a ',FileName3,A1),
+
+shell1(A1).
+
+halt.
+
+%% Give the meditators, etc. the As.
+
+swipl -G100g -T20g -L2g
+
+[mindreadtestsec].
+
+[texttobr2qb].
+
+[meditatorsanddoctors].
+meditators(Meditators),doctors(Doctors),append(Meditators,Doctors,MeditatorsandDoctors),length(MeditatorsandDoctors,LengthMeditatorsandDoctors1),
+
+LengthMeditatorsandDoctors2 is 2*LengthMeditatorsandDoctors1,
+texttobr2(LengthMeditatorsandDoctors2).
+
+halt.
+
+%% Meditation
+
+%% andrew - duplicate for others from "andrew"
+swipl -G100g -T20g -L2g
+[listprolog].
+[mindreadingcaw].
+caw00(off,[n,f],[[[n,append],2,1],[[n,delete],2,1],[[n,head],1,1],[[n,tail],1,1],[[n,member],1,1]],2,8,_InputVarList,_OutputVarList,[],_Program2,Ps),Ps=[[Query,Functions,_Result1]|_Rest],leash(-all),visible(+all),protocol("./andrew.txt"),trace,interpret(off,Query,Functions,_Result2),notrace,noprotocol.
+halt.
+swipl -G100g -T20g -L2g
+['../Text-to-Breasonings/text_to_breasonings.pl'].
+time((N is 2, M is 8000, texttobr2(N,"andrew.txt",u,M),texttobr(N,"andrew.txt",u,M))).
+%% Give the meditator the As.
+[texttobr2qb].
+texttobr2(3). %% Dot on As, GG,B,BB and dot on
+atom_concat('echo "" | mutt -s "Meditations andrew" you@yourdomain.com -a andrew.txt','',A1),
+shell1(A1).
+halt.
+
+
+%% Psychiatrist
+
+%% First half
+
+swipl -G100g -T20g -L2g
+
+FileName2='./pfile1.txt',
+FileName3='pfile1.txt',
+
+protocol(FileName2).
+notrace.
+
+[mindreadtestpsychiatrist].
+
+sectest0.
+
+noprotocol.
+
+['../Text-to-Breasonings/text_to_breasonings.pl'].
+
+FileName2='./pfile1.txt',
+FileName3='pfile1.txt',
+
+time((texttobr2(u,FileName3,u,u),texttobr(u,FileName3,u,u))),
+
+atom_concat('echo "" | mutt -s "Psychiatric Report 1" your@yourdomain -a ',FileName3,A1),
+
+shell1(A1).
+
+halt.
+
+%% Second half
+
+swipl -G100g -T20g -L2g
+
+FileName2='./pfile2.txt',
+FileName3='pfile2.txt',
+
+protocol(FileName2).
+notrace.
+
+[mindreadtestpsychiatrist].
+
+sectest1.
+
+noprotocol.
+
+['../Text-to-Breasonings/text_to_breasonings.pl'].
+
+FileName2='./pfile2.txt',
+FileName3='pfile2.txt',
+
+time((texttobr2(u,FileName3,u,u),texttobr(u,FileName3,u,u))),
+
+atom_concat('echo "" | mutt -s "Psychiatric Report 2" you@yourdomain -a ',FileName3,A1),
+
+shell1(A1).
+
+halt.
+
+%% Give the meditators, etc. the As.
+
+swipl -G100g -T20g -L2g
+
+[mindreadtestsec].
+
+[texttobr2qb].
+
+[meditatorsanddoctors].
+meditators(Meditators),doctors(Doctors),append(Meditators,Doctors,MeditatorsandDoctors),length(MeditatorsandDoctors,LengthMeditatorsandDoctors1),
+
+LengthMeditatorsandDoctors2 is 2*LengthMeditatorsandDoctors1,
+texttobr2(LengthMeditatorsandDoctors2).
+
+halt.
+
+
+%% Thoughts
+
+%% First half
+
+swipl -G100g -T20g -L2g
+
+FileName2='./tfile1.txt',
+FileName3='tfile1.txt',
+
+protocol(FileName2).
+notrace.
+
+[mindreadtestsecthoughts].
+
+sectest0.
+
+noprotocol.
+
+['../Text-to-Breasonings/text_to_breasonings.pl'].
+
+FileName2='./tfile1.txt',
+FileName3='tfile1.txt',
+
+time((texttobr2(u,FileName3,u,u),texttobr(u,FileName3,u,u))),
+
+atom_concat('echo "" | mutt -s "Thoughts 1" luciangreen@lucianacademy.com -a ',FileName3,A1),
+
+shell1(A1).
+
+halt.
+
+%% Second half
+
+swipl -G100g -T20g -L2g
+
+FileName2='./sfile2.txt',
+FileName3='sfile2.txt',
+
+protocol(FileName2).
+notrace.
+
+[mindreadtestsecthoughts].
+
+sectest1.
+
+noprotocol.
+
+['../Text-to-Breasonings/text_to_breasonings.pl'].
+
+FileName2='./sfile2.txt',
+FileName3='sfile2.txt',
+
+time((texttobr2(u,FileName3,u,u),texttobr(u,FileName3,u,u))),
+
+atom_concat('echo "" | mutt -s "Thoughts 2" luciangreen@lucianacademy.com -a ',FileName3,A1),
+
+shell1(A1).
+
+halt.
+
+
+logout
diff --git a/Text-to-Breasonings-master/roomdict.txt b/Text-to-Breasonings-master/roomdict.txt
new file mode 100644
index 0000000000000000000000000000000000000000..b4ef9b66cf7f191ff9d39d2a4eb9c1be5d006a6e
--- /dev/null
+++ b/Text-to-Breasonings-master/roomdict.txt
@@ -0,0 +1 @@
+[[and,office]]
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/sectest_producer.pl b/Text-to-Breasonings-master/sectest_producer.pl
new file mode 100644
index 0000000000000000000000000000000000000000..ca351a53c140eb865351498a6c301c300ff7b780
--- /dev/null
+++ b/Text-to-Breasonings-master/sectest_producer.pl
@@ -0,0 +1,77 @@
+% place in gh/t2b (not in private2/t2b)
+
+%% mind read test
+
+%% Make files different for different tests
+
+%% *** Important: initialise program before running for the first time:
+%% N is 1*2*3*5,texttobr2(N). %% 100 As for 1 (turned on)*2 (to and from computer)*3 (rb, itself (already done), graciously give or blame, radio button for graciously give or blame)*5 (5 objects)
+%% N is 1*2*3*5,texttobr2(N). %% 100 As for 1 (turned off)*2 (to and from computer)*3 (rb, itself (already done), graciously give or blame, radio button for graciously give or blame)*5 (5 objects)
+%% also breason out and dot on objects before line above and breason out and dot on when recognising and saying object (with all objects having different breasonings)
+
+
+%%use_module(library(pio)).
+
+:- use_module(library(date)).
+:- include('../Text-to-Breasonings/text_to_breasonings.pl').
+:- include('../mindreader/mindreadtestshared').
+:-include('../listprologinterpreter/la_strings_string.pl'). %**** change path on server
+:-include('../listprologinterpreter/la_maths.pl'). %**** change path on server
+:-include('../Text-to-Breasonings/text_to_breasonings.pl').
+:-include('../Algorithm-Writer-with-Lists/grammar_logic_to_alg.pl').
+
+/*
+- for each customer, each time
+- medit and medic each given 250
+- 3 points each given 250
+- my opinion - + if they have finished, are happy
+*/
+
+sectest_p:-
+ %random(X),N is round(100*X),
+
+ %phrase_from_file_s(string([N,_]), "a_tally.txt"),
+ %string_codes(String02b,String00a),
+ %atom_to_term(String00a,[N,_],[]),
+
+numbers(2,1,[],Ns),
+%writeln(N),
+findall(_,(member(N1,Ns),
+
+ find_time1(H,M,S),
+ politeness(0,Medit),
+ politeness(0,Medic),
+ politeness(0,Three_points),
+ politeness(0,My_opinion), % if there's nothing else wrong, is there anything else wrong?
+ % no_death(0,Threats2), % medits for life
+ writeln([N1,H,M,S,Medit,medit]),
+ writeln([N1,H,M,S,Medic,medic]),
+ writeln([N1,H,M,S,Three_points,three_points]),
+ writeln([N1,H,M,S,My_opinion,my_opinion]),
+
+
+ Br=16000, W=80,
+ grammar_logic_to_alg1("I am happy.",Br,GL_out1),
+ term_to_atom(GL_out1,GL_out2),
+ string_atom(GL_out,GL_out2),
+ texttobr2(u,u,GL_out,Br,false,false,false,false,false,false,W),
+ texttobr(u,u,GL_out,Br)
+
+
+
+ ),_).%,Threats2,no_death]).
+
+find_time1(H,M,S) :-
+ find_time(H,M,S),!.
+
+politeness(Threats1,Threats2):-
+ %% "Given that we are interested in friendliness in primary school, secondary school and university, is there anything else?"
+ trialy2_6("Yes",R1),
+ trialy2_6("No",R2),
+ R=[R1,R2/**,R3,R4,R5,R6,R7,R8,R9,R10**,R11,R12,R13,R14,R15,R16,R17,R18,R19,R20,R21,R22,R23,R24,R25,R26,R27**/
+ ],
+ sort(R,RA),
+ reverse(RA,RB),
+ RB=[[_,Answer]|_Rest],
+
+ (Answer="No"->Threats2=Threats1;(Threats3 is Threats1+1,politeness(Threats3,Threats2))),!.
diff --git a/Text-to-Breasonings-master/single_meditation b/Text-to-Breasonings-master/single_meditation
new file mode 100644
index 0000000000000000000000000000000000000000..a2323c08407bbb2e62e66597c670ccfbdee611fe
Binary files /dev/null and b/Text-to-Breasonings-master/single_meditation differ
diff --git a/Text-to-Breasonings-master/single_meditation.pl b/Text-to-Breasonings-master/single_meditation.pl
new file mode 100644
index 0000000000000000000000000000000000000000..a9fcbf25694441076b27ab62b7f535fa6a270385
--- /dev/null
+++ b/Text-to-Breasonings-master/single_meditation.pl
@@ -0,0 +1,2 @@
+:-include('text_to_breasonings.pl').
+main:-N is 108*2,texttobr2_1(N).
diff --git a/Text-to-Breasonings-master/t2b4 b/Text-to-Breasonings-master/t2b4
new file mode 100644
index 0000000000000000000000000000000000000000..b6bc2100d275134da1db37979e8d6894bf704665
Binary files /dev/null and b/Text-to-Breasonings-master/t2b4 differ
diff --git a/Text-to-Breasonings-master/text_to_breasonings.pl b/Text-to-Breasonings-master/text_to_breasonings.pl
new file mode 100644
index 0000000000000000000000000000000000000000..776f354addf82e36a528b9f7efa6ab054fc606a5
--- /dev/null
+++ b/Text-to-Breasonings-master/text_to_breasonings.pl
@@ -0,0 +1,10 @@
+:-include('../Text-to-Breasonings/texttobr.pl').
+:-include('../Text-to-Breasonings/texttobrall2_reading.pl').
+
+:- include('../listprologinterpreter/listprolog').
+:- include('../Text-to-Breasonings/texttobr2qb').
+%%:- include('texttobrqb').
+%:- include('../listprologinterpreter/la_strings').
+%:- include('mergetexttobrdict').
+%:- include('edit.pl').
+%:- include('meditatorsanddoctors').
diff --git a/Text-to-Breasonings-master/text_to_breasonings3.pl b/Text-to-Breasonings-master/text_to_breasonings3.pl
new file mode 100644
index 0000000000000000000000000000000000000000..7b1aae2cd314b315ca0e580719e31fdba392eb15
--- /dev/null
+++ b/Text-to-Breasonings-master/text_to_breasonings3.pl
@@ -0,0 +1,10 @@
+:-include('../Text-to-Breasonings/texttobr.pl').
+:-include('../Text-to-Breasonings/texttobrall2_reading3.pl').
+
+:- include('../listprologinterpreter/listprolog').
+:- include('../Text-to-Breasonings/texttobr2qb').
+%%:- include('texttobrqb').
+%:- include('../listprologinterpreter/la_strings').
+%:- include('mergetexttobrdict').
+%:- include('edit.pl').
+%:- include('meditatorsanddoctors').
diff --git a/Text-to-Breasonings-master/text_to_breasonings4.pl b/Text-to-Breasonings-master/text_to_breasonings4.pl
new file mode 100644
index 0000000000000000000000000000000000000000..b4f088aa18a02f1bac305802b9fe6bb85f47ba56
--- /dev/null
+++ b/Text-to-Breasonings-master/text_to_breasonings4.pl
@@ -0,0 +1,10 @@
+:-include('../Text-to-Breasonings/texttobr.pl').
+:-include('../Text-to-Breasonings/texttobrall2_reading4.pl').
+
+:- include('../listprologinterpreter/listprolog').
+:- include('../Text-to-Breasonings/texttobr2qb').
+%%:- include('texttobrqb').
+%:- include('../listprologinterpreter/la_strings').
+%:- include('mergetexttobrdict').
+%:- include('edit.pl').
+%:- include('meditatorsanddoctors').
diff --git a/Text-to-Breasonings-master/texttobr.pl b/Text-to-Breasonings-master/texttobr.pl
new file mode 100644
index 0000000000000000000000000000000000000000..73d600f855884ffe81c9371355afe384a695a2eb
--- /dev/null
+++ b/Text-to-Breasonings-master/texttobr.pl
@@ -0,0 +1,134 @@
+%% use_module(library(pio)). In la_strings
+
+
+%% texttobr - converts file stream to list of 3D dimensions of each character
+
+texttobr(N1,Filex1,Stringx1,M1) :-
+
+ ((number(N1),N=N1)->true;
+ (N1=u,N=1)),
+
+ ((Filex1=u,Filex="file.txt")->true;
+ Filex=Filex1),
+
+ ((number(M1),M=M1)->true;
+ M=all), %% If m1 is undefined or all then m=all
+
+ texttobrc1(N,Filex,Stringx1,M),!.
+
+texttobrc1(0,_,_,_) :- !.
+texttobrc1(N1,Filex,Stringx1,BreasoningLimit) :-
+ texttobrc2(Filex,Stringx1,BreasoningLimit),
+ N2 is N1-1,
+ texttobrc1(N2,Filex,Stringx1,BreasoningLimit).
+
+texttobrc2(Filex,Stringx1,M) :-
+
+ ((Stringx1=u,
+ phrase_from_file_s(string2(String1), Filex))->true;
+ string_codes(Stringx1,String1)),
+
+ ((number(M),length(String,M),
+ append(String,_,String1))->true;
+ String=String1),
+
+ br(String),!.
+
+string2(String) --> list2(String).
+list2([]) --> [].
+list2([L|Ls]) --> [L], list2(Ls).
+
+br([]) :-
+ !.
+br([Code|Codes]) :-
+ char_code(Character,Code),
+ br(Character,_X,_Y,_Z),
+ brth2(Character,_Brth),
+ %%writeln([Character]),%%,X,Y,Z]), %%
+ %%write(' '),
+ br(Codes).
+brth2(_,sweetinvincibleandprayedfor).
+br('A',1,1.5,0).
+br('B',1,1.5,0).
+br('C',1,1.5,0).
+br('D',1,1.5,0).
+br('E',1,1.5,0).
+br('F',1,1.5,0).
+br('G',1,1.5,0).
+br('H',1,1.5,0).
+br('I',1,1.5,0).
+br('J',1,1.5,0).
+br('K',1,1.5,0).
+br('L',1,1.5,0).
+br('M',1,1.5,0).
+br('N',1,1.5,0).
+br('O',1,1.5,0).
+br('P',1,1.5,0).
+br('Q',1,1.5,0).
+br('R',1,1.5,0).
+br('S',1,1.5,0).
+br('T',1,1.5,0).
+br('U',1,1.5,0).
+br('V',1,1.5,0).
+br('W',1,1.5,0).
+br('X',1,1.5,0).
+br('Y',1,1.5,0).
+br('Z',1,1.5,0).
+br('a',1,1,0).
+br('b',1,1.5,0).
+br('c',1,1,0).
+br('d',1,1.5,0).
+br('e',1,1,0).
+br('f',1,2.5,0).
+br('g',1,2,0).
+br('h',1,1.5,0).
+br('i',1,1.5,0).
+br('j',1,2.5,0).
+br('k',1,1.5,0).
+br('l',1,1.5,0).
+br('m',1,1,0).
+br('n',1,1,0).
+br('o',1,1,0).
+br('p',1,2,0).
+br('q',1,2,0).
+br('r',1,1,0).
+br('s',1,1,0).
+br('t',1,1.5,0).
+br('u',1,1,0).
+br('v',1,1,0).
+br('w',1,1,0).
+br('x',1,1,0).
+br('y',1,2,0).
+br('z',1,1,0).
+
+br('?',1,1.5,0).
+br('-',1,1,0).
+br(' ',1,1,0).
+br(',',1,1,0).
+br('(',1,1.5,0).
+br(')',1,1.5,0).
+br('|',1,2.5,0).
+br('.',1,1,0).
+br(':',1,1,0).
+br('_',1,1,0).
+br('\'',1,1.5,0).
+br('[',1,1.5,0).
+br(']',1,1.5,0).
+br('<',1,1,0).
+br('>',1,1,0).
+
+br('0',1,1.5,0).
+br('1',1,1.5,0).
+br('2',1,1.5,0).
+br('3',1,1.5,0).
+br('4',1,1.5,0).
+br('5',1,1.5,0).
+br('6',1,1.5,0).
+br('7',1,1.5,0).
+br('8',1,1.5,0).
+br('9',1,1.5,0).
+
+br('{',1,1.5,0).
+br('}',1,1.5,0).
+br('\n',1,1,0).
+br(_,1,1,0).
diff --git a/Text-to-Breasonings-master/texttobr2_square b/Text-to-Breasonings-master/texttobr2_square
new file mode 100644
index 0000000000000000000000000000000000000000..5492426c7835ca90adaa4e9497dc701569ee6bfe
Binary files /dev/null and b/Text-to-Breasonings-master/texttobr2_square differ
diff --git a/Text-to-Breasonings-master/texttobr2_square.pl b/Text-to-Breasonings-master/texttobr2_square.pl
new file mode 100644
index 0000000000000000000000000000000000000000..d4f18c9517cb2f1ec28c34301f9502eb0ac23adb
--- /dev/null
+++ b/Text-to-Breasonings-master/texttobr2_square.pl
@@ -0,0 +1,6 @@
+:-include('text_to_breasonings.pl').
+main:-catch((texttobr2_1(1),texttobr2(4,u,"square",u)),Err,handle_error(Err)),halt.
+
+handle_error(_Err):-
+ halt(1).
+main :- halt(1).
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/texttobr2qb.pl b/Text-to-Breasonings-master/texttobr2qb.pl
new file mode 100644
index 0000000000000000000000000000000000000000..7f17746b7f9c9c6c32393187fa7a44e8c66ac2e4
--- /dev/null
+++ b/Text-to-Breasonings-master/texttobr2qb.pl
@@ -0,0 +1,29 @@
+%% 250 breasonings
+
+texttobr2 :-
+br1([[a,1,1.5,0],[about,1,1,0],[ache,1,0,0],[after,1,1,0],[all,1,1.5,0],[an,1,1.5,0],[and,1,1,0],[appearances,5,0,5],[apple,5,5,5],[are,1,1,0],[area,5,5,0],[argument,1,1.5,0],[as,1,1,0],[asanas,180,50,1],[at,1,1,0],[ate,15,2,1],[avoid,1,1,0],[b,1,1,1],[bacteria,2,1,1],[based,5,5,1],[be,50,30,180],[before,1,1,0],[being,50,30,180],[binding,1,1,0],[blocking,1,1,1],[bolt,2,1,1],[box,1,1,1],[breakfast,10,10,1],[breasoned,5,5,5],[breasoning,5,5,5],[breasonings,5,5,5],[by,1,1,0],[chapter,10,15,1],[clear,1,1,0],[colds,1,1,1],[comfort,180,50,30],[comfortable,50,50,100],[complexes,1,1,1],[conception,50,14,8],[connected,1,1,0],[correctness,1,1,0],[day,10,10,10],[depression,1,1,0],[details,1,1,1],[did,1,1,0],[do,50,30,180],[dotted,1,1,0],[down,1,1,0],[drinking,5,5,5],[during,1,1.5,0],[each,1,1,0],[earned,1,1.5,0],[education,50,30,180],[effects,1,1.5,0],[elderberries,1,1,1],[ensure,1,1,0],[excess,1,1,1],[exercises,10,10,1],[f,5,5,5],[feeling,1,1,0],[felt,1,1,0],[first,1,1.5,0],[flu,1,1,0],[food,2,1,1],[for,1,1,0],[from,1,1,0],[fruits,1,1,1],[function,1,1.5,0],[gaffer,10,10,1],[gave,1,1,1],[glasses,15,11,3],[god,50,30,180],[grade,1,1.5,0],[grains,1,1,1],[had,1,1,0],[hallucinogenic,1,1,0],[happiness,1,1,0],[happy,1,1,0],[have,5,5,5],[head,15,20,23],[headache,1,1,0],[headaches,1,1,0],[health,50,30,180],[healthy,50,30,180],[help,5,5,0],[helped,50,30,180],[high,1,1.5,0],[hills,5,5,2],[honey,10,10,10],[i,50,30,180],[imagery,5,5,0],[in,1,1,0],[incompatibility,1,1,0],[interpretation,20,30,0],[it,1,1,0],[keep,1,1,0],[laughter,1,1.5,0],[maintain,1,1,0],[maintaining,1,1,0],[master,50,30,180],[mind,3,4,4],[minutes,20,30,0],[mistake,1,1,0],[muscle,1,1,1],[muscles,1,1,1],[music,1,1,0],[must,1,1,0],[my,50,30,180],[namaskar,15,10,23],[neck,15,15,10],[next,1,1,0],[nietzsche,50,30,180],[no,1,1,0],[noticed,50,30,180],[nut,1,1,0],[nuts,1,1,1],[of,1,1,0],[off,1,1.5,0],[on,1,1,0],[one,1,1.5,0],[organs,1,1,1],[out,1,1,0],[over,1,1,0],[part,1,1,1],[peace,1,1.5,0],[perfect,1,1.5,0],[performed,50,30,180],[performing,50,30,250],[philosophy,10,20,1],[physiology,50,30,180],[pimple,1,1,0],[pm,5,5,5],[poem,1,1.5,0],[positive,1,1,0],[pot,5,5,10],[prayer,5,5,0],[prepared,1,1,0],[prevent,1,1,0],[prevented,1,1,0],[preventing,1,1,0],[prevention,1,1,0],[problems,1,1.5,0],[product,1,150,1],[products,5,5,5],[psychiatry,50,30,180],[psychology,2,2,0],[quality,1,1.5,0],[quantum,1,1,0],[read,15,1,20],[relax,180,50,30],[relaxed,180,50,30],[remain,1,1.5,0],[require,1,1,0],[room,500,400,300],[s,1,1,0],[safe,1,1.5,0],[sales,1,1.5,0],[same,1,1,0],[schizophrenia,1,1,0],[second,1,1.5,0],[see,1,0,1],[seek,1,1,0],[sell,5,3,0],[sets,5,1,0],[sex,1,1.5,0],[short,1,1,0],[single,1,1.5,0],[sites,20,0,30],[sitting,50,70,150],[sized,30,1,0],[skin,1,1,0],[sleep,180,50,30],[slices,2,2,2],[so,1,1,0],[societal,50,30,180],[some,1,1,0],[spine,1,1,10],[spiritual,50,30,180],[state,1,1.5,0],[stated,20,30,0],[stating,50,30,180],[status,1,1.5,0],[stop,5,1,15],[straight,1,1,0],[strawberry,1,1,1],[structure,1,1,1],[studied,50,30,180],[study,100,50,100],[studying,50,30,180],[subject,50,30,180],[successful,1,1.5,0],[surya,1,1.5,0],[sutra,5,1.5,0],[table,7,5,0],[tape,10,10,1],[task,15,2.5,0],[technique,1,1,0],[test,20,20,0],[text,20,30,0],[that,1,1,0],[the,1,1,0],[them,50,30,180],[then,1,1,0],[they,50,30,180],[thinking,1,1.5,0],[third,1,1.5,0],[this,1,1,0],[thoughts,1,1,0],[through,1,1,0],[tied,1,1,0],[time,1,1.5,0],[to,1,1,0],[together,1,1,0],[touch,1,1,0],[train,1,1,1],[trains,50,30,180],[travel,10,3,0],[treating,20,15,3],[turn,1,1,0],[two,1,1.5,0],[university,100,75,3],[unwanted,1,1,0],[up,1,1,0],[upasana,100,75,100],[used,1,1,0],[using,1,1,0],[var,1,1,1],[vegetables,5,5,5],[videos,5,0,3],[view,5,5,5],[virality,1,1,0],[viruses,1,1,2],[vitamin,1,1,1],[walks,100,500,0],[wanted,15,20,3],[warm,1,1,0],[was,1,1,0],[water,5,5,5],[way,1,1,0],[ways,50,100,0],[well,50,30,180],[where,1,1,0],[whole,1,1,1],[with,1,1,0],[without,1,1,0],[words,5,7,1],[write,15,1,1],[writing,5,5,0],[wrote,15,1,1],[years,3,1,0]]).
+
+br1([[a,1,1.5,0],[about,1,1,0],[ache,1,0,0],[after,1,1,0],[all,1,1.5,0],[an,1,1.5,0],[and,1,1,0],[appearances,5,0,5],[apple,5,5,5],[are,1,1,0],[area,5,5,0],[argument,1,1.5,0],[as,1,1,0],[asanas,180,50,1],[at,1,1,0],[ate,15,2,1],[avoid,1,1,0],[b,1,1,1],[bacteria,2,1,1],[based,5,5,1],[be,50,30,180],[before,1,1,0],[being,50,30,180],[binding,1,1,0],[blocking,1,1,1],[bolt,2,1,1],[box,1,1,1],[breakfast,10,10,1],[breasoned,5,5,5],[breasoning,5,5,5],[breasonings,5,5,5],[by,1,1,0],[chapter,10,15,1],[clear,1,1,0],[colds,1,1,1],[comfort,180,50,30],[comfortable,50,50,100],[complexes,1,1,1],[conception,50,14,8],[connected,1,1,0],[correctness,1,1,0],[day,10,10,10],[depression,1,1,0],[details,1,1,1],[did,1,1,0],[do,50,30,180],[dotted,1,1,0],[down,1,1,0],[drinking,5,5,5],[during,1,1.5,0],[each,1,1,0],[earned,1,1.5,0],[education,50,30,180],[effects,1,1.5,0],[elderberries,1,1,1],[ensure,1,1,0],[excess,1,1,1],[exercises,10,10,1],[f,5,5,5],[feeling,1,1,0],[felt,1,1,0],[first,1,1.5,0],[flu,1,1,0],[food,2,1,1],[for,1,1,0],[from,1,1,0],[fruits,1,1,1],[function,1,1.5,0],[gaffer,10,10,1],[gave,1,1,1],[glasses,15,11,3],[god,50,30,180],[grade,1,1.5,0],[grains,1,1,1],[had,1,1,0],[hallucinogenic,1,1,0],[happiness,1,1,0],[happy,1,1,0],[have,5,5,5],[head,15,20,23],[headache,1,1,0],[headaches,1,1,0],[health,50,30,180],[healthy,50,30,180],[help,5,5,0],[helped,50,30,180],[high,1,1.5,0],[hills,5,5,2],[honey,10,10,10],[i,50,30,180],[imagery,5,5,0],[in,1,1,0],[incompatibility,1,1,0],[interpretation,20,30,0],[it,1,1,0],[keep,1,1,0],[laughter,1,1.5,0],[maintain,1,1,0],[maintaining,1,1,0],[master,50,30,180],[mind,3,4,4],[minutes,20,30,0],[mistake,1,1,0],[muscle,1,1,1],[muscles,1,1,1],[music,1,1,0],[must,1,1,0],[my,50,30,180],[namaskar,15,10,23],[neck,15,15,10],[next,1,1,0],[nietzsche,50,30,180],[no,1,1,0],[noticed,50,30,180],[nut,1,1,0],[nuts,1,1,1],[of,1,1,0],[off,1,1.5,0],[on,1,1,0],[one,1,1.5,0],[organs,1,1,1],[out,1,1,0],[over,1,1,0],[part,1,1,1],[peace,1,1.5,0],[perfect,1,1.5,0],[performed,50,30,180],[performing,50,30,250],[philosophy,10,20,1],[physiology,50,30,180],[pimple,1,1,0],[pm,5,5,5],[poem,1,1.5,0],[positive,1,1,0],[pot,5,5,10],[prayer,5,5,0],[prepared,1,1,0],[prevent,1,1,0],[prevented,1,1,0],[preventing,1,1,0],[prevention,1,1,0],[problems,1,1.5,0],[product,1,150,1],[products,5,5,5],[psychiatry,50,30,180],[psychology,2,2,0],[quality,1,1.5,0],[quantum,1,1,0],[read,15,1,20],[relax,180,50,30],[relaxed,180,50,30],[remain,1,1.5,0],[require,1,1,0],[room,500,400,300],[s,1,1,0],[safe,1,1.5,0],[sales,1,1.5,0],[same,1,1,0],[schizophrenia,1,1,0],[second,1,1.5,0],[see,1,0,1],[seek,1,1,0],[sell,5,3,0],[sets,5,1,0],[sex,1,1.5,0],[short,1,1,0],[single,1,1.5,0],[sites,20,0,30],[sitting,50,70,150],[sized,30,1,0],[skin,1,1,0],[sleep,180,50,30],[slices,2,2,2],[so,1,1,0],[societal,50,30,180],[some,1,1,0],[spine,1,1,10],[spiritual,50,30,180],[state,1,1.5,0],[stated,20,30,0],[stating,50,30,180],[status,1,1.5,0],[stop,5,1,15],[straight,1,1,0],[strawberry,1,1,1],[structure,1,1,1],[studied,50,30,180],[study,100,50,100],[studying,50,30,180],[subject,50,30,180],[successful,1,1.5,0],[surya,1,1.5,0],[sutra,5,1.5,0],[table,7,5,0],[tape,10,10,1],[task,15,2.5,0],[technique,1,1,0],[test,20,20,0],[text,20,30,0],[that,1,1,0],[the,1,1,0],[them,50,30,180],[then,1,1,0],[they,50,30,180],[thinking,1,1.5,0],[third,1,1.5,0],[this,1,1,0],[thoughts,1,1,0],[through,1,1,0],[tied,1,1,0],[time,1,1.5,0],[to,1,1,0],[together,1,1,0],[touch,1,1,0],[train,1,1,1],[trains,50,30,180],[travel,10,3,0],[treating,20,15,3],[turn,1,1,0],[two,1,1.5,0],[university,100,75,3],[unwanted,1,1,0],[up,1,1,0],[upasana,100,75,100],[used,1,1,0],[using,1,1,0],[var,1,1,1],[vegetables,5,5,5],[videos,5,0,3],[view,5,5,5],[virality,1,1,0],[viruses,1,1,2],[vitamin,1,1,1],[walks,100,500,0],[wanted,15,20,3],[warm,1,1,0],[was,1,1,0],[water,5,5,5],[way,1,1,0],[ways,50,100,0],[well,50,30,180],[where,1,1,0],[whole,1,1,1],[with,1,1,0],[without,1,1,0],[words,5,7,1],[write,15,1,1],[writing,5,5,0],[wrote,15,1,1],[years,3,1,0]]).
+
+texttobr2(A) :- A1 is 1*A, texttobr2_2(A1).
+texttobr2_2(0):-!.
+texttobr2_2(N1):-
+ texttobr2,N2 is N1-1,texttobr2_2(N2),!.
+
+texttobr2_a(A,B) :- A1 is 1*A, texttobr2_a2(A1,B).
+
+texttobr2_a2(0,_):-!.
+texttobr2_a2(N1,A):-
+ texttobr2(A,_),N2 is N1-1,texttobr2_a2(N2,A),!.
+
+texttobr2_1(A) :- A1 is 1*A, texttobr2_12(A1).
+
+texttobr2_12(0):-!.
+texttobr2_12(N1):-
+ texttobr2,texttobr2(meditation,_),texttobr2(medicine,_),texttobr2(pedagogy,_),N2 is N1-1,texttobr2_12(N2),!.
+
+texttobr2(meditation,[[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[a,1,1.5,0],[dash,1,1,0],[person,50,30,180],[person,50,30,180],[hair,1,0,0],[person,50,30,180],[nail,0.3,0.3,3],[person,50,30,180],[person,50,30,180],[square,1,1,0],[a,1,1.5,0],[person,50,30,180],[apple,5,5,5],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[down,1,1,0],[equals,1,1,0],[square,1,1,0],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[person,50,30,180],[apple,5,5,5],[left,1,1,0],[a,1,1.5,0],[person,50,30,180],[plus,1,1,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[apple,5,5,5],[n,1,1,0],[right,1,1,0],[left,1,1,0],[down,1,1,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[a,1,1.5,0],[dash,1,1,0],[person,50,30,180],[person,50,30,180],[hair,1,0,0],[person,50,30,180],[nail,0.3,0.3,3],[person,50,30,180],[person,50,30,180],[square,1,1,0],[a,1,1.5,0],[person,50,30,180],[apple,5,5,5],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[down,1,1,0],[equals,1,1,0],[square,1,1,0],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[person,50,30,180],[apple,5,5,5],[left,1,1,0],[a,1,1.5,0],[person,50,30,180],[plus,1,1,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[apple,5,5,5],[n,1,1,0],[right,1,1,0],[left,1,1,0],[down,1,1,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[a,1,1.5,0],[dash,1,1,0],[person,50,30,180],[person,50,30,180],[hair,1,0,0],[person,50,30,180],[nail,0.3,0.3,3],[person,50,30,180],[person,50,30,180],[square,1,1,0],[a,1,1.5,0],[person,50,30,180],[apple,5,5,5],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[down,1,1,0],[equals,1,1,0],[square,1,1,0],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[person,50,30,180],[apple,5,5,5],[left,1,1,0],[a,1,1.5,0],[person,50,30,180],[plus,1,1,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[apple,5,5,5],[n,1,1,0],[right,1,1,0],[left,1,1,0],[down,1,1,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[a,1,1.5,0],[dash,1,1,0],[person,50,30,180],[person,50,30,180],[hair,1,0,0],[person,50,30,180],[nail,0.3,0.3,3],[person,50,30,180],[person,50,30,180],[square,1,1,0],[a,1,1.5,0],[person,50,30,180],[apple,5,5,5],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[down,1,1,0],[equals,1,1,0],[square,1,1,0],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[person,50,30,180],[apple,5,5,5],[left,1,1,0],[a,1,1.5,0],[person,50,30,180],[plus,1,1,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[apple,5,5,5],[n,1,1,0],[right,1,1,0],[left,1,1,0],[down,1,1,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[a,1,1.5,0],[dash,1,1,0],[person,50,30,180],[person,50,30,180],[hair,1,0,0],[person,50,30,180],[nail,0.3,0.3,3],[person,50,30,180],[person,50,30,180],[square,1,1,0],[a,1,1.5,0],[person,50,30,180],[apple,5,5,5],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[down,1,1,0],[equals,1,1,0],[square,1,1,0],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[person,50,30,180],[apple,5,5,5],[left,1,1,0],[a,1,1.5,0],[person,50,30,180],[plus,1,1,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[apple,5,5,5],[n,1,1,0],[right,1,1,0],[left,1,1,0],[down,1,1,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[a,1,1.5,0],[dash,1,1,0],[person,50,30,180],[person,50,30,180],[hair,1,0,0],[person,50,30,180],[nail,0.3,0.3,3],[person,50,30,180],[person,50,30,180],[square,1,1,0]]).
+
+texttobr2(medicine,[[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[person,50,30,180],[plus,1,1,0],[heart,1,1,0],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[equals,1,1,0],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[down,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[baby,30,50,20],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[plus,1,1,0],[zero,1,1.5,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[person,50,30,180],[plus,1,1,0],[heart,1,1,0],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[equals,1,1,0],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[down,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[baby,30,50,20],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[plus,1,1,0],[zero,1,1.5,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[person,50,30,180],[plus,1,1,0],[heart,1,1,0],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[equals,1,1,0],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[down,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[baby,30,50,20],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[plus,1,1,0],[zero,1,1.5,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[person,50,30,180],[plus,1,1,0],[heart,1,1,0],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[equals,1,1,0],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[down,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[baby,30,50,20],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[plus,1,1,0],[zero,1,1.5,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[person,50,30,180],[plus,1,1,0],[heart,1,1,0],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[equals,1,1,0],[dash,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180]]).
+
+texttobr2(pedagogy,[[person,50,30,180],[heart,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[baby,30,50,20],[up,1,1,0],[person,50,30,180],[heart,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[square,1,1,0],[box,1,1,1],[down,1,1,0],[and,1,1,0],[square,1,1,0],[down,1,1,0],[square,1,1,0],[equals,1,1,0],[person,50,30,180],[zero,1,1.5,0],[a,1,1.5,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[heart,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[baby,30,50,20],[up,1,1,0],[person,50,30,180],[heart,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[square,1,1,0],[box,1,1,1],[down,1,1,0],[and,1,1,0],[square,1,1,0],[down,1,1,0],[square,1,1,0],[equals,1,1,0],[person,50,30,180],[zero,1,1.5,0],[a,1,1.5,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[heart,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[baby,30,50,20],[up,1,1,0],[person,50,30,180],[heart,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[square,1,1,0],[box,1,1,1],[down,1,1,0],[and,1,1,0],[square,1,1,0],[down,1,1,0],[square,1,1,0],[equals,1,1,0],[person,50,30,180],[zero,1,1.5,0],[a,1,1.5,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[heart,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[baby,30,50,20],[up,1,1,0],[person,50,30,180],[heart,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[square,1,1,0],[box,1,1,1],[down,1,1,0],[and,1,1,0],[square,1,1,0],[down,1,1,0],[square,1,1,0],[equals,1,1,0],[person,50,30,180],[zero,1,1.5,0],[a,1,1.5,0],[equals,1,1,0],[plus,1,1,0],[person,50,30,180],[heart,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[baby,30,50,20],[up,1,1,0],[person,50,30,180],[heart,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[down,1,1,0],[person,50,30,180],[heart,1,1,0],[person,50,30,180],[person,50,30,180],[plus,1,1,0],[person,50,30,180],[plus,1,1,0],[a,1,1.5,0]]).
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/texttobrall2_reading.pl b/Text-to-Breasonings-master/texttobrall2_reading.pl
new file mode 100644
index 0000000000000000000000000000000000000000..34a0fdbae3f97673b7daa60ab706bd69d0af6944
--- /dev/null
+++ b/Text-to-Breasonings-master/texttobrall2_reading.pl
@@ -0,0 +1,666 @@
+% ['../Text-to-Breasonings/text_to_breasonings.pl'].
+% W is 50*4,texttobr2(u,u,u,u,false,false,false,false,false,false,W)
+% where W is the number of words to read
+% and there are approximately 4 words per algorithm.
+
+%% Important: See instructions for using texttobr.pl at https://lucianpedia.wikia.com/wiki/Instructions_for_Using_texttobr(2).pl .
+
+%% use_module(library(pio)). %% In la_strings
+%% use_module(library(dcg/basics)). %% In la_strings
+
+%% texttobr2 - converts file stream to dimensions of objects represented by the words
+%% has object name as separate field for new users of texttobr to verify breasonings by hand
+%% brdict1.txt contains word and object name, brdict2.txt contains object name and x, y and z
+
+%% texttobr2(Runs,File,StringtoBreason,BreasoningLimit).
+:- include('../Text-to-Breasonings/mergetexttobrdict.pl').
+%:- include('../listprologinterpreter/la_strings').
+
+%% Brth is true or false
+texttobr2(N1,Filex1,Stringx1,M1) :-
+ texttobr2(N1,Filex1,Stringx1,M1,false,false,false,false,false,false,0,[auto,off]).
+
+texttobr2(N1,Filex1,Stringx1,M1,[auto,Auto]) :-
+ texttobr2(N1,Filex1,Stringx1,M1,false,false,false,false,false,false,0,[auto,Auto]).
+texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,PartOfRoom,Direction,
+ ObjectToPrepare,ObjectToFinish) :-
+ texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,
+ PartOfRoom,Direction,ObjectToPrepare,ObjectToFinish,0,[auto,off]).
+
+texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,PartOfRoom,Direction,
+ ObjectToPrepare,ObjectToFinish,[auto,Auto]) :-
+ texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,
+ PartOfRoom,Direction,ObjectToPrepare,ObjectToFinish,0,[auto,Auto]),!.
+
+texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,PartOfRoom,Direction,
+ ObjectToPrepare,ObjectToFinish,W) :-
+ texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,
+ PartOfRoom,Direction,ObjectToPrepare,ObjectToFinish,0,[auto,off]).
+
+texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,PartOfRoom,Direction,ObjectToPrepare,ObjectToFinish,Words_to_read,[auto,Auto]) :-
+ retractall(auto(_)),
+ assertz(auto(Auto)),
+
+(Stringx1=""->true;
+( retractall(complete_display(_)),
+ assertz(complete_display(false)),
+
+ retractall(words_to_read(_)),
+ assertz(words_to_read(Words_to_read)),
+
+ ((number(N1),N=N1)->true;
+ (N1=u,N=1)),
+
+ ((Filex1=u,Filex="../Text-to-Breasonings/file.txt")->true;
+ Filex=Filex1),
+
+ ((number(M1),M=M1)->true;
+ M=all), %% If m1 is undefined or all then m=all
+
+ prep(List1,BrDict03,BrDict03t,Filex,Stringx1,M,Brth,BrthDict03,Room,RoomDict03,PartOfRoom,PartOfRoomDict03,Direction,DirectionDict03,ObjectToPrepare,ObjectToPrepareDict03,ObjectToFinish,ObjectToFinishDict03),
+
+ retractall(n(_)),
+ assertz(n(N)),
+
+ retractall(brDict03(_)),
+ assertz(brDict03(BrDict03)),
+
+ retractall(brDict03t(_)),
+ assertz(brDict03t(BrDict03t)),
+
+br2(List1,N),%,BrDict03,BrDict2,BrDict03t,BrDict03t2,N,Brth,BrthDict03,BrthDict04,Room,RoomDict03,RoomDict04,PartOfRoom,PartOfRoomDict03,PartOfRoomDict04,Direction,DirectionDict03,DirectionDict04,ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict04,ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict04),
+
+brDict031(BrDict2),
+brDict03t1(BrDict03t2),
+ sort(BrDict2,BrDict3),
+ (BrDict03=BrDict3->true;
+ (open_s("../Text-to-Breasonings/brdict1.txt",write,Stream),
+%% string_codes(BrDict3),
+ write(Stream,BrDict3),
+ close(Stream))),
+
+ sort(BrDict03t2,BrDict03t3),
+ (BrDict03t=BrDict03t3->true;
+ (open_s("../Text-to-Breasonings/brdict2.txt",write,Stream2),
+%% string_codes(BrDict3),
+ write(Stream2,BrDict03t3),
+ close(Stream2))),
+
+ /*
+ ((Brth=true,
+ sort(BrthDict04,BrthDict044),
+ (BrthDict03=BrthDict044->true;
+ (open_s("../Text-to-Breasonings/brthdict.txt",write,Stream3),
+%% string_codes(BrDict3),
+ write(Stream3,BrthDict044),
+ close(Stream3))))->true;true),
+
+ ((Room=true,
+ sort(RoomDict04,RoomDict044),
+ (RoomDict04=RoomDict044->true;
+ (open_s("../Text-to-Breasonings/roomdict.txt",write,Stream4),
+%% string_codes(BrDict3),
+ write(Stream4,RoomDict044),
+ close(Stream4))))->true;true),
+
+ ((PartOfRoom=true,
+ sort(PartOfRoomDict04,PartOfRoomDict044),
+ (PartOfRoomDict04=PartOfRoomDict044->true;
+ (open_s("../Text-to-Breasonings/partofroomdict.txt",write,Stream5),
+%% string_codes(BrDict3),
+ write(Stream5,PartOfRoomDict044),
+ close(Stream5))))->true;true),
+
+ ((Direction=true,
+ sort(DirectionDict04,DirectionDict044),
+ (DirectionDict04=DirectionDict044->true;
+ (open_s("../Text-to-Breasonings/directiondict.txt",write,Stream6),
+%% string_codes(BrDict3),
+ write(Stream6,DirectionDict044),
+ close(Stream6))))->true;true),
+
+ ((ObjectToPrepare=true,
+ sort(ObjectToPrepareDict04,ObjectToPrepareDict044),
+ (ObjectToPrepareDict04=ObjectToPrepareDict044->true;
+ (open_s("../Text-to-Breasonings/objecttopreparedict.txt",write,Stream7),
+%% string_codes(BrDict3),
+ write(Stream7,ObjectToPrepareDict044),
+ close(Stream7))))->true;true),
+
+ ((ObjectToFinish=true,
+ sort(ObjectToFinishDict04,ObjectToFinishDict044),
+ (ObjectToFinishDict04=ObjectToFinishDict044->true;
+ (open_s("../Text-to-Breasonings/objecttofinishdict.txt",write,Stream8),
+%% string_codes(BrDict3),
+ write(Stream8,ObjectToFinishDict044),
+ close(Stream8))))->true;true),
+ */
+
+ length(List1,List1_length_a),
+ Dividend_a is ceiling(List1_length_a/250),
+ Dividend_b is Dividend_a*3, % for graciously giving
+ texttobr2_a(Dividend_b,meditation),
+ texttobr2_a(Dividend_b,medicine),
+ texttobr2_a(Dividend_b,pedagogy)
+ )),
+
+ !.
+
+
+replace0(Input,Find,Replace,SepandPad,M,Output0) :-
+ replace00(Input,Find,Replace,SepandPad,[],Output1),
+ truncate(Output1,M,Output0),!.
+replace00([],_Find,_Replace,_SepandPad,Input,Input) :- !.
+replace00(Input1,Find,Replace,SepandPad,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ string_codes(Input4,String1),
+ replace1(String1,Find,Replace,[],Input7),
+ string_codes(Output,Input7),
+ split_string(Output,SepandPad,SepandPad,Input8),
+ append(Input2,Input8,Input9),
+ replace00(Input5,Find,Replace,SepandPad,Input9,Input3), !.
+replace1([],_Find,_Replace,Input,Input) :- !.
+replace1(Input1,Find,Replace,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ member(Input4,Find),
+ append(Input2,[Replace],Input6),
+ replace1(Input5,Find,Replace,Input6,Input3), !.
+replace1(Input1,Find,Replace,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ not(member(Input4,Find)),
+ append(Input2,[Input4],Input6),
+ replace1(Input5,Find,Replace,Input6,Input3), !.
+
+split_string_onnonletter(String00,List1) :-
+ string_codes(String00,String1),
+ split_string_onnonletter(String1,[],List0),
+ string_codes(List0,List2),
+ split_string(List2," "," ",List1),!.
+split_string_onnonletter([],Input,Input) :- !.
+split_string_onnonletter(Input1,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ not(char_type(Input4,alpha)),
+ append(Input2,[32],Input6),
+ split_string_onnonletter(Input5,Input6,Input3), !.
+split_string_onnonletter(Input1,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ char_type(Input4,alpha),
+ append(Input2,[Input4],Input6),
+ split_string_onnonletter(Input5,Input6,Input3), !.
+
+%% Truncates the list if m is not undefined and m is greater than or equal to the length of string0
+truncate(List1,M,String0) :-
+ ((number(M),length(String0,M),
+ append(String0,_,List1))->true;
+ String0=List1),!.
+
+
+
+prep(List,BrDict03,BrDict03t,Filex,Stringx1,M,Brth,BrthDict03,Room,RoomDict03,PartOfRoom,PartOfRoomDict03,Direction,DirectionDict03,ObjectToPrepare,ObjectToPrepareDict03,ObjectToFinish,ObjectToFinishDict03) :-
+
+concurrent(2,[(
+ phrase_from_file_s(string(BrDict0), "../Text-to-Breasonings/brdict1.txt"),
+ %%Chars="’",
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ %%split_string(BrDict0,SepandPad,SepandPad,BrDict01),
+%%writeln([brDict0,BrDict0]),
+%%writeln([brdict1]),
+ splitfurther(BrDict0,BrDict01),
+%%writeln([brDict01,BrDict01]),
+ %%char_code(Escape,27),
+ %%delete(BrDict01,[Escape,_,_,_,_],BrDict021),
+%%writeln([brDict021,BrDict021]),
+ %%char_code(Apostrophe,8217),
+ %%delete(BrDict021,[Apostrophe,_,_,_,_],BrDict02),
+%%writeln([brDict02,BrDict02]),
+ sort(BrDict01,BrDict03),
+%%writeln([brDict03,BrDict03]),
+ length(BrDict03,Length0),write("Number of words in dictionary: "), writeln(Length0)
+ ),(
+ %%writeln(''),
+ %%writeln([brdict2]),
+ phrase_from_file_s(string(BrDict0t), "../Text-to-Breasonings/brdict2.txt"),
+ %%Chars="’",
+ %%split_string(BrDict0,SepandPad,SepandPad,BrDict01),
+%%writeln([brDict0,BrDict0]),
+ splitfurthert(BrDict0t,BrDict01t),
+%%writeln([brDict01,BrDict01]),
+ %%delete(BrDict01t,[Escape,_,_,_,_],BrDict021t),
+%%writeln([brDict021,BrDict021]),
+ %%delete(BrDict021t,[Apostrophe,_,_,_,_],BrDict02t),
+%%writeln([brDict02,BrDict02]),
+ sort(BrDict01t,BrDict03t),
+
+% br_freq %B=BrDict03t,A=BrDict03,findall([DL,C,"\n"],(member([C,_,_,_],B),findall(_,member([_,C],A),D),length(D,DL)),E),sort(E,F),reverse(F,G),writeln([br_freq,G]),
+
+%%writeln([brDict03,BrDict03]),
+ length(BrDict03t,Length0t),write("Number of unique breasonings in dictionary: "), writeln(Length0t)
+ )],[]),
+
+ ((Stringx1=u,
+ phrase_from_file_s(string(String001), Filex))->true;
+ String001=Stringx1),
+
+ process_t2b(String001,String00),
+
+ split_string(String00,SepandPad,SepandPad,List1),
+ %%split_string_onnonletter(String00,List1),
+
+ truncate(List1,M,List),
+
+ /**replace0(String0,[8221, 8220], 34, SepandPad, M, String1),
+ replace0(String1,[8216, 8217], 39, SepandPad, M, String2),
+ replace0(String2,[8259, 8211, 8212], 45, SepandPad, M, String3),
+ replace0(String3,[160], 32, SepandPad, M, List),
+ **/
+
+%%atom_codes(Atom999,String),writeln([atom999,Atom999]),
+
+%%writeln([list,List]),
+ %%delete(List,Escape,List11),
+%%writeln([list11,List11]),
+ %%delete(List11,Apostrophe,List1),
+%%writeln([list1,List1]),
+ length(List,Length1),write("Number of words to breason out in file: "), writeln(Length1),
+ sort(List,List2),
+%%writeln([list2,List2]),
+ length(List2,Length2),write("Number of unique words in file: "), writeln(Length2),
+
+
+
+ ((Brth=true,
+ phrase_from_file_s(string(BrthDict0), "../Text-to-Breasonings/brthdict.txt"), splitfurther(BrthDict0,BrthDict01),
+ sort(BrthDict01,BrthDict03),
+ length(BrthDict03,BrthLength0),write("Number of unique breathsonings in dictionary: "), writeln(BrthLength0))->true;true),
+
+
+ ((Room=true,
+ phrase_from_file_s(string(RoomDict0), "../Text-to-Breasonings/roomdict.txt"), splitfurther(RoomDict0,RoomDict01),
+ sort(RoomDict01,RoomDict03),
+ length(RoomDict03,RoomLength0),write("Number of unique rooms in dictionary: "), writeln(RoomLength0))->true;true),
+
+ ((PartOfRoom=true,
+ phrase_from_file_s(string(PartOfRoomDict0), "../Text-to-Breasonings/partofroomdict.txt"), splitfurther(PartOfRoomDict0,PartOfRoomDict01),
+ sort(PartOfRoomDict01,PartOfRoomDict03),
+ length(PartOfRoomDict03,PartOfRoomLength0),write("Number of unique parts of rooms in dictionary: "), writeln(PartOfRoomLength0))->true;true),
+
+ ((Direction=true,
+ phrase_from_file_s(string(DirectionDict0), "../Text-to-Breasonings/directiondict.txt"), splitfurther(DirectionDict0,DirectionDict01),
+ sort(DirectionDict01,DirectionDict03),
+ length(DirectionDict03,DirectionLength0),write("Number of unique directions in dictionary: "), writeln(DirectionLength0))->true;true),
+
+ ((ObjectToPrepare=true,
+ phrase_from_file_s(string(ObjectToPrepareDict0), "../Text-to-Breasonings/objecttopreparedict.txt"), splitfurther(ObjectToPrepareDict0,ObjectToPrepareDict01),
+ sort(ObjectToPrepareDict01,ObjectToPrepareDict03),
+ length(ObjectToPrepareDict03,ObjectToPrepareLength0),write("Number of unique objects to prepare in dictionary: "), writeln(ObjectToPrepareLength0))->true;true),
+
+ ((ObjectToFinish=true,
+ phrase_from_file_s(string(ObjectToFinishDict0), "../Text-to-Breasonings/objecttofinishdict.txt"), splitfurther(ObjectToFinishDict0,ObjectToFinishDict01),
+ sort(ObjectToFinishDict01,ObjectToFinishDict03),
+ length(ObjectToFinishDict03,ObjectToFinishLength0),write("Number of unique objects to finish in dictionary: "), writeln(ObjectToFinishLength0))->true;true),
+
+(complete_display(true)->
+ ((Stringx1=u, %% Use file, not string as input.
+
+ %%maplist(downcase_atom, List2, List3),
+ maplist(string_lower, List2, List3),
+
+%%writeln([list3,List3]),
+ towords3(BrDict03,[],BrDict04,[],_ObjectNames,[],AllUsedNames),
+ towords2(BrDict03t,[],BrDict04t),
+
+%%writeln([brDict04,BrDict04]),
+ subtract(List3,BrDict04,D1),
+%%writeln([list3,brDict04,d1,List3,BrDict04,D1]),
+%%writeln(["subtract(BrDict04,List3,D1).",List3,BrDict04,D1]),
+ length(D1,Length01),Difference is abs(Length01),write("Number of words remaining to define: "), writeln(Difference),
+
+ subtract(AllUsedNames,BrDict04t,D2),
+ %%delete(D21,'',D2),
+ length(D2,Length01t),Differencet is abs(Length01t),write("Number of undefined breasonings: "), writeln(Differencet),
+ %% writeln([undefinedbreasonings,D2]), %% Print undefined breasonings
+
+ %%delete(D31,'',D3),
+ subtract(BrDict04t,AllUsedNames,D3),
+ length(D3,Length01t2),Differencet2 is abs(Length01t2),write("Number of orphaned breasonings: "), writeln(Differencet2),
+
+ %%,writeln([orphanedbreasonings,D3]) %% Print orphaned breasonings
+
+ ((Brth=true,
+
+ %%towords3(BrDict03,[],BrDict04,[],_ObjectNames,[],AllUsedNames),
+ towords2a(BrthDict03,[],BrtDict04t),
+
+ %%subtract(List3,BrtDict04t,Dt1),
+ %%length(Dt1,Lengtht01),Differencet1 is abs(Lengtht01),write("Number of words remaining to define breathsonings for: "), writeln(Differencet1),
+ %%writeln(["Number of words remaining to define breathsonings for",Dt1]), %% Print number of words remaining to define breathsonings for
+
+ subtract(AllUsedNames,BrtDict04t,Dt2),
+ length(Dt2,Lengtht01t),Differencet22 is abs(Lengtht01t),write("Number of undefined breathsonings: "), writeln(Differencet22),
+ %%writeln([undefinedbreathsonings,Dt2]), %% Print undefined breathsonings
+
+ subtract(BrtDict04t,AllUsedNames,Dt3),
+ length(Dt3,Lengtht01t2),Differencet3 is abs(Lengtht01t2),write("Number of orphaned breathsonings: "), writeln(Differencet3)
+
+ %%writeln([orphanedbreathsonings,Dt3]) %% Print orphaned breathsonings
+
+ )->true;true),
+
+ ((Room=true,
+ towords2a(RoomDict03,[],RoomDict04t),
+ subtract(AllUsedNames,RoomDict04t,RoomDt2),
+ length(RoomDt2,RoomLengtht01t),RoomDifferencet22 is abs(RoomLengtht01t),write("Number of undefined rooms: "), writeln(RoomDifferencet22),
+ %%writeln([undefinedrooms,RoomDt2]), %% Print undefined rooms
+ subtract(RoomDict04t,AllUsedNames,RoomDt3),
+ length(RoomDt3,RoomLengtht01t2),RoomDifferencet3 is abs(RoomLengtht01t2),write("Number of orphaned rooms: "), writeln(RoomDifferencet3)
+ %%writeln([orphanedrooms,RoomDt3]) %% Print orphaned rooms
+ )->true;true),
+
+ ((PartOfRoom=true,
+ towords2a(PartOfRoomDict03,[],PartOfRoomDict04t),
+ subtract(AllUsedNames,PartOfRoomDict04t,PartOfRoomDt2),
+ length(PartOfRoomDt2,PartOfRoomLengtht01t),PartOfRoomDifferencet22 is abs(PartOfRoomLengtht01t),write("Number of undefined parts of rooms: "), writeln(PartOfRoomDifferencet22),
+ %%writeln([undefinedPartsOfRooms,PartOfRoomDt2]), %% Print undefined PartsOfRooms
+ subtract(PartOfRoomDict04t,AllUsedNames,PartOfRoomDt3),
+ length(PartOfRoomDt3,PartOfRoomLengtht01t2),PartOfRoomDifferencet3 is abs(PartOfRoomLengtht01t2),write("Number of orphaned parts of rooms: "), writeln(PartOfRoomDifferencet3)
+ %%writeln([orphanedPartsOfRooms,PartOfRoomDt3]) %% Print orphaned PartsOfRooms
+ )->true;true),
+
+ ((Direction=true,
+ towords2a(DirectionDict03,[],DirectionDict04t),
+ subtract(AllUsedNames,DirectionDict04t,DirectionDt2),
+ length(DirectionDt2,DirectionLengtht01t),DirectionDifferencet22 is abs(DirectionLengtht01t),write("Number of undefined directions: "), writeln(DirectionDifferencet22),
+ %%writeln([undefinedDirections,DirectionDt2]), %% Print undefined Directions
+ subtract(DirectionDict04t,AllUsedNames,DirectionDt3),
+ length(DirectionDt3,DirectionLengtht01t2),DirectionDifferencet3 is abs(DirectionLengtht01t2),write("Number of orphaned directions: "), writeln(DirectionDifferencet3)
+ %%writeln([orphanedDirections,DirectionDt3]) %% Print orphaned Directions
+ )->true;true),
+
+ ((ObjectToPrepare=true,
+ towords2a(ObjectToPrepareDict03,[],ObjectToPrepareDict04t),
+ subtract(AllUsedNames,ObjectToPrepareDict04t,ObjectToPrepareDt2),
+ length(ObjectToPrepareDt2,ObjectToPrepareLengtht01t),ObjectToPrepareDifferencet22 is abs(ObjectToPrepareLengtht01t),write("Number of undefined objects to prepare: "), writeln(ObjectToPrepareDifferencet22),
+ %%writeln([undefinedObjectsToPrepare,ObjectToPrepareDt2]), %% Print undefined ObjectsToPrepare
+ subtract(ObjectToPrepareDict04t,AllUsedNames,ObjectToPrepareDt3),
+ length(ObjectToPrepareDt3,ObjectToPrepareLengtht01t2),ObjectToPrepareDifferencet3 is abs(ObjectToPrepareLengtht01t2),write("Number of orphaned objects to prepare: "), writeln(ObjectToPrepareDifferencet3)
+ %%writeln([orphanedObjectsToPrepare,ObjectToPrepareDt3]) %% Print orphaned ObjectsToPrepare
+ )->true;true),
+
+ ((ObjectToFinish=true,
+ towords2a(ObjectToFinishDict03,[],ObjectToFinishDict04t),
+ subtract(AllUsedNames,ObjectToFinishDict04t,ObjectToFinishDt2),
+ length(ObjectToFinishDt2,ObjectToFinishLengtht01t),ObjectToFinishDifferencet22 is abs(ObjectToFinishLengtht01t),write("Number of undefined objects to finish: "), writeln(ObjectToFinishDifferencet22),
+ %%writeln([undefinedObjectsToFinish,ObjectToFinishDt2]), %% Print undefined ObjectsToFinish
+ subtract(ObjectToFinishDict04t,AllUsedNames,ObjectToFinishDt3),
+ length(ObjectToFinishDt3,ObjectToFinishLengtht01t2),ObjectToFinishDifferencet3 is abs(ObjectToFinishLengtht01t2),write("Number of orphaned objects to finish: "), writeln(ObjectToFinishDifferencet3)
+ %%writeln([orphanedObjectsToFinish,ObjectToFinishDt3]) %% Print orphaned ObjectsToFinish
+ )->true;true)
+
+
+
+)->true;(string(Filex),writeln("Number of words, unique words, unique breathsonings, words remaining to define, undefined breasonings, orphaned breasonings, undefined breathsonings and orphaned breathsonings skipped for speed when breasoning out a string.")));true)
+
+,!.
+
+%n2(N) :-n(N).
+brDict031(BrDict2) :- brDict03(BrDict2).
+brDict03t1(BrDict03t2) :- brDict03t(BrDict03t2).
+
+br2(List1,N) :-
+%br2(_,A,A,B,B,0,_Brth,BrthDict03,BrthDict03,_Room,RoomDict03,RoomDict03,_PartOfRoom,PartOfRoomDict03,PartOfRoomDict03,_Direction,DirectionDict03,DirectionDict03,_ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict03,_ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict03) :- !.
+%br2(List1,BrDict03,BrDict2,BrDict03t,BrDict03t2,N1,Brth,BrthDict03,BrthDict04,Room,RoomDict03,RoomDict04,PartOfRoom,PartOfRoomDict03,PartOfRoomDict04,Direction,DirectionDict03,DirectionDict04,ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict04,ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict04) :-
+
+ length(NL,N),
+ findall(_,(member(_,NL),
+ (auto(on)->
+ concurrent_maplist(br,List1,_);
+ maplist(br,List1,_))),_),!.
+ %***
+
+%br(List1,BrDict03,BrDict21,BrDict03t,BrDict03t21,Brth,BrthDict03,BrthDict041,Room,RoomDict03,RoomDict041,PartOfRoom,PartOfRoomDict03,PartOfRoomDict041,Direction,DirectionDict03,DirectionDict041,ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict041,ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict041),
+ %N2 is N1-1,
+ %br2(List1,BrDict21,BrDict2,BrDict03t21,BrDict03t2,N2,Brth,BrthDict041,BrthDict04,Room,RoomDict041,RoomDict04,PartOfRoom,PartOfRoomDict041,PartOfRoomDict04,Direction,DirectionDict041,DirectionDict04,ObjectToPrepare,ObjectToPrepareDict041,ObjectToPrepareDict04,ObjectToFinish,ObjectToFinishDict041,ObjectToFinishDict04),!.
+
+towords2([],A,A) :- !.
+towords2(BrDict03,A,B) :-
+ BrDict03=[[Word,_,_,_]|Rest],
+ %%atom_string(Atom,Word),
+ append(A,[Word],C),
+ towords2(Rest,C,B).
+
+towords2a([],A,A) :- !.
+towords2a(BrDict03,A,B) :-
+ BrDict03=[[Word,_]|Rest],
+ %%atom_string(Atom,Word),
+ append(A,[Word],C),
+ towords2a(Rest,C,B).
+
+towords3([],A,A,C,C,D,D) :- !.
+towords3(BrDict03,A,B,D,E,G,H) :-
+ BrDict03=[[Word1,Word2]|Rest],
+ (Word2=""->append(G,[Word1],I)->true;
+ append(G,[Word2],I)),
+ append(A,[Word1],C),
+ append(D,[Word2],F),
+ towords3(Rest,C,B,F,E,I,H).
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+splitfurther(BrDict01,N) :-
+ phrase(file0(N),BrDict01).
+
+file0(N) --> "[", file(N), "]", !.
+file0([]) --> [].
+
+%%file([]) --> [].
+file([L|Ls]) --> entry(L),",",
+%%{writeln(L)}, %%***
+file(Ls), !. %% file(Ls),{M=[Ls]})), !. %%, {writeln(["l",L])},",", file(Ls), {writeln(["ls",Ls])},!. %%, {append(L,Ls,M)}, !.
+file([L]) --> entry(L),
+%%{writeln(L)},
+!. %%(entry(L),{M=L});{M=[],(writeln("Warning - Entry in incorrect format.")
+%%,abort
+%%)}, !.
+
+entry([Word2,Word4]) -->
+ "[", word(Word), {string_codes(Word2,Word),string(Word2)},
+ ",",
+ word(Word3), {string_codes(Word4,Word3),string(Word4)},
+ "]".
+
+splitfurthert(BrDict01,N) :-
+ phrase(file0t(N),BrDict01).
+
+file0t(N) --> "[", filet(N), "]", !.
+file0t([]) --> [].
+
+%%file([]) --> [].
+filet([L|Ls]) --> entryt(L),",",
+%%{writeln(L)}, %%***
+filet(Ls), !. %% file(Ls),{M=[Ls]})), !. %%, {writeln(["l",L])},",", file(Ls), {writeln(["ls",Ls])},!. %%, {append(L,Ls,M)}, !.
+filet([L]) --> entryt(L),
+%%{writeln(L)},
+!. %%(entry(L),{M=L});{M=[],(writeln("Warning - Entry in incorrect format.")
+%%,abort
+%%)}, !.
+
+entryt([Word2,X3,Y3,Z3]) -->
+ "[", word(Word), {string_codes(Word2,Word),string(Word2)},
+ ",",
+ digits(X),",",{atom_codes(X2,X),atom_number(X2,X3),number(X3)},
+ digits(Y),",",{atom_codes(Y2,Y),atom_number(Y2,Y3),number(Y3)},
+ digits(Z),{atom_codes(Z2,Z),atom_number(Z2,Z3),number(Z3)},
+ "]".
+
+word([X|Xs]) --> [X], {char_type(X,csymf)->true;(X=27->true;X=8217)}, word(Xs), !.
+%%word([X]) --> [X], {char_type(X,csymf);(X=27;X=8217)}, !.
+word([]) --> [].
+
+digits([X|Xs]) --> [X], {(char_type(X,digit)->true;(string_codes(Word2,[X]),Word2="."))}, digits(Xs), !.
+%%digits([X]) --> [X], {(char_type(X,digit);(string_codes(Word2,[X]),Word2="."))}, !.
+digits([]) --> [].
+
+br(Word,_) :-
+%[],B,B,C,C,_,D,D,_Room,RoomDict03,RoomDict03,_PartOfRoom,PartOfRoomDict03,PartOfRoomDict03,_Direction,DirectionDict03,DirectionDict03,_ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict03,_ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict03) :-
+ %!.
+%br([Word|Words],BrDict,BrDict2,BrDict4,BrDict5,Brth,BrthDict03,BrthDict04,Room,RoomDict03,RoomDict04,PartOfRoom,PartOfRoomDict03,PartOfRoomDict04,Direction,DirectionDict03,DirectionDict04,ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict04,ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict04) :-
+ downcase_atom(Word, Word2), atom_string(Word2,Word3),
+
+ /*
+ words_to_read1(WR1),
+ (WR1>0->(writeln(WR1),write(Word),
+ texttobr2(3),nl,sleep(0.12),
+ WR2 is WR1-1,
+ retractall(words_to_read(_)),
+ assertz(words_to_read(WR2)));
+ true),
+ */
+
+ /**member([Word3,X,Y,Z],BrDict4) -> %% This feature is a bug because words in brdict2 shouldn't necessarily be the words in brdict1
+ %%(append(BrDict,[[Word3,""]],BrDict3), BrDict3t=BrDict4,
+ %%br(Words,BrDict3,BrDict2,BrDict3t,BrDict5))
+ %%;
+ %%(**/
+
+ %%(member([Word3,X,Y,Z],BrDict4) -> %% This feature is a bug because words in brdict1 should correspond to those in brdict2
+ %%(atom_concat("The breasoning for ", Word3, P1),
+ %%atom_concat(P1, " is defined. Enter object name (without spaces), if different for ", Prompt));
+ %Prompt="Enter object name (without spaces), if different for "),
+
+ %%writeln([word3,Word3]),
+ brDict031(BrDict),
+
+ (member([Word3,String4],BrDict)->
+ BrDict3=BrDict;
+ ((repeat,
+ write("Enter object name (without spaces), if different for "), writeln(Word3),read_string1("box",user_input, "\n", "\r", _End2, String2),split_string(String2, "", " ", String3),String3=[String4]),
+ append(BrDict,[[Word3,String4]],BrDict3),
+ texttobr(1,u,String4,1))),
+ %%*brth(Word3,_Brth),
+
+(String4=""->String5=Word3;String5=String4),
+
+ downcase_atom(String5, String52), atom_string(String52,String53),
+
+brDict03t1(BrDict4),
+
+ (member([String53,_X,_Y,_Z],BrDict4)->
+ BrDict3t1=BrDict4;
+ ((repeat,
+ write("Enter x, y and z in cm for "), writeln(String53),read_string1("1,1,1",user_input, "\n", "\r", _End, String),split_string(String, ",", " ", Values),Values=[X1,Y1,Z1],number_string(X,X1),number_string(Y,Y1),number_string(Z,Z1)),
+ append(BrDict4,[[String53,X,Y,Z]],BrDict3t1))),
+ %%*brth(String53,_Brth2),
+ %%write("br(\'"),write(Word3),writeln("\',)."),
+%% writeln([Word3,X,Y,Z]),
+ %%write(' '),
+
+ /*
+ (Brth=true,(member([String53,_Breathsoning],BrthDict03)->
+ BrthDict3=BrthDict03;
+ ((repeat,
+ write("Enter human judgement (without spaces), if different for "), writeln(String53),read_string1("good",user_input, "\n", "\r", _End2, Stringth2),split_string(Stringth2, "", " ", Stringth3),Stringth3=[Stringth4]),texttobr(1,u,Stringth4,1),
+ append(BrthDict03,[[String53,Stringth4]],BrthDict3)))->true;true),
+
+ (Room=true,(member([String53,_Room],RoomDict03)->
+ RoomDict3=RoomDict03;
+ ((repeat,
+ write("Enter room (without spaces), if different for "), writeln(String53),read_string1("living",user_input, "\n", "\r", _RoomEnd2, RoomStringth2),split_string(RoomStringth2, "", " ", RoomStringth3),RoomStringth3=[RoomStringth4]),texttobr(1,u,RoomStringth4,1),
+ append(RoomDict03,[[String53,RoomStringth4]],RoomDict3)))->true;true),
+
+
+ (Room=true,(member([RoomStringth4,_X,_Y,_Z],BrDict3t1)->
+ BrDict3t2=BrDict3t1;
+ ((repeat,
+ write("Enter x, y and z in cm for "), writeln(RoomStringth4),read_string1("500,400,300",user_input, "\n", "\r", _End, RoomString),split_string(RoomString, ",", " ", RoomValues),RoomValues=[RoomX1,RoomY1,RoomZ1],number_string(RoomX,RoomX1),number_string(RoomY,RoomY1),number_string(RoomZ,RoomZ1)),
+ append(BrDict3t1,[[RoomStringth4,RoomX,RoomY,RoomZ]],BrDict3t2)))->true;BrDict3t2=BrDict3t1),
+
+
+(PartOfRoom=true,(member([String53,_PartOfRoom],PartOfRoomDict03)->
+ PartOfRoomDict3=PartOfRoomDict03;
+ ((repeat,
+ write("Enter part of room (without spaces), if different for "), writeln(String53),read_string1("corner",user_input, "\n", "\r", _PartOfRoomEnd2, PartOfRoomStringth2),split_string(PartOfRoomStringth2, "", " ", PartOfRoomStringth3),PartOfRoomStringth3=[PartOfRoomStringth4]),texttobr(1,u,PartOfRoomStringth4,1),
+ append(PartOfRoomDict03,[[String53,PartOfRoomStringth4]],PartOfRoomDict3)))->true;true),
+
+
+ (PartOfRoom=true,(member([PartOfRoomStringth4,_X,_Y,_Z],BrDict3t2)->
+ BrDict3t3=BrDict3t2;
+ ((repeat,
+ write("Enter x, y and z in cm for "), writeln(PartOfRoomStringth4),read_string1("100,100,300",user_input, "\n", "\r", _End, PartOfRoomString),split_string(PartOfRoomString, ",", " ", PartOfRoomValues),PartOfRoomValues=[PartOfRoomX1,PartOfRoomY1,PartOfRoomZ1],number_string(PartOfRoomX,PartOfRoomX1),number_string(PartOfRoomY,PartOfRoomY1),number_string(PartOfRoomZ,PartOfRoomZ1)),
+ append(BrDict3t2,[[PartOfRoomStringth4,PartOfRoomX,PartOfRoomY,PartOfRoomZ]],BrDict3t3)))->true;BrDict3t3=BrDict3t2),
+
+(Direction=true,(member([String53,_Direction],DirectionDict03)->
+ DirectionDict3=DirectionDict03;
+ ((repeat,
+ write("Enter direction (without spaces), if different for "), writeln(String53),read_string1("table",user_input, "\n", "\r", _DirectionEnd2, DirectionStringth2),split_string(DirectionStringth2, "", " ", DirectionStringth3),DirectionStringth3=[DirectionStringth4]),texttobr(1,u,DirectionStringth4,1),
+ append(DirectionDict03,[[String53,DirectionStringth4]],DirectionDict3)))->true;true),
+
+
+ (Direction=true,(member([DirectionStringth4,_X,_Y,_Z],BrDict3t3)->
+ BrDict3t4=BrDict3t3;
+ ((repeat,
+ write("Enter x, y and z in cm for "), writeln(DirectionStringth4),read_string1("100,100,100",user_input, "\n", "\r", _End, DirectionString),split_string(DirectionString, ",", " ", DirectionValues),DirectionValues=[DirectionX1,DirectionY1,DirectionZ1],number_string(DirectionX,DirectionX1),number_string(DirectionY,DirectionY1),number_string(DirectionZ,DirectionZ1)),
+ append(BrDict3t3,[[DirectionStringth4,DirectionX,DirectionY,DirectionZ]],BrDict3t4)))->true;BrDict3t4=BrDict3t3),
+
+
+(ObjectToPrepare=true,(member([String53,_ObjectToPrepare],ObjectToPrepareDict03)->
+ ObjectToPrepareDict3=ObjectToPrepareDict03;
+ ((repeat,
+ write("Enter object to prepare (without spaces), if different for "), writeln(String53),read_string1("measure",user_input, "\n", "\r", _ObjectToPrepareEnd2, ObjectToPrepareStringth2),split_string(ObjectToPrepareStringth2, "", " ", ObjectToPrepareStringth3),ObjectToPrepareStringth3=[ObjectToPrepareStringth4]),texttobr(1,u,ObjectToPrepareStringth4,1),
+ append(ObjectToPrepareDict03,[[String53,ObjectToPrepareStringth4]],ObjectToPrepareDict3)))->true;true),
+
+
+ (ObjectToPrepare=true,(member([ObjectToPrepareStringth4,_X,_Y,_Z],BrDict3t4)->
+ BrDict3t5=BrDict3t4;
+ ((repeat,
+ write("Enter x, y and z in cm for "), writeln(ObjectToPrepareStringth4),read_string1("30,1,0.2",user_input, "\n", "\r", _End, ObjectToPrepareString),split_string(ObjectToPrepareString, ",", " ", ObjectToPrepareValues),ObjectToPrepareValues=[ObjectToPrepareX1,ObjectToPrepareY1,ObjectToPrepareZ1],number_string(ObjectToPrepareX,ObjectToPrepareX1),number_string(ObjectToPrepareY,ObjectToPrepareY1),number_string(ObjectToPrepareZ,ObjectToPrepareZ1)),
+ append(BrDict3t4,[[ObjectToPrepareStringth4,ObjectToPrepareX,ObjectToPrepareY,ObjectToPrepareZ]],BrDict3t5)))->true;BrDict3t5=BrDict3t4),
+
+
+(ObjectToFinish=true,(member([String53,_ObjectToFinish],ObjectToFinishDict03)->
+ ObjectToFinishDict3=ObjectToFinishDict03;
+ ((repeat,
+ write("Enter object to finish (without spaces), if different for "), writeln(String53),read_string1("file",user_input, "\n", "\r", _ObjectToFinishEnd2, ObjectToFinishStringth2),split_string(ObjectToFinishStringth2, "", " ", ObjectToFinishStringth3),ObjectToFinishStringth3=[ObjectToFinishStringth4]),texttobr(1,u,ObjectToFinishStringth4,1),
+ append(ObjectToFinishDict03,[[String53,ObjectToFinishStringth4]],ObjectToFinishDict3)))->true;true),
+
+
+ (ObjectToFinish=true,(member([ObjectToFinishStringth4,_X,_Y,_Z],BrDict3t5)->
+ BrDict3t6=BrDict3t5;
+ ((repeat,
+ write("Enter x, y and z in cm for "), writeln(ObjectToFinishStringth4),read_string1("20,30,0.0001",user_input, "\n", "\r", _End, ObjectToFinishString),split_string(ObjectToFinishString, ",", " ", ObjectToFinishValues),ObjectToFinishValues=[ObjectToFinishX1,ObjectToFinishY1,ObjectToFinishZ1],number_string(ObjectToFinishX,ObjectToFinishX1),number_string(ObjectToFinishY,ObjectToFinishY1),number_string(ObjectToFinishZ,ObjectToFinishZ1)),
+ append(BrDict3t5,[[ObjectToFinishStringth4,ObjectToFinishX,ObjectToFinishY,ObjectToFinishZ]],BrDict3t6)))->true;BrDict3t6=BrDict3t5),
+
+*/
+
+retractall(brDict03(_)),
+assertz(brDict03(BrDict3)),
+
+retractall(brDict03t(_)),
+assertz(brDict03t(BrDict3t1)),!.
+
+%br(Words,BrDict3,BrDict2,BrDict3t6,BrDict5,Brth,BrthDict3,BrthDict04,Room,RoomDict3,RoomDict04,PartOfRoom,PartOfRoomDict3,PartOfRoomDict04,Direction,DirectionDict3,DirectionDict04,ObjectToPrepare,ObjectToPrepareDict3,ObjectToPrepareDict04,ObjectToFinish,ObjectToFinishDict3,ObjectToFinishDict04).
+ %%).
+brth(_,sweetinvincibleandprayedfor).
+
+%% finds unknown words, asks for their br in form "n of m: word", verify, (can go back x) append and sort, save
+read_string1(S,user_input, "\n", "\r", _End, ObjectToFinishString) :-
+ (auto(on)->S=ObjectToFinishString;
+ read_string(user_input, "\n", "\r", _End, ObjectToFinishString)),!.
+
+
+process_t2b(A,C) :-
+ replace_t2b(Replacements),
+ atom_string(A1,A),
+ replace1_t2b(Replacements,A1,D1),
+ atom_string(D1,C),!.
+
+replace1_t2b([],A,A) :- !.
+replace1_t2b(Replacements,A,D) :-
+ Replacements=[[B,C]|G],
+ atomic_list_concat(E,B,A),
+ atomic_list_concat(E,C,F),
+ replace1_t2b(G,F,D),!.
+
+ replace_t2b([['\\',''],['–',' '],['—',' '],['“','\''],['”','\''],['‘','\''],['’','\''],['⁃','-']]).
diff --git a/Text-to-Breasonings-master/texttobrall2_reading3.pl b/Text-to-Breasonings-master/texttobrall2_reading3.pl
new file mode 100644
index 0000000000000000000000000000000000000000..722cda6c74004e285f450163bad519313b32de91
--- /dev/null
+++ b/Text-to-Breasonings-master/texttobrall2_reading3.pl
@@ -0,0 +1,511 @@
+% ['../Text-to-Breasonings/text_to_breasonings.pl'].
+% W is 50*4,texttobr2(u,u,u,u,false,false,false,false,false,false,W)
+% where W is the number of words to read
+% and there are approximately 4 words per algorithm.
+
+%% Important: See instructions for using texttobr.pl at https://lucianpedia.wikia.com/wiki/Instructions_for_Using_texttobr(2).pl .
+
+%% use_module(library(pio)). %% In la_strings
+%% use_module(library(dcg/basics)). %% In la_strings
+
+%% texttobr2 - converts file stream to dimensions of objects represented by the words
+%% has object name as separate field for new users of texttobr to verify breasonings by hand
+%% brdict1.txt contains word and object name, brdict2.txt contains object name and x, y and z
+
+%% texttobr2(Runs,File,StringtoBreason,BreasoningLimit).
+:- include('../Text-to-Breasonings/mergetexttobrdict.pl').
+%:- include('../listprologinterpreter/la_strings').
+%:- include('../Philosophy/14 10 23.pl').
+
+%% Brth is true or false
+%texttobr2(N1,Filex1,Stringx1,M1) :-
+ %texttobr2(N1,Filex1,Stringx1,M1,false,false,false,false,false,false,0,[auto,off]).
+
+texttobr2(N1,Filex1,Stringx1,M1,[auto,on]) :-
+ texttobr2(N1,Filex1,Stringx1,M1,false,false,false,false,false,false,0,[auto,on]).
+/*texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,PartOfRoom,Direction,
+ ObjectToPrepare,ObjectToFinish) :-
+ texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,
+ PartOfRoom,Direction,ObjectToPrepare,ObjectToFinish,0,[auto,off]).
+ */
+texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,PartOfRoom,Direction,
+ ObjectToPrepare,ObjectToFinish,[auto,on]) :-
+ texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,
+ PartOfRoom,Direction,ObjectToPrepare,ObjectToFinish,0,[auto,on]),!.
+
+%texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,PartOfRoom,Direction,
+% ObjectToPrepare,ObjectToFinish,W) :-
+% texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,
+ %PartOfRoom,Direction,ObjectToPrepare,ObjectToFinish,0,[auto,off]).
+
+texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,PartOfRoom,Direction,ObjectToPrepare,ObjectToFinish,Words_to_read,[auto,on]) :-
+ retractall(auto(_)),
+ assertz(auto(on)),
+
+(Stringx1=""->true;
+( retractall(complete_display(_)),
+ assertz(complete_display(false)),
+
+ retractall(words_to_read(_)),
+ assertz(words_to_read(Words_to_read)),
+
+ ((number(N1),N=N1)->true;
+ (N1=u,N=1)),
+
+ ((Filex1=u,Filex="../Text-to-Breasonings/file.txt")->true;
+ Filex=Filex1),
+
+ ((number(M1),M=M1)->true;
+ M=all), %% If m1 is undefined or all then m=all
+
+ prep(List1,BrDict03,BrDict03t,Filex,Stringx1,M,Brth,BrthDict03,Room,RoomDict03,PartOfRoom,PartOfRoomDict03,Direction,DirectionDict03,ObjectToPrepare,ObjectToPrepareDict03,ObjectToFinish,ObjectToFinishDict03),
+
+findall(List3,(member(C,List1),downcase_atom(C,List2),atom_string(List2,List3)),D),
+ br2(D,BrDict03,BrDict2,BrDict03t,BrDict03t2,N,Brth,BrthDict03,BrthDict04,Room,RoomDict03,RoomDict04,PartOfRoom,PartOfRoomDict03,PartOfRoomDict04,Direction,DirectionDict03,DirectionDict04,ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict04,ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict04),
+/* sort(BrDict2,BrDict3),
+ (BrDict03=BrDict3->true;
+
+ (open_s("../Text-to-Breasonings/brdict1.txt",write,Stream),
+%% string_codes(BrDict3),
+ write(Stream,BrDict3),
+ close(Stream))),
+
+ sort(BrDict03t2,BrDict03t3),
+ (BrDict03t=BrDict03t3->true;
+ (open_s("../Text-to-Breasonings/brdict2.txt",write,Stream2),
+%% string_codes(BrDict3),
+ write(Stream2,BrDict03t3),
+ close(Stream2))),
+
+ ((Brth=true,
+ sort(BrthDict04,BrthDict044),
+ (BrthDict03=BrthDict044->true;
+ (open_s("../Text-to-Breasonings/brthdict.txt",write,Stream3),
+%% string_codes(BrDict3),
+ write(Stream3,BrthDict044),
+ close(Stream3))))->true;true),
+
+ ((Room=true,
+ sort(RoomDict04,RoomDict044),
+ (RoomDict04=RoomDict044->true;
+ (open_s("../Text-to-Breasonings/roomdict.txt",write,Stream4),
+%% string_codes(BrDict3),
+ write(Stream4,RoomDict044),
+ close(Stream4))))->true;true),
+
+ ((PartOfRoom=true,
+ sort(PartOfRoomDict04,PartOfRoomDict044),
+ (PartOfRoomDict04=PartOfRoomDict044->true;
+ (open_s("../Text-to-Breasonings/partofroomdict.txt",write,Stream5),
+%% string_codes(BrDict3),
+ write(Stream5,PartOfRoomDict044),
+ close(Stream5))))->true;true),
+
+ ((Direction=true,
+ sort(DirectionDict04,DirectionDict044),
+ (DirectionDict04=DirectionDict044->true;
+ (open_s("../Text-to-Breasonings/directiondict.txt",write,Stream6),
+%% string_codes(BrDict3),
+ write(Stream6,DirectionDict044),
+ close(Stream6))))->true;true),
+
+ ((ObjectToPrepare=true,
+ sort(ObjectToPrepareDict04,ObjectToPrepareDict044),
+ (ObjectToPrepareDict04=ObjectToPrepareDict044->true;
+ (open_s("../Text-to-Breasonings/objecttopreparedict.txt",write,Stream7),
+%% string_codes(BrDict3),
+ write(Stream7,ObjectToPrepareDict044),
+ close(Stream7))))->true;true),
+
+ ((ObjectToFinish=true,
+ sort(ObjectToFinishDict04,ObjectToFinishDict044),
+ (ObjectToFinishDict04=ObjectToFinishDict044->true;
+ (open_s("../Text-to-Breasonings/objecttofinishdict.txt",write,Stream8),
+%% string_codes(BrDict3),
+ write(Stream8,ObjectToFinishDict044),
+ close(Stream8))))->true;true),
+ */
+ length(List1,List1_length_a),
+ Dividend_a is ceiling(List1_length_a/250),
+ Dividend_b is Dividend_a*3, % for graciously giving
+ texttobr2_a(Dividend_b,meditation),
+ texttobr2_a(Dividend_b,medicine),
+ texttobr2_a(Dividend_b,pedagogy)
+ )),
+
+ !.
+
+
+replace0(Input,Find,Replace,SepandPad,M,Output0) :-
+ replace00(Input,Find,Replace,SepandPad,[],Output1),
+ truncate(Output1,M,Output0),!.
+replace00([],_Find,_Replace,_SepandPad,Input,Input) :- !.
+replace00(Input1,Find,Replace,SepandPad,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ string_codes(Input4,String1),
+ replace1(String1,Find,Replace,[],Input7),
+ string_codes(Output,Input7),
+ split_string(Output,SepandPad,SepandPad,Input8),
+ append(Input2,Input8,Input9),
+ replace00(Input5,Find,Replace,SepandPad,Input9,Input3), !.
+replace1([],_Find,_Replace,Input,Input) :- !.
+replace1(Input1,Find,Replace,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ member(Input4,Find),
+ append(Input2,[Replace],Input6),
+ replace1(Input5,Find,Replace,Input6,Input3), !.
+replace1(Input1,Find,Replace,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ not(member(Input4,Find)),
+ append(Input2,[Input4],Input6),
+ replace1(Input5,Find,Replace,Input6,Input3), !.
+
+split_string_onnonletter(String00,List1) :-
+ string_codes(String00,String1),
+ split_string_onnonletter(String1,[],List0),
+ string_codes(List0,List2),
+ split_string(List2," "," ",List1),!.
+split_string_onnonletter([],Input,Input) :- !.
+split_string_onnonletter(Input1,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ not(char_type(Input4,alpha)),
+ append(Input2,[32],Input6),
+ split_string_onnonletter(Input5,Input6,Input3), !.
+split_string_onnonletter(Input1,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ char_type(Input4,alpha),
+ append(Input2,[Input4],Input6),
+ split_string_onnonletter(Input5,Input6,Input3), !.
+
+%% Truncates the list if m is not undefined and m is greater than or equal to the length of string0
+truncate(List1,M,String0) :-
+ ((number(M),length(String0,M),
+ append(String0,_,List1))->true;
+ String0=List1),!.
+
+
+
+prep(List,BrDict03,BrDict03t,Filex,Stringx1,M,Brth,BrthDict03,Room,RoomDict03,PartOfRoom,PartOfRoomDict03,Direction,DirectionDict03,ObjectToPrepare,ObjectToPrepareDict03,ObjectToFinish,ObjectToFinishDict03) :-
+ phrase_from_file_s(string(BrDict0), "../Text-to-Breasonings/brdict1.txt"),
+ %%Chars="’",
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ %%split_string(BrDict0,SepandPad,SepandPad,BrDict01),
+%%writeln([brDict0,BrDict0]),
+%%writeln([brdict1]),
+ splitfurther(BrDict0,BrDict01),
+%%writeln([brDict01,BrDict01]),
+ %%char_code(Escape,27),
+ %%delete(BrDict01,[Escape,_,_,_,_],BrDict021),
+%%writeln([brDict021,BrDict021]),
+ %%char_code(Apostrophe,8217),
+ %%delete(BrDict021,[Apostrophe,_,_,_,_],BrDict02),
+%%writeln([brDict02,BrDict02]),
+ sort(BrDict01,BrDict03),
+%%writeln([brDict03,BrDict03]),
+ length(BrDict03,Length0),write("Number of words in dictionary: "), writeln(Length0),
+
+ %%writeln(''),
+ %%writeln([brdict2]),
+ phrase_from_file_s(string(BrDict0t), "../Text-to-Breasonings/brdict2.txt"),
+ %%Chars="’",
+ %%split_string(BrDict0,SepandPad,SepandPad,BrDict01),
+%%writeln([brDict0,BrDict0]),
+ splitfurthert(BrDict0t,BrDict01t),
+%%writeln([brDict01,BrDict01]),
+ %%delete(BrDict01t,[Escape,_,_,_,_],BrDict021t),
+%%writeln([brDict021,BrDict021]),
+ %%delete(BrDict021t,[Apostrophe,_,_,_,_],BrDict02t),
+%%writeln([brDict02,BrDict02]),
+ sort(BrDict01t,BrDict03t),
+
+% br_freq %B=BrDict03t,A=BrDict03,findall([DL,C,"\n"],(member([C,_,_,_],B),findall(_,member([_,C],A),D),length(D,DL)),E),sort(E,F),reverse(F,G),writeln([br_freq,G]),
+
+%%writeln([brDict03,BrDict03]),
+ length(BrDict03t,Length0t),write("Number of unique breasonings in dictionary: "), writeln(Length0t),
+
+ ((Stringx1=u,
+ phrase_from_file_s(string(String001), Filex))->true;
+ String001=Stringx1),
+
+ process_t2b(String001,String00),
+
+ split_string(String00,SepandPad,SepandPad,List1),
+ %%split_string_onnonletter(String00,List1),
+
+ truncate(List1,M,List),
+
+ /**replace0(String0,[8221, 8220], 34, SepandPad, M, String1),
+ replace0(String1,[8216, 8217], 39, SepandPad, M, String2),
+ replace0(String2,[8259, 8211, 8212], 45, SepandPad, M, String3),
+ replace0(String3,[160], 32, SepandPad, M, List),
+ **/
+
+%%atom_codes(Atom999,String),writeln([atom999,Atom999]),
+
+%%writeln([list,List]),
+ %%delete(List,Escape,List11),
+%%writeln([list11,List11]),
+ %%delete(List11,Apostrophe,List1),
+%%writeln([list1,List1]),
+ length(List,Length1),write("Number of words to breason out in file: "), writeln(Length1),
+ sort(List,List2),
+%%writeln([list2,List2]),
+ length(List2,Length2),write("Number of unique words in file: "), writeln(Length2),
+
+
+
+ ((Brth=true,
+ phrase_from_file_s(string(BrthDict0), "../Text-to-Breasonings/brthdict.txt"), splitfurther(BrthDict0,BrthDict01),
+ sort(BrthDict01,BrthDict03),
+ length(BrthDict03,BrthLength0),write("Number of unique breathsonings in dictionary: "), writeln(BrthLength0))->true;true),
+
+
+ ((Room=true,
+ phrase_from_file_s(string(RoomDict0), "../Text-to-Breasonings/roomdict.txt"), splitfurther(RoomDict0,RoomDict01),
+ sort(RoomDict01,RoomDict03),
+ length(RoomDict03,RoomLength0),write("Number of unique rooms in dictionary: "), writeln(RoomLength0))->true;true),
+
+ ((PartOfRoom=true,
+ phrase_from_file_s(string(PartOfRoomDict0), "../Text-to-Breasonings/partofroomdict.txt"), splitfurther(PartOfRoomDict0,PartOfRoomDict01),
+ sort(PartOfRoomDict01,PartOfRoomDict03),
+ length(PartOfRoomDict03,PartOfRoomLength0),write("Number of unique parts of rooms in dictionary: "), writeln(PartOfRoomLength0))->true;true),
+
+ ((Direction=true,
+ phrase_from_file_s(string(DirectionDict0), "../Text-to-Breasonings/directiondict.txt"), splitfurther(DirectionDict0,DirectionDict01),
+ sort(DirectionDict01,DirectionDict03),
+ length(DirectionDict03,DirectionLength0),write("Number of unique directions in dictionary: "), writeln(DirectionLength0))->true;true),
+
+ ((ObjectToPrepare=true,
+ phrase_from_file_s(string(ObjectToPrepareDict0), "../Text-to-Breasonings/objecttopreparedict.txt"), splitfurther(ObjectToPrepareDict0,ObjectToPrepareDict01),
+ sort(ObjectToPrepareDict01,ObjectToPrepareDict03),
+ length(ObjectToPrepareDict03,ObjectToPrepareLength0),write("Number of unique objects to prepare in dictionary: "), writeln(ObjectToPrepareLength0))->true;true),
+
+ ((ObjectToFinish=true,
+ phrase_from_file_s(string(ObjectToFinishDict0), "../Text-to-Breasonings/objecttofinishdict.txt"), splitfurther(ObjectToFinishDict0,ObjectToFinishDict01),
+ sort(ObjectToFinishDict01,ObjectToFinishDict03),
+ length(ObjectToFinishDict03,ObjectToFinishLength0),write("Number of unique objects to finish in dictionary: "), writeln(ObjectToFinishLength0))->true;true),
+
+(complete_display(true)->
+ ((Stringx1=u, %% Use file, not string as input.
+
+ %%maplist(downcase_atom, List2, List3),
+ maplist(string_lower, List2, List3),
+
+%%writeln([list3,List3]),
+ towords3(BrDict03,[],BrDict04,[],_ObjectNames,[],AllUsedNames),
+ towords2(BrDict03t,[],BrDict04t),
+
+%%writeln([brDict04,BrDict04]),
+ subtract(List3,BrDict04,D1),
+%%writeln([list3,brDict04,d1,List3,BrDict04,D1]),
+%%writeln(["subtract(BrDict04,List3,D1).",List3,BrDict04,D1]),
+ length(D1,Length01),Difference is abs(Length01),write("Number of words remaining to define: "), writeln(Difference),
+
+ subtract(AllUsedNames,BrDict04t,D2),
+ %%delete(D21,'',D2),
+ length(D2,Length01t),Differencet is abs(Length01t),write("Number of undefined breasonings: "), writeln(Differencet),
+ %% writeln([undefinedbreasonings,D2]), %% Print undefined breasonings
+
+ %%delete(D31,'',D3),
+ subtract(BrDict04t,AllUsedNames,D3),
+ length(D3,Length01t2),Differencet2 is abs(Length01t2),write("Number of orphaned breasonings: "), writeln(Differencet2),
+
+ %%,writeln([orphanedbreasonings,D3]) %% Print orphaned breasonings
+
+ ((Brth=true,
+
+ %%towords3(BrDict03,[],BrDict04,[],_ObjectNames,[],AllUsedNames),
+ towords2a(BrthDict03,[],BrtDict04t),
+
+ %%subtract(List3,BrtDict04t,Dt1),
+ %%length(Dt1,Lengtht01),Differencet1 is abs(Lengtht01),write("Number of words remaining to define breathsonings for: "), writeln(Differencet1),
+ %%writeln(["Number of words remaining to define breathsonings for",Dt1]), %% Print number of words remaining to define breathsonings for
+
+ subtract(AllUsedNames,BrtDict04t,Dt2),
+ length(Dt2,Lengtht01t),Differencet22 is abs(Lengtht01t),write("Number of undefined breathsonings: "), writeln(Differencet22),
+ %%writeln([undefinedbreathsonings,Dt2]), %% Print undefined breathsonings
+
+ subtract(BrtDict04t,AllUsedNames,Dt3),
+ length(Dt3,Lengtht01t2),Differencet3 is abs(Lengtht01t2),write("Number of orphaned breathsonings: "), writeln(Differencet3)
+
+ %%writeln([orphanedbreathsonings,Dt3]) %% Print orphaned breathsonings
+
+ )->true;true),
+
+ ((Room=true,
+ towords2a(RoomDict03,[],RoomDict04t),
+ subtract(AllUsedNames,RoomDict04t,RoomDt2),
+ length(RoomDt2,RoomLengtht01t),RoomDifferencet22 is abs(RoomLengtht01t),write("Number of undefined rooms: "), writeln(RoomDifferencet22),
+ %%writeln([undefinedrooms,RoomDt2]), %% Print undefined rooms
+ subtract(RoomDict04t,AllUsedNames,RoomDt3),
+ length(RoomDt3,RoomLengtht01t2),RoomDifferencet3 is abs(RoomLengtht01t2),write("Number of orphaned rooms: "), writeln(RoomDifferencet3)
+ %%writeln([orphanedrooms,RoomDt3]) %% Print orphaned rooms
+ )->true;true),
+
+ ((PartOfRoom=true,
+ towords2a(PartOfRoomDict03,[],PartOfRoomDict04t),
+ subtract(AllUsedNames,PartOfRoomDict04t,PartOfRoomDt2),
+ length(PartOfRoomDt2,PartOfRoomLengtht01t),PartOfRoomDifferencet22 is abs(PartOfRoomLengtht01t),write("Number of undefined parts of rooms: "), writeln(PartOfRoomDifferencet22),
+ %%writeln([undefinedPartsOfRooms,PartOfRoomDt2]), %% Print undefined PartsOfRooms
+ subtract(PartOfRoomDict04t,AllUsedNames,PartOfRoomDt3),
+ length(PartOfRoomDt3,PartOfRoomLengtht01t2),PartOfRoomDifferencet3 is abs(PartOfRoomLengtht01t2),write("Number of orphaned parts of rooms: "), writeln(PartOfRoomDifferencet3)
+ %%writeln([orphanedPartsOfRooms,PartOfRoomDt3]) %% Print orphaned PartsOfRooms
+ )->true;true),
+
+ ((Direction=true,
+ towords2a(DirectionDict03,[],DirectionDict04t),
+ subtract(AllUsedNames,DirectionDict04t,DirectionDt2),
+ length(DirectionDt2,DirectionLengtht01t),DirectionDifferencet22 is abs(DirectionLengtht01t),write("Number of undefined directions: "), writeln(DirectionDifferencet22),
+ %%writeln([undefinedDirections,DirectionDt2]), %% Print undefined Directions
+ subtract(DirectionDict04t,AllUsedNames,DirectionDt3),
+ length(DirectionDt3,DirectionLengtht01t2),DirectionDifferencet3 is abs(DirectionLengtht01t2),write("Number of orphaned directions: "), writeln(DirectionDifferencet3)
+ %%writeln([orphanedDirections,DirectionDt3]) %% Print orphaned Directions
+ )->true;true),
+
+ ((ObjectToPrepare=true,
+ towords2a(ObjectToPrepareDict03,[],ObjectToPrepareDict04t),
+ subtract(AllUsedNames,ObjectToPrepareDict04t,ObjectToPrepareDt2),
+ length(ObjectToPrepareDt2,ObjectToPrepareLengtht01t),ObjectToPrepareDifferencet22 is abs(ObjectToPrepareLengtht01t),write("Number of undefined objects to prepare: "), writeln(ObjectToPrepareDifferencet22),
+ %%writeln([undefinedObjectsToPrepare,ObjectToPrepareDt2]), %% Print undefined ObjectsToPrepare
+ subtract(ObjectToPrepareDict04t,AllUsedNames,ObjectToPrepareDt3),
+ length(ObjectToPrepareDt3,ObjectToPrepareLengtht01t2),ObjectToPrepareDifferencet3 is abs(ObjectToPrepareLengtht01t2),write("Number of orphaned objects to prepare: "), writeln(ObjectToPrepareDifferencet3)
+ %%writeln([orphanedObjectsToPrepare,ObjectToPrepareDt3]) %% Print orphaned ObjectsToPrepare
+ )->true;true),
+
+ ((ObjectToFinish=true,
+ towords2a(ObjectToFinishDict03,[],ObjectToFinishDict04t),
+ subtract(AllUsedNames,ObjectToFinishDict04t,ObjectToFinishDt2),
+ length(ObjectToFinishDt2,ObjectToFinishLengtht01t),ObjectToFinishDifferencet22 is abs(ObjectToFinishLengtht01t),write("Number of undefined objects to finish: "), writeln(ObjectToFinishDifferencet22),
+ %%writeln([undefinedObjectsToFinish,ObjectToFinishDt2]), %% Print undefined ObjectsToFinish
+ subtract(ObjectToFinishDict04t,AllUsedNames,ObjectToFinishDt3),
+ length(ObjectToFinishDt3,ObjectToFinishLengtht01t2),ObjectToFinishDifferencet3 is abs(ObjectToFinishLengtht01t2),write("Number of orphaned objects to finish: "), writeln(ObjectToFinishDifferencet3)
+ %%writeln([orphanedObjectsToFinish,ObjectToFinishDt3]) %% Print orphaned ObjectsToFinish
+ )->true;true)
+
+
+
+)->true;(string(Filex),writeln("Number of words, unique words, unique breathsonings, words remaining to define, undefined breasonings, orphaned breasonings, undefined breathsonings and orphaned breathsonings skipped for speed when breasoning out a string.")));true)
+
+,!.
+
+br2(_,A,A,B,B,0,_Brth,BrthDict03,BrthDict03,_Room,RoomDict03,RoomDict03,_PartOfRoom,PartOfRoomDict03,PartOfRoomDict03,_Direction,DirectionDict03,DirectionDict03,_ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict03,_ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict03) :- !.
+br2(List1,BrDict03,BrDict2,BrDict03t,BrDict03t2,N1,Brth,BrthDict03,BrthDict04,Room,RoomDict03,RoomDict04,PartOfRoom,PartOfRoomDict03,PartOfRoomDict04,Direction,DirectionDict03,DirectionDict04,ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict04,ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict04) :-
+ br(List1,BrDict03,BrDict21,BrDict03t,BrDict03t21,Brth,BrthDict03,BrthDict041,Room,RoomDict03,RoomDict041,PartOfRoom,PartOfRoomDict03,PartOfRoomDict041,Direction,DirectionDict03,DirectionDict041,ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict041,ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict041),
+ N2 is N1-1,
+ br2(List1,BrDict21,BrDict2,BrDict03t21,BrDict03t2,N2,Brth,BrthDict041,BrthDict04,Room,RoomDict041,RoomDict04,PartOfRoom,PartOfRoomDict041,PartOfRoomDict04,Direction,DirectionDict041,DirectionDict04,ObjectToPrepare,ObjectToPrepareDict041,ObjectToPrepareDict04,ObjectToFinish,ObjectToFinishDict041,ObjectToFinishDict04),!.
+
+towords2([],A,A) :- !.
+towords2(BrDict03,A,B) :-
+ BrDict03=[[Word,_,_,_]|Rest],
+ %%atom_string(Atom,Word),
+ append(A,[Word],C),
+ towords2(Rest,C,B).
+
+towords2a([],A,A) :- !.
+towords2a(BrDict03,A,B) :-
+ BrDict03=[[Word,_]|Rest],
+ %%atom_string(Atom,Word),
+ append(A,[Word],C),
+ towords2a(Rest,C,B).
+
+towords3([],A,A,C,C,D,D) :- !.
+towords3(BrDict03,A,B,D,E,G,H) :-
+ BrDict03=[[Word1,Word2]|Rest],
+ (Word2=""->append(G,[Word1],I)->true;
+ append(G,[Word2],I)),
+ append(A,[Word1],C),
+ append(D,[Word2],F),
+ towords3(Rest,C,B,F,E,I,H).
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+splitfurther(BrDict01,N) :-
+ phrase(file0(N),BrDict01).
+
+file0(N) --> "[", file(N), "]", !.
+file0([]) --> [].
+
+%%file([]) --> [].
+file([L|Ls]) --> entry(L),",",
+%%{writeln(L)}, %%***
+file(Ls), !. %% file(Ls),{M=[Ls]})), !. %%, {writeln(["l",L])},",", file(Ls), {writeln(["ls",Ls])},!. %%, {append(L,Ls,M)}, !.
+file([L]) --> entry(L),
+%%{writeln(L)},
+!. %%(entry(L),{M=L});{M=[],(writeln("Warning - Entry in incorrect format.")
+%%,abort
+%%)}, !.
+
+entry([Word2,Word4]) -->
+ "[", word(Word), {string_codes(Word2,Word),string(Word2)},
+ ",",
+ word(Word3), {string_codes(Word4,Word3),string(Word4)},
+ "]".
+
+splitfurthert(BrDict01,N) :-
+ phrase(file0t(N),BrDict01).
+
+file0t(N) --> "[", filet(N), "]", !.
+file0t([]) --> [].
+
+%%file([]) --> [].
+filet([L|Ls]) --> entryt(L),",",
+%%{writeln(L)}, %%***
+filet(Ls), !. %% file(Ls),{M=[Ls]})), !. %%, {writeln(["l",L])},",", file(Ls), {writeln(["ls",Ls])},!. %%, {append(L,Ls,M)}, !.
+filet([L]) --> entryt(L),
+%%{writeln(L)},
+!. %%(entry(L),{M=L});{M=[],(writeln("Warning - Entry in incorrect format.")
+%%,abort
+%%)}, !.
+
+entryt([Word2,X3,Y3,Z3]) -->
+ "[", word(Word), {string_codes(Word2,Word),string(Word2)},
+ ",",
+ digits(X),",",{atom_codes(X2,X),atom_number(X2,X3),number(X3)},
+ digits(Y),",",{atom_codes(Y2,Y),atom_number(Y2,Y3),number(Y3)},
+ digits(Z),{atom_codes(Z2,Z),atom_number(Z2,Z3),number(Z3)},
+ "]".
+
+word([X|Xs]) --> [X], {char_type(X,csymf)->true;(X=27->true;X=8217)}, word(Xs), !.
+%%word([X]) --> [X], {char_type(X,csymf);(X=27;X=8217)}, !.
+word([]) --> [].
+
+digits([X|Xs]) --> [X], {(char_type(X,digit)->true;(string_codes(Word2,[X]),Word2="."))}, digits(Xs), !.
+%%digits([X]) --> [X], {(char_type(X,digit);(string_codes(Word2,[X]),Word2="."))}, !.
+digits([]) --> [].
+
+t(BrDict,BrDict4,Word) :-
+ (member([Word,Word1],BrDict)->
+ (member([Word1,_X,_Y,_Z],BrDict4)->true;true);true).
+
+br([],B,B,C,C,_,D,D,_Room,RoomDict03,RoomDict03,_PartOfRoom,PartOfRoomDict03,PartOfRoomDict03,_Direction,DirectionDict03,DirectionDict03,_ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict03,_ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict03) :-
+ !.
+br(Words,BrDict,BrDict2,BrDict4,BrDict5,Brth,BrthDict03,BrthDict04,Room,RoomDict03,RoomDict04,PartOfRoom,PartOfRoomDict03,PartOfRoomDict04,Direction,DirectionDict03,DirectionDict04,ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict04,ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict04) :-
+%trace,
+ maplist(t(BrDict,BrDict4),Words),!.
+ %%).
+brth(_,sweetinvincibleandprayedfor).
+
+%% finds unknown words, asks for their br in form "n of m: word", verify, (can go back x) append and sort, save
+read_string1(S,user_input, "\n", "\r", _End, ObjectToFinishString) :-
+ (auto(on)->S=ObjectToFinishString;
+ read_string(user_input, "\n", "\r", _End, ObjectToFinishString)),!.
+
+%/*
+process_t2b(A,C) :-
+ replace_t2b(Replacements),
+ atom_string(A1,A),
+ replace1_t2b(Replacements,A1,D1),
+ atom_string(D1,C),!.
+
+replace1_t2b([],A,A) :- !.
+replace1_t2b(Replacements,A,D) :-
+ Replacements=[[B,C]|G],
+ atomic_list_concat(E,B,A),
+ atomic_list_concat(E,C,F),
+ replace1_t2b(G,F,D),!.
+
+ replace_t2b([['\\',''],['–',' '],['—',' '],['“','\''],['”','\''],['‘','\''],['’','\''],['⁃','-']]).
+%*/
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/texttobrall2_reading4.pl b/Text-to-Breasonings-master/texttobrall2_reading4.pl
new file mode 100644
index 0000000000000000000000000000000000000000..334557c2d8d7a4c60e0f2cceee9e26c175c4e6aa
--- /dev/null
+++ b/Text-to-Breasonings-master/texttobrall2_reading4.pl
@@ -0,0 +1,623 @@
+main_t2b4:-catch(texttobr2(u,"file.txt",u,u,[auto,on]),Err,handle_error(Err)),halt.
+
+handle_error(_Err):-
+ halt(1).
+main :- halt(1).
+
+% ['../Text-to-Breasonings/text_to_breasonings.pl'].
+% W is 50*4,texttobr2(u,u,u,u,false,false,false,false,false,false,W)
+% where W is the number of words to read
+% and there are approximately 4 words per algorithm.
+
+%% Important: See instructions for using texttobr.pl at https://lucianpedia.wikia.com/wiki/Instructions_for_Using_texttobr(2).pl .
+
+%% use_module(library(pio)). %% In la_strings
+%% use_module(library(dcg/basics)). %% In la_strings
+
+%% texttobr2 - converts file stream to dimensions of objects represented by the words
+%% has object name as separate field for new users of texttobr to verify breasonings by hand
+%% brdict1.txt contains word and object name, brdict2.txt contains object name and x, y and z
+
+%% texttobr2(Runs,File,StringtoBreason,BreasoningLimit).
+:- include('../Text-to-Breasonings/mergetexttobrdict.pl').
+:-include('../listprologinterpreter/la_files.pl').
+:-include('../listprologinterpreter/la_strings.pl').
+
+:-dynamic sn/1.
+:-dynamic f/1.
+
+%:- include('../listprologinterpreter/la_strings').
+%:- include('../Philosophy/14 10 23.pl').
+
+%% Brth is true or false
+%texttobr2(N1,Filex1,Stringx1,M1) :-
+ %texttobr2(N1,Filex1,Stringx1,M1,false,false,false,false,false,false,0,[auto,off]).
+
+texttobr2(N1,Filex1,Stringx1,M1,[auto,on]) :-
+ texttobr2(N1,Filex1,Stringx1,M1,false,false,false,false,false,false,0,[auto,on]).
+/*texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,PartOfRoom,Direction,
+ ObjectToPrepare,ObjectToFinish) :-
+ texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,
+ PartOfRoom,Direction,ObjectToPrepare,ObjectToFinish,0,[auto,off]).
+ */
+texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,PartOfRoom,Direction,
+ ObjectToPrepare,ObjectToFinish,[auto,on]) :-
+ texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,
+ PartOfRoom,Direction,ObjectToPrepare,ObjectToFinish,0,[auto,on]),!.
+
+%texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,PartOfRoom,Direction,
+% ObjectToPrepare,ObjectToFinish,W) :-
+% texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,
+ %PartOfRoom,Direction,ObjectToPrepare,ObjectToFinish,0,[auto,off]).
+
+texttobr2(N1,Filex1,Stringx1,M1,Brth,Room,PartOfRoom,Direction,ObjectToPrepare,ObjectToFinish,Words_to_read,[auto,on]) :-
+ retractall(auto(_)),
+ assertz(auto(on)),
+
+(Stringx1=""->true;
+( retractall(complete_display(_)),
+ assertz(complete_display(false)),
+
+ retractall(words_to_read(_)),
+ assertz(words_to_read(Words_to_read)),
+
+ ((number(N1),N=N1)->true;
+ (N1=u,N=1)),
+
+ ((Filex1=u,Filex="../Text-to-Breasonings/file.txt")->true;
+ Filex=Filex1),
+
+ ((number(M1),M=M1)->true;
+ M=all), %% If m1 is undefined or all then m=all
+
+ prep(List1,BrDict03,BrDict03t,Filex,Stringx1,M,Brth,BrthDict03,Room,RoomDict03,PartOfRoom,PartOfRoomDict03,Direction,DirectionDict03,ObjectToPrepare,ObjectToPrepareDict03,ObjectToFinish,ObjectToFinishDict03),
+
+findall(List3,(member(C,List1),downcase_atom(C,List2),atom_string(List2,List3)),D),
+ br2(D,BrDict03,BrDict2,BrDict03t,BrDict03t2,N,Brth,BrthDict03,BrthDict04,Room,RoomDict03,RoomDict04,PartOfRoom,PartOfRoomDict03,PartOfRoomDict04,Direction,DirectionDict03,DirectionDict04,ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict04,ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict04),
+/* sort(BrDict2,BrDict3),
+ (BrDict03=BrDict3->true;
+
+ (open_s("../Text-to-Breasonings/brdict1.txt",write,Stream),
+%% string_codes(BrDict3),
+ write(Stream,BrDict3),
+ close(Stream))),
+
+ sort(BrDict03t2,BrDict03t3),
+ (BrDict03t=BrDict03t3->true;
+ (open_s("../Text-to-Breasonings/brdict2.txt",write,Stream2),
+%% string_codes(BrDict3),
+ write(Stream2,BrDict03t3),
+ close(Stream2))),
+
+ ((Brth=true,
+ sort(BrthDict04,BrthDict044),
+ (BrthDict03=BrthDict044->true;
+ (open_s("../Text-to-Breasonings/brthdict.txt",write,Stream3),
+%% string_codes(BrDict3),
+ write(Stream3,BrthDict044),
+ close(Stream3))))->true;true),
+
+ ((Room=true,
+ sort(RoomDict04,RoomDict044),
+ (RoomDict04=RoomDict044->true;
+ (open_s("../Text-to-Breasonings/roomdict.txt",write,Stream4),
+%% string_codes(BrDict3),
+ write(Stream4,RoomDict044),
+ close(Stream4))))->true;true),
+
+ ((PartOfRoom=true,
+ sort(PartOfRoomDict04,PartOfRoomDict044),
+ (PartOfRoomDict04=PartOfRoomDict044->true;
+ (open_s("../Text-to-Breasonings/partofroomdict.txt",write,Stream5),
+%% string_codes(BrDict3),
+ write(Stream5,PartOfRoomDict044),
+ close(Stream5))))->true;true),
+
+ ((Direction=true,
+ sort(DirectionDict04,DirectionDict044),
+ (DirectionDict04=DirectionDict044->true;
+ (open_s("../Text-to-Breasonings/directiondict.txt",write,Stream6),
+%% string_codes(BrDict3),
+ write(Stream6,DirectionDict044),
+ close(Stream6))))->true;true),
+
+ ((ObjectToPrepare=true,
+ sort(ObjectToPrepareDict04,ObjectToPrepareDict044),
+ (ObjectToPrepareDict04=ObjectToPrepareDict044->true;
+ (open_s("../Text-to-Breasonings/objecttopreparedict.txt",write,Stream7),
+%% string_codes(BrDict3),
+ write(Stream7,ObjectToPrepareDict044),
+ close(Stream7))))->true;true),
+
+ ((ObjectToFinish=true,
+ sort(ObjectToFinishDict04,ObjectToFinishDict044),
+ (ObjectToFinishDict04=ObjectToFinishDict044->true;
+ (open_s("../Text-to-Breasonings/objecttofinishdict.txt",write,Stream8),
+%% string_codes(BrDict3),
+ write(Stream8,ObjectToFinishDict044),
+ close(Stream8))))->true;true),
+ */
+ length(List1,List1_length_a),
+ Dividend_a is ceiling(List1_length_a/250),
+ Dividend_b is Dividend_a*3, % for graciously giving
+ texttobr2_a(Dividend_b,meditation),
+ texttobr2_a(Dividend_b,medicine),
+ texttobr2_a(Dividend_b,pedagogy)
+ )),
+
+ !.
+
+
+replace0(Input,Find,Replace,SepandPad,M,Output0) :-
+ replace00(Input,Find,Replace,SepandPad,[],Output1),
+ truncate(Output1,M,Output0),!.
+replace00([],_Find,_Replace,_SepandPad,Input,Input) :- !.
+replace00(Input1,Find,Replace,SepandPad,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ string_codes(Input4,String1),
+ replace1(String1,Find,Replace,[],Input7),
+ string_codes(Output,Input7),
+ split_string(Output,SepandPad,SepandPad,Input8),
+ append(Input2,Input8,Input9),
+ replace00(Input5,Find,Replace,SepandPad,Input9,Input3), !.
+replace1([],_Find,_Replace,Input,Input) :- !.
+replace1(Input1,Find,Replace,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ member(Input4,Find),
+ append(Input2,[Replace],Input6),
+ replace1(Input5,Find,Replace,Input6,Input3), !.
+replace1(Input1,Find,Replace,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ not(member(Input4,Find)),
+ append(Input2,[Input4],Input6),
+ replace1(Input5,Find,Replace,Input6,Input3), !.
+
+split_string_onnonletter(String00,List1) :-
+ string_codes(String00,String1),
+ split_string_onnonletter(String1,[],List0),
+ string_codes(List0,List2),
+ split_string(List2," "," ",List1),!.
+split_string_onnonletter([],Input,Input) :- !.
+split_string_onnonletter(Input1,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ not(char_type(Input4,alpha)),
+ append(Input2,[32],Input6),
+ split_string_onnonletter(Input5,Input6,Input3), !.
+split_string_onnonletter(Input1,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ char_type(Input4,alpha),
+ append(Input2,[Input4],Input6),
+ split_string_onnonletter(Input5,Input6,Input3), !.
+
+%% Truncates the list if m is not undefined and m is greater than or equal to the length of string0
+truncate(List1,M,String0) :-
+ ((number(M),length(String0,M),
+ append(String0,_,List1))->true;
+ String0=List1),!.
+
+
+
+prep(List,BrDict03,BrDict03t,Filex,Stringx1,M,Brth,BrthDict03,Room,RoomDict03,PartOfRoom,PartOfRoomDict03,Direction,DirectionDict03,ObjectToPrepare,ObjectToPrepareDict03,ObjectToFinish,ObjectToFinishDict03) :-
+ phrase_from_file_s(string(BrDict0), "../Text-to-Breasonings/brdict1.txt"),
+
+ %%Chars="’",
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ %%split_string(BrDict0,SepandPad,SepandPad,BrDict01),
+%%writeln([brDict0,BrDict0]),
+%%writeln([brdict1]),
+ splitfurther(BrDict0,BrDict01),
+%%writeln([brDict01,BrDict01]),
+ %%char_code(Escape,27),
+ %%delete(BrDict01,[Escape,_,_,_,_],BrDict021),
+%%writeln([brDict021,BrDict021]),
+ %%char_code(Apostrophe,8217),
+ %%delete(BrDict021,[Apostrophe,_,_,_,_],BrDict02),
+%%writeln([brDict02,BrDict02]),
+ sort(BrDict01,BrDict03),
+%%writeln([brDict03,BrDict03]),
+ length(BrDict03,Length0),write("Number of words in dictionary: "), writeln(Length0),
+
+ %%writeln(''),
+ %%writeln([brdict2]),
+ phrase_from_file_s(string(BrDict0t), "../Text-to-Breasonings/brdict2.txt"),
+ %%Chars="’",
+ %%split_string(BrDict0,SepandPad,SepandPad,BrDict01),
+%%writeln([brDict0,BrDict0]),
+ splitfurthert(BrDict0t,BrDict01t),
+%%writeln([brDict01,BrDict01]),
+ %%delete(BrDict01t,[Escape,_,_,_,_],BrDict021t),
+%%writeln([brDict021,BrDict021]),
+ %%delete(BrDict021t,[Apostrophe,_,_,_,_],BrDict02t),
+%%writeln([brDict02,BrDict02]),
+ sort(BrDict01t,BrDict03t),
+
+% br_freq %B=BrDict03t,A=BrDict03,findall([DL,C,"\n"],(member([C,_,_,_],B),findall(_,member([_,C],A),D),length(D,DL)),E),sort(E,F),reverse(F,G),writeln([br_freq,G]),
+
+%%writeln([brDict03,BrDict03]),
+ length(BrDict03t,Length0t),write("Number of unique breasonings in dictionary: "), writeln(Length0t),
+
+ ((Stringx1=u,
+ phrase_from_file_s(string(String001), Filex))->true;
+ String001=Stringx1),
+
+ process_t2b(String001,String00),
+
+ retractall(f(_)),
+ assertz(f(String00)),
+
+ %trace,
+ %string_codes(SNL0,String00),
+ split_string(String00,"\n\r.","\n\r.",SNL1),
+ delete(SNL1,"",SNL),
+ length(SNL,SN),
+ retractall(sn(_)),
+ assertz(sn(SN)),
+
+ split_string(String00,SepandPad,SepandPad,List1),
+ %%split_string_onnonletter(String00,List1),
+
+ truncate(List1,M,List),
+
+ %findall([X," "],member(X,List),Y),
+ %foldr(string_concat,Y,Y1),
+
+
+ /**replace0(String0,[8221, 8220], 34, SepandPad, M, String1),
+ replace0(String1,[8216, 8217], 39, SepandPad, M, String2),
+ replace0(String2,[8259, 8211, 8212], 45, SepandPad, M, String3),
+ replace0(String3,[160], 32, SepandPad, M, List),
+ **/
+
+%%atom_codes(Atom999,String),writeln([atom999,Atom999]),
+
+%%writeln([list,List]),
+ %%delete(List,Escape,List11),
+%%writeln([list11,List11]),
+ %%delete(List11,Apostrophe,List1),
+%%writeln([list1,List1]),
+ length(List,Length1),write("Number of words to breason out in file: "), writeln(Length1),
+ sort(List,List2),
+%%writeln([list2,List2]),
+ length(List2,Length2),write("Number of unique words in file: "), writeln(Length2),
+
+
+
+ ((Brth=true,
+ phrase_from_file_s(string(BrthDict0), "../Text-to-Breasonings/brthdict.txt"), splitfurther(BrthDict0,BrthDict01),
+ sort(BrthDict01,BrthDict03),
+ length(BrthDict03,BrthLength0),write("Number of unique breathsonings in dictionary: "), writeln(BrthLength0))->true;true),
+
+
+ ((Room=true,
+ phrase_from_file_s(string(RoomDict0), "../Text-to-Breasonings/roomdict.txt"), splitfurther(RoomDict0,RoomDict01),
+ sort(RoomDict01,RoomDict03),
+ length(RoomDict03,RoomLength0),write("Number of unique rooms in dictionary: "), writeln(RoomLength0))->true;true),
+
+ ((PartOfRoom=true,
+ phrase_from_file_s(string(PartOfRoomDict0), "../Text-to-Breasonings/partofroomdict.txt"), splitfurther(PartOfRoomDict0,PartOfRoomDict01),
+ sort(PartOfRoomDict01,PartOfRoomDict03),
+ length(PartOfRoomDict03,PartOfRoomLength0),write("Number of unique parts of rooms in dictionary: "), writeln(PartOfRoomLength0))->true;true),
+
+ ((Direction=true,
+ phrase_from_file_s(string(DirectionDict0), "../Text-to-Breasonings/directiondict.txt"), splitfurther(DirectionDict0,DirectionDict01),
+ sort(DirectionDict01,DirectionDict03),
+ length(DirectionDict03,DirectionLength0),write("Number of unique directions in dictionary: "), writeln(DirectionLength0))->true;true),
+
+ ((ObjectToPrepare=true,
+ phrase_from_file_s(string(ObjectToPrepareDict0), "../Text-to-Breasonings/objecttopreparedict.txt"), splitfurther(ObjectToPrepareDict0,ObjectToPrepareDict01),
+ sort(ObjectToPrepareDict01,ObjectToPrepareDict03),
+ length(ObjectToPrepareDict03,ObjectToPrepareLength0),write("Number of unique objects to prepare in dictionary: "), writeln(ObjectToPrepareLength0))->true;true),
+
+ ((ObjectToFinish=true,
+ phrase_from_file_s(string(ObjectToFinishDict0), "../Text-to-Breasonings/objecttofinishdict.txt"), splitfurther(ObjectToFinishDict0,ObjectToFinishDict01),
+ sort(ObjectToFinishDict01,ObjectToFinishDict03),
+ length(ObjectToFinishDict03,ObjectToFinishLength0),write("Number of unique objects to finish in dictionary: "), writeln(ObjectToFinishLength0))->true;true),
+
+(complete_display(true)->
+ ((Stringx1=u, %% Use file, not string as input.
+
+ %%maplist(downcase_atom, List2, List3),
+ maplist(string_lower, List2, List3),
+
+%%writeln([list3,List3]),
+ towords3(BrDict03,[],BrDict04,[],_ObjectNames,[],AllUsedNames),
+ towords2(BrDict03t,[],BrDict04t),
+
+%%writeln([brDict04,BrDict04]),
+ subtract(List3,BrDict04,D1),
+%%writeln([list3,brDict04,d1,List3,BrDict04,D1]),
+%%writeln(["subtract(BrDict04,List3,D1).",List3,BrDict04,D1]),
+ length(D1,Length01),Difference is abs(Length01),write("Number of words remaining to define: "), writeln(Difference),
+
+ subtract(AllUsedNames,BrDict04t,D2),
+ %%delete(D21,'',D2),
+ length(D2,Length01t),Differencet is abs(Length01t),write("Number of undefined breasonings: "), writeln(Differencet),
+ %% writeln([undefinedbreasonings,D2]), %% Print undefined breasonings
+
+ %%delete(D31,'',D3),
+ subtract(BrDict04t,AllUsedNames,D3),
+ length(D3,Length01t2),Differencet2 is abs(Length01t2),write("Number of orphaned breasonings: "), writeln(Differencet2),
+
+ %%,writeln([orphanedbreasonings,D3]) %% Print orphaned breasonings
+
+ ((Brth=true,
+
+ %%towords3(BrDict03,[],BrDict04,[],_ObjectNames,[],AllUsedNames),
+ towords2a(BrthDict03,[],BrtDict04t),
+
+ %%subtract(List3,BrtDict04t,Dt1),
+ %%length(Dt1,Lengtht01),Differencet1 is abs(Lengtht01),write("Number of words remaining to define breathsonings for: "), writeln(Differencet1),
+ %%writeln(["Number of words remaining to define breathsonings for",Dt1]), %% Print number of words remaining to define breathsonings for
+
+ subtract(AllUsedNames,BrtDict04t,Dt2),
+ length(Dt2,Lengtht01t),Differencet22 is abs(Lengtht01t),write("Number of undefined breathsonings: "), writeln(Differencet22),
+ %%writeln([undefinedbreathsonings,Dt2]), %% Print undefined breathsonings
+
+ subtract(BrtDict04t,AllUsedNames,Dt3),
+ length(Dt3,Lengtht01t2),Differencet3 is abs(Lengtht01t2),write("Number of orphaned breathsonings: "), writeln(Differencet3)
+
+ %%writeln([orphanedbreathsonings,Dt3]) %% Print orphaned breathsonings
+
+ )->true;true),
+
+ ((Room=true,
+ towords2a(RoomDict03,[],RoomDict04t),
+ subtract(AllUsedNames,RoomDict04t,RoomDt2),
+ length(RoomDt2,RoomLengtht01t),RoomDifferencet22 is abs(RoomLengtht01t),write("Number of undefined rooms: "), writeln(RoomDifferencet22),
+ %%writeln([undefinedrooms,RoomDt2]), %% Print undefined rooms
+ subtract(RoomDict04t,AllUsedNames,RoomDt3),
+ length(RoomDt3,RoomLengtht01t2),RoomDifferencet3 is abs(RoomLengtht01t2),write("Number of orphaned rooms: "), writeln(RoomDifferencet3)
+ %%writeln([orphanedrooms,RoomDt3]) %% Print orphaned rooms
+ )->true;true),
+
+ ((PartOfRoom=true,
+ towords2a(PartOfRoomDict03,[],PartOfRoomDict04t),
+ subtract(AllUsedNames,PartOfRoomDict04t,PartOfRoomDt2),
+ length(PartOfRoomDt2,PartOfRoomLengtht01t),PartOfRoomDifferencet22 is abs(PartOfRoomLengtht01t),write("Number of undefined parts of rooms: "), writeln(PartOfRoomDifferencet22),
+ %%writeln([undefinedPartsOfRooms,PartOfRoomDt2]), %% Print undefined PartsOfRooms
+ subtract(PartOfRoomDict04t,AllUsedNames,PartOfRoomDt3),
+ length(PartOfRoomDt3,PartOfRoomLengtht01t2),PartOfRoomDifferencet3 is abs(PartOfRoomLengtht01t2),write("Number of orphaned parts of rooms: "), writeln(PartOfRoomDifferencet3)
+ %%writeln([orphanedPartsOfRooms,PartOfRoomDt3]) %% Print orphaned PartsOfRooms
+ )->true;true),
+
+ ((Direction=true,
+ towords2a(DirectionDict03,[],DirectionDict04t),
+ subtract(AllUsedNames,DirectionDict04t,DirectionDt2),
+ length(DirectionDt2,DirectionLengtht01t),DirectionDifferencet22 is abs(DirectionLengtht01t),write("Number of undefined directions: "), writeln(DirectionDifferencet22),
+ %%writeln([undefinedDirections,DirectionDt2]), %% Print undefined Directions
+ subtract(DirectionDict04t,AllUsedNames,DirectionDt3),
+ length(DirectionDt3,DirectionLengtht01t2),DirectionDifferencet3 is abs(DirectionLengtht01t2),write("Number of orphaned directions: "), writeln(DirectionDifferencet3)
+ %%writeln([orphanedDirections,DirectionDt3]) %% Print orphaned Directions
+ )->true;true),
+
+ ((ObjectToPrepare=true,
+ towords2a(ObjectToPrepareDict03,[],ObjectToPrepareDict04t),
+ subtract(AllUsedNames,ObjectToPrepareDict04t,ObjectToPrepareDt2),
+ length(ObjectToPrepareDt2,ObjectToPrepareLengtht01t),ObjectToPrepareDifferencet22 is abs(ObjectToPrepareLengtht01t),write("Number of undefined objects to prepare: "), writeln(ObjectToPrepareDifferencet22),
+ %%writeln([undefinedObjectsToPrepare,ObjectToPrepareDt2]), %% Print undefined ObjectsToPrepare
+ subtract(ObjectToPrepareDict04t,AllUsedNames,ObjectToPrepareDt3),
+ length(ObjectToPrepareDt3,ObjectToPrepareLengtht01t2),ObjectToPrepareDifferencet3 is abs(ObjectToPrepareLengtht01t2),write("Number of orphaned objects to prepare: "), writeln(ObjectToPrepareDifferencet3)
+ %%writeln([orphanedObjectsToPrepare,ObjectToPrepareDt3]) %% Print orphaned ObjectsToPrepare
+ )->true;true),
+
+ ((ObjectToFinish=true,
+ towords2a(ObjectToFinishDict03,[],ObjectToFinishDict04t),
+ subtract(AllUsedNames,ObjectToFinishDict04t,ObjectToFinishDt2),
+ length(ObjectToFinishDt2,ObjectToFinishLengtht01t),ObjectToFinishDifferencet22 is abs(ObjectToFinishLengtht01t),write("Number of undefined objects to finish: "), writeln(ObjectToFinishDifferencet22),
+ %%writeln([undefinedObjectsToFinish,ObjectToFinishDt2]), %% Print undefined ObjectsToFinish
+ subtract(ObjectToFinishDict04t,AllUsedNames,ObjectToFinishDt3),
+ length(ObjectToFinishDt3,ObjectToFinishLengtht01t2),ObjectToFinishDifferencet3 is abs(ObjectToFinishLengtht01t2),write("Number of orphaned objects to finish: "), writeln(ObjectToFinishDifferencet3)
+ %%writeln([orphanedObjectsToFinish,ObjectToFinishDt3]) %% Print orphaned ObjectsToFinish
+ )->true;true)
+
+
+
+)->true;(string(Filex),writeln("Number of words, unique words, unique breathsonings, words remaining to define, undefined breasonings, orphaned breasonings, undefined breathsonings and orphaned breathsonings skipped for speed when breasoning out a string.")));true)
+
+,!.
+
+br2(_,A,A,B,B,0,_Brth,BrthDict03,BrthDict03,_Room,RoomDict03,RoomDict03,_PartOfRoom,PartOfRoomDict03,PartOfRoomDict03,_Direction,DirectionDict03,DirectionDict03,_ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict03,_ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict03) :- !.
+br2(List1,BrDict03,BrDict2,BrDict03t,BrDict03t2,N1,Brth,BrthDict03,BrthDict04,Room,RoomDict03,RoomDict04,PartOfRoom,PartOfRoomDict03,PartOfRoomDict04,Direction,DirectionDict03,DirectionDict04,ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict04,ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict04) :-
+ br(List1,BrDict03,BrDict21,BrDict03t,BrDict03t21,Brth,BrthDict03,BrthDict041,Room,RoomDict03,RoomDict041,PartOfRoom,PartOfRoomDict03,PartOfRoomDict041,Direction,DirectionDict03,DirectionDict041,ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict041,ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict041),
+ N2 is N1-1,
+ br2(List1,BrDict21,BrDict2,BrDict03t21,BrDict03t2,N2,Brth,BrthDict041,BrthDict04,Room,RoomDict041,RoomDict04,PartOfRoom,PartOfRoomDict041,PartOfRoomDict04,Direction,DirectionDict041,DirectionDict04,ObjectToPrepare,ObjectToPrepareDict041,ObjectToPrepareDict04,ObjectToFinish,ObjectToFinishDict041,ObjectToFinishDict04),!.
+
+towords2([],A,A) :- !.
+towords2(BrDict03,A,B) :-
+ BrDict03=[[Word,_,_,_]|Rest],
+ %%atom_string(Atom,Word),
+ append(A,[Word],C),
+ towords2(Rest,C,B).
+
+towords2a([],A,A) :- !.
+towords2a(BrDict03,A,B) :-
+ BrDict03=[[Word,_]|Rest],
+ %%atom_string(Atom,Word),
+ append(A,[Word],C),
+ towords2a(Rest,C,B).
+
+towords3([],A,A,C,C,D,D) :- !.
+towords3(BrDict03,A,B,D,E,G,H) :-
+ BrDict03=[[Word1,Word2]|Rest],
+ (Word2=""->append(G,[Word1],I)->true;
+ append(G,[Word2],I)),
+ append(A,[Word1],C),
+ append(D,[Word2],F),
+ towords3(Rest,C,B,F,E,I,H).
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+splitfurther(BrDict01,N) :-
+ phrase(file0(N),BrDict01).
+
+file0(N) --> "[", file(N), "]", !.
+file0([]) --> [].
+
+%%file([]) --> [].
+file([L|Ls]) --> entry(L),",",
+%%{writeln(L)}, %%***
+file(Ls), !. %% file(Ls),{M=[Ls]})), !. %%, {writeln(["l",L])},",", file(Ls), {writeln(["ls",Ls])},!. %%, {append(L,Ls,M)}, !.
+file([L]) --> entry(L),
+%%{writeln(L)},
+!. %%(entry(L),{M=L});{M=[],(writeln("Warning - Entry in incorrect format.")
+%%,abort
+%%)}, !.
+
+entry([Word2,Word4]) -->
+ "[", word(Word), {string_codes(Word2,Word),string(Word2)},
+ ",",
+ word(Word3), {string_codes(Word4,Word3),string(Word4)},
+ "]".
+
+splitfurthert(BrDict01,N) :-
+ phrase(file0t(N),BrDict01).
+
+file0t(N) --> "[", filet(N), "]", !.
+file0t([]) --> [].
+
+%%file([]) --> [].
+filet([L|Ls]) --> entryt(L),",",
+%%{writeln(L)}, %%***
+filet(Ls), !. %% file(Ls),{M=[Ls]})), !. %%, {writeln(["l",L])},",", file(Ls), {writeln(["ls",Ls])},!. %%, {append(L,Ls,M)}, !.
+filet([L]) --> entryt(L),
+%%{writeln(L)},
+!. %%(entry(L),{M=L});{M=[],(writeln("Warning - Entry in incorrect format.")
+%%,abort
+%%)}, !.
+
+entryt([Word2,X3,Y3,Z3]) -->
+ "[", word(Word), {string_codes(Word2,Word),string(Word2)},
+ ",",
+ digits(X),",",{atom_codes(X2,X),atom_number(X2,X3),number(X3)},
+ digits(Y),",",{atom_codes(Y2,Y),atom_number(Y2,Y3),number(Y3)},
+ digits(Z),{atom_codes(Z2,Z),atom_number(Z2,Z3),number(Z3)},
+ "]".
+
+word([X|Xs]) --> [X], {char_type(X,csymf)->true;(X=27->true;X=8217)}, word(Xs), !.
+%%word([X]) --> [X], {char_type(X,csymf);(X=27;X=8217)}, !.
+word([]) --> [].
+
+digits([X|Xs]) --> [X], {(char_type(X,digit)->true;(string_codes(Word2,[X]),Word2="."))}, digits(Xs), !.
+%%digits([X]) --> [X], {(char_type(X,digit);(string_codes(Word2,[X]),Word2="."))}, !.
+digits([]) --> [].
+
+t(BrDict,BrDict4,Word,W2) :-
+ W1=[square,1,1,0],
+ (member([Word,Word1],BrDict)->
+ (member([Word1,X,Y,Z],BrDict4)->W2=[Word1,X,Y,Z];W2=W1);W2=W1).
+
+br([],B,B,C,C,_,D,D,_Room,RoomDict03,RoomDict03,_PartOfRoom,PartOfRoomDict03,PartOfRoomDict03,_Direction,DirectionDict03,DirectionDict03,_ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict03,_ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict03) :-
+ !.
+br(Words,BrDict,BrDict2,BrDict4,BrDict5,Brth,BrthDict03,BrthDict04,Room,RoomDict03,RoomDict04,PartOfRoom,PartOfRoomDict03,PartOfRoomDict04,Direction,DirectionDict03,DirectionDict04,ObjectToPrepare,ObjectToPrepareDict03,ObjectToPrepareDict04,ObjectToFinish,ObjectToFinishDict03,ObjectToFinishDict04) :-
+
+%trace,
+ findall([Word1,X,Y,Z],(member(W1,Words),t(BrDict,BrDict4,W1,[Word1,X,Y,Z])),Words1),
+ length(Words1,Words1L),
+ sn(SN),
+
+ divide(1000,Words1,[],Words2),
+ length(Words2,Words2L),
+ numbers(Words2L,1,[],Words2Ns),
+ findall(Words6,(member(UN,Words2Ns),get_item_n(Words2,UN,U),
+ findall(["[",W,",",X,",",Y,",",Z,"]",","],(member([W,X,Y,Z],U)),U1),
+ flatten(U1,Words3),
+ append(Words4,[_],Words3),
+ flatten(["a",UN,"(",Words4,")"],Words5),
+ %trace,
+ foldr(string_concat,Words5,Words6)),Words7),
+ %foldr(string_concat,Words7,Words8),
+
+ findall([X1,",\n"],member(X1,Words7),X2),
+ flatten(["a:-",X2],X3),
+ append(X31,[_],X3),
+ foldr(string_concat,X31,Words8),
+
+ findall([X1,".\n"],member(X1,Words7),X21),
+ flatten(X21,X22),
+ foldr(string_concat,X22,Words81),
+ foldr(string_concat,["%SN=",SN,"\n","main:-catch(a,Err,handle_error(Err)),halt.\nhandle_error(_Err):-\n halt(1).\nmain :- halt(1).\n",Words8,".\n",Words81],Words9),
+ save_file_s("a.pl",Words9),
+ shell1_s("swipl --goal=main --stand_alone=true -o a -c a.pl"),
+
+
+ %trace,
+
+ R is ceiling((4*16000)/SN), % medit, tt, medic, hq thoughts
+
+ %numbers(R,1,[],Rs),
+ length(Rs,R),
+ findall(["a",","],member(_R1,Rs),R2),
+ flatten(["b:-",R2],R3),
+ append(R31,[_],R3),
+ flatten(["%R=",R,"\n","main:-catch(b,Err,handle_error(Err)),halt.\nhandle_error(_Err):-\n halt(1).\nmain :- halt(1).\n",R31,".\n",Words8,".\n",Words81],Words92),
+foldr(string_concat,Words92,RWords8),
+
+ %foldr(string_concat,Words91,RWords8),
+ save_file_s("b.pl",RWords8),
+ shell1_s("swipl --goal=main --stand_alone=true -o b -c b.pl"),
+
+
+% for attached people (to a single simulation person)
+
+/*
+ R0 is ceiling((4*16000)/SN), % medit, tt, medic frozen age, hq thought
+
+
+ %numbers(R,1,[],Rs),
+ length(Rs0,R0),
+ findall(["a",","],member(_,Rs0),R20),
+ flatten(["b:-",R20],R30),
+ append(R310,[_],R30),
+ flatten(["%R=",R0,"\n","main:-b.\n",R310,".\n",Words8,".\n",Words81],Words920),
+foldr(string_concat,Words920,RWords80),
+
+ %foldr(string_concat,Words91,RWords8),
+ save_file_s("b0.pl",RWords80),
+ shell1_s("swipl --goal=main --stand_alone=true -o b0 -c b0.pl"),
+*/
+
+
+f(F),term_to_atom(F,F1),
+ flatten([":-include('texttobr.pl').\n","main:-catch(texttobr(",R,",u,",F1,",u),Err,handle_error(Err)),halt.\nhandle_error(_Err):-\n halt(1).\nmain :- halt(1).\n"],Words93),
+foldr(string_concat,Words93,RWords81),
+ save_file_s("c.pl",RWords81),
+ shell1_s("swipl --goal=main --stand_alone=true -o c -c c.pl"),
+
+
+ !.
+
+divide(_,[],Words2,Words2) :- !.
+divide(N,Words1,Words21,Words22) :-
+ length(L,N),
+ (append(L,L1,Words1)->L2=L;
+ (L2=Words1,L1=[])),
+ append(Words21,[L2],Words23),
+ divide(N,L1,Words23,Words22),!.
+
+ %%).
+brth(_,sweetinvincibleandprayedfor).
+
+%% finds unknown words, asks for their br in form "n of m: word", verify, (can go back x) append and sort, save
+read_string1(S,user_input, "\n", "\r", _, ObjectToFinishString) :-
+ (auto(on)->S=ObjectToFinishString;
+ read_string(user_input, "\n", "\r", _, ObjectToFinishString)),!.
+
+%/*
+process_t2b(A,C) :-
+ replace_t2b(Replacements),
+ atom_string(A1,A),
+ replace1_t2b(Replacements,A1,D1),
+ atom_string(D1,C),!.
+
+replace1_t2b([],A,A) :- !.
+replace1_t2b(Replacements,A,D) :-
+ Replacements=[[B,C]|G],
+ atomic_list_concat(E,B,A),
+ atomic_list_concat(E,C,F),
+ replace1_t2b(G,F,D),!.
+
+ replace_t2b([['\\',''],['–',' '],['—',' '],['“','\''],['”','\''],['‘','\''],['’','\''],['⁃','-']]).
+%*/
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/time_hop b/Text-to-Breasonings-master/time_hop
new file mode 100644
index 0000000000000000000000000000000000000000..55829e98759764b44122e6817b7ce72bbba7ef34
Binary files /dev/null and b/Text-to-Breasonings-master/time_hop differ
diff --git a/Text-to-Breasonings-master/time_hop.pl b/Text-to-Breasonings-master/time_hop.pl
new file mode 100644
index 0000000000000000000000000000000000000000..18b13c50bcbf3d46477fa1d2fce0ccd76f9e8e30
--- /dev/null
+++ b/Text-to-Breasonings-master/time_hop.pl
@@ -0,0 +1,6 @@
+:-include('text_to_breasonings.pl').
+main:-catch((N is 1,texttobr2_1(N)),Err,handle_error(Err)),halt.
+
+handle_error(_Err):-
+ halt(1).
+main :- halt(1).
\ No newline at end of file
diff --git a/Text-to-Breasonings-master/truncate.pl b/Text-to-Breasonings-master/truncate.pl
new file mode 100644
index 0000000000000000000000000000000000000000..827a50170a5fe240af74695283ba855ba9d20dfe
--- /dev/null
+++ b/Text-to-Breasonings-master/truncate.pl
@@ -0,0 +1,44 @@
+%:-include('la_strings2.pl').
+:-include('../listprologinterpreter/la_strings.pl').
+:-include('../listprologinterpreter/la_strings_string.pl').
+
+% word_count(["file","file.txt"],Words).
+% Words = 69.
+
+% word_count(["string","a b c"],Words).
+% Words = 3.
+
+
+% given file with number of As required and gl file length, gives div and mod values for t2b
+
+truncate1(Type,File1,Words1,File2) :-
+
+
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+
+ (Type=file->
+ (phrase_from_file_s(string(String2), File1));
+ (Type=string,File1=String2)),
+ split_string(String2,SepandPad,SepandPad,String3),
+ %writeln(String3),
+ length(String3,Words2),
+
+ (Words1>Words2->Words3=Words2;Words3=Words1),
+ length(String4,Words3),
+ append(String4,_,String3),
+
+ findall([Item," "],member(Item,String4),Item2),
+ maplist(append,[Item2],[Item3]),
+ concat_list(Item3,String5),
+
+ %term_to_atom(Item2,String4a),
+ %string_atom(String5,String4a),
+
+ (Type=file->
+
+ (open_s(File2,write,Stream3),
+ write(Stream3,String5),
+ close(Stream3));
+
+ (Type=string,File2=String5))
+ ,!.
diff --git a/Text-to-Breasonings-master/truncate_between.pl b/Text-to-Breasonings-master/truncate_between.pl
new file mode 100644
index 0000000000000000000000000000000000000000..9923ec033d09ca4393d23d5b8230950237dacddb
--- /dev/null
+++ b/Text-to-Breasonings-master/truncate_between.pl
@@ -0,0 +1,43 @@
+%:-include('la_strings2.pl').
+:-include('../listprologinterpreter/la_strings.pl').
+:-include('../listprologinterpreter/la_strings_string.pl').
+
+% word_count(["file","file.txt"],Words).
+% Words = 69.
+
+% word_count(["string","a b c"],Words).
+% Words = 3.
+
+
+% given file with number of As required and gl file length, gives div and mod values for t2b
+
+truncate_between1(File1,Words_before,Words_during,File2) :-
+
+ Words_total is Words_before+Words_during,
+
+SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+
+ (true->
+ (phrase_from_file_s(string(String2), File1));
+ _String1=String2),
+ split_string(String2,SepandPad,SepandPad,String3),
+ %writeln(String3),
+ length(String3,Words2),
+
+ (Words_total>Words2->Words3=Words2;Words3=Words_total),
+ length(String4,Words3),
+ append(String4,_,String3),
+
+ length(String5a,Words_during),
+ append(_,String5a,String4),
+
+ findall([Item," "],member(Item,String5a),Item2),
+ maplist(append,[Item2],[Item3]),
+ concat_list(Item3,String5),
+
+ %term_to_atom(Item2,String4a),
+ %string_atom(String5,String4a),
+
+ (open_s(File2,write,Stream3),
+ write(Stream3,String5),
+ close(Stream3)),!.
diff --git a/Text-to-Breasonings-master/truncate_words_conserving_formatting.pl b/Text-to-Breasonings-master/truncate_words_conserving_formatting.pl
new file mode 100644
index 0000000000000000000000000000000000000000..fa824f372e692c2aa16cb1ff3a3ac709d1dc6ee3
--- /dev/null
+++ b/Text-to-Breasonings-master/truncate_words_conserving_formatting.pl
@@ -0,0 +1,78 @@
+:-include('../listprologinterpreter/la_strings.pl').
+:-include('../listprologinterpreter/la_strings_string.pl').
+
+% ?- truncate_words_conserving_formatting(["string","a123b ()c d e f"],3,["string",S]).
+% S = "a123b ()c".
+
+/**
+?- truncate_words_conserving_formatting(["file","file3.txt"],1,["file","file4.txt"]).
+**/
+
+truncate_words_conserving_formatting([Type1,File1],Words1,[Type2,File2]) :-
+ % split on non-alpha chars, count n words and keep formatting
+
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+
+ (Type1="file"->
+ (phrase_from_file_s(string(String2), File1));
+ File1=String2),
+
+ split_string_onnonletter_by_itself2(String2,SepandPad,String3),
+
+ %trace,
+
+ first_n_words(String3,Words1,[],String4),
+ maplist(append,[[String4]],[Item3]),
+
+ concat_list(Item3,String5),
+
+ (Type2="file"->
+ (open_s(File2,write,Stream2),
+ write(Stream2,String5),
+ close(Stream2),!);
+ (String5=File2)).
+
+
+
+split_string_onnonletter_by_itself2(String00,Chars,List1) :-
+ string_codes(String00,String1),
+ split_string_onnonletter_by_itself2(String1,[],Chars,List0),
+ %string_codes(String1a,List0),
+ %writeln(String1a),
+ %trace,
+ string_codes(List0,List2),
+ split_string(List2,"ª","ª",List1),!.
+split_string_onnonletter_by_itself2([],Input,_Chars,Input) :- !.
+split_string_onnonletter_by_itself2(Input1,Input2,Chars,Input3) :-
+ Input1=[Input4|Input5],
+ %not(char_type(Input4,alpha)),
+ string_codes(Chars,Codes),
+ member(Code,Codes),
+ Input4=Code,
+ append(Input2,`ª`,Input81),
+ append(Input81,`‡`,Input8),
+ append(Input8,[Code],Input7),
+ append(Input7,`ª`,Input6),
+ split_string_onnonletter_by_itself2(Input5,Input6,Chars,Input3), !.
+split_string_onnonletter_by_itself2(Input1,Input2,Chars,Input3) :-
+ Input1=[Input4|Input5],
+ append(Input2,[Input4],Input6),
+ split_string_onnonletter_by_itself2(Input5,Input6,Chars,Input3), !.
+
+first_n_words([],_,String,String) :- !.
+first_n_words(_String1,0,String,String) :- !.
+first_n_words(String1,Words1,String2a,String2b) :-
+ String1=[String3|String4],
+ string_length(String3,2),
+ string_concat(A,B,String3),string_length(B,1),
+ A="‡",
+ append(String2a,[B],String5),
+ first_n_words(String4,Words1,String5,String2b),!.
+first_n_words(String1,Words1,String2a,String2b) :-
+ String1=[String3|String4],
+ (not((string_length(String3,2),
+ string_concat(A,B,String3),string_length(B,1),
+ A="‡"))),
+ append(String2a,[String3],String5),
+ Words2 is Words1-1,
+ first_n_words(String4,Words2,String5,String2b),!.
diff --git a/Text-to-Object-Name/.DS_Store b/Text-to-Object-Name/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6
Binary files /dev/null and b/Text-to-Object-Name/.DS_Store differ
diff --git a/Text-to-Object-Name/Instructions_for_Breasoning.txt b/Text-to-Object-Name/Instructions_for_Breasoning.txt
new file mode 100644
index 0000000000000000000000000000000000000000..883fe296c2ac7d5e5e69998b8fd05a2287306460
--- /dev/null
+++ b/Text-to-Object-Name/Instructions_for_Breasoning.txt
@@ -0,0 +1,180 @@
+Instructions for Breasoning
+
+
+Glossary: Breasoning is thinking of the x, y and z measurements in metres of an object in a sentence.
+
+
+
+1. Perform the following Daily Regimen, containing meditation, pedagogy and medicine preparation.
+
+
+Meditation
+
+
+You can naturally prevent a headache by silently repeating the mantras, "lucian" and "arem" for twenty, minutes, twice per day. The mantras becomes lighter and lighter, until one forgets the thought, clearing the mind. Also, silently repeat the sutra "green" for twenty minutes, twice per day after two months of using the mantras in the morning and evening. Also, pray for no digestive system pops from practising the sutra each day.
+
+Quantum Box and Nut and Bolt
+
+
+Quantum Box
+
+
+The quantum box is a guided meditation that I will describe later that prevents headaches, (relaxes head and neck muscles), and prevents muscle aches and pains. In it, you can make anything (e.g. a headache) instantly disappear, based on quantum physics (where at the quantum level, things may disappear if we want them to).
+
+
+Nut and Bolt
+
+
+The nut and bolt is a guided meditation that is a more detailed prevention of problems the Quantum Box prevents. In it, pretend to unscrew a nut from a long thin bolt each day to prevent a headache, etc.
+
+
+One-off
+
+One-off: Repeat Upasana * 800 and breason out the following 7 breasonings details to God. I make a small recommendation of a University accredited short Education course every two years or a degree every ten years.
+
+
+
+Repeat Upasana * 800 if not done in a chain of meditation days linked to today (and green, Purusha, Use, Teacher, Maharishi, Doctor each x 800 before Upasana if they are not done in a chain of meditation days linked to today).
+
+Breason out (think of examples with objects that you have thought of the x, y and z dimensions of) the following 7 breasonings details as an exercise. Pretend to breason out the breasonings details to God.
+
+See http://lucianspedagogy.blogspot.com.au/p/writing-sentences-by-making.html
+
+1. Details - As an exercise, think of two uses, a future use and two types for each object.
+
+2. Breasoning - Think of the x, y, z dimensions and colour of each object.
+
+3. Rebreasoning - Think of the fact that the person and the object in a sentence are connected by a verb (an action) that means they touch.
+
+4. Breathsoning - Think of a reason that the object is judged good (a judgment adjective).
+
+5. Rebreathsoning - Think of a reason that the verb (action) is judged done well (a judgment adverb).
+
+6. Space - Think of spatial characteristics of the person in relation to the object (room, part of room e.g. table and direction in room e.g. plate).
+
+7. Time - Think of temporal characteristics of the person in relation to the object (time to prepare e.g. buy, time to do e.g. eat, and time to finish e.g. place core in a receptacle).
+
+
+
+
+Daily Regimen
+
+
+I recommend Yoga and Qi Gong.
+
+
+Indicate 2 radio buttons (one for each of the following ideas, and one for each of these ideas working anyway, where a radio button is indicated by breasoning out, or thinking of the x, y and z dimensions of a counter, 0.01, 0.01, 0.005 metres).
+
+Too (just say “too” for each idea following to indicate the two radio buttons)
+
+meditation (80 lucian and arem mantras and 80 green sutras)
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+No digestive system pops from practising the sutra
+
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+Protector from Headache in Meditation after Honours Study, etc.
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+No headache
+
+
+The following turn off headaches etc.
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+Turn off workload from all employees including you below you,
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+Detect and turn off workloads using manager algorithm. (The self does the As, turning off the workloads.)
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+Detect and turn off workloads using manager network. (The others help finish the As, turning off the workloads.)
+
+Also, for the following, which also have quantum box and nut and bolt:
+
+No muscle aches/pains
+
+
+2. One-off, breason out 250 characters from Lecturer Training, to be able to breason out anything you want, not just found out breasonings.
+
+
+“Lecturer (all in this document)
+
+
+ 1. I collected the comments.
+
+ 2. I wrote the formula.
+
+ 3. I wrote the input.
+
+ 4. I wrote the output.
+
+ 5. I had the rights to government.
+
+ 6. I had the rights to the state.
+
+ 7. I had the rights to vote.
+
+ 8. I amalgamated the b”
+
+
+3. One-off, breason out 250 characters from Recordings Training, to be able to indicate that breasonings are implicitly breasoned out for you.
+
+
+“Recordings from 30 As 1
+
+
+ 1. I meditated on the day I produced recordings.
+
+ 2. I confirmed training.
+
+ 3. Recordings relate to the rest of pedagogy.
+
+ 4. The delegator matched recordings (workloads) with different recordings.
+
+ 5. I endorsed the 5*50 As pract”
+
+
+“Too”: 5 symbolic strawberries (each is 0.01, 0.01, 0.01 cm) for Recordings to work.
+
+
+
+4. 250 characters from Delegate Workloads
+
+"1. I cut off infinity.
+ 2. I used the sun.
+ 3. The queen helped.
+ 4. The delivery arrived.
+ 5. I earned the role.
+ 6. I wrote the developed text.
+ 7. I knew about the lotus spoon.
+ 8. I knew the female politician.
+ 9. I knew positive religion.
+ 10. P"
+
+
+Notes on Text-to-Object-Name:
+
+
+Replace ⁃, – in file.txt with - or crashes
+
+Replace “,” in file.txt with " or crashes
+
+Replace ‘,’ in file.txt with ' or crashes
+
+Replace MS Word return in file.txt with normal return or crashes
+
+Replace nonbreaking space " " in file.txt with normal space " " or crashes
+
+
+If there are any invisible characters apart from esc then brdict.txt may become corrupt, and should be replaced with a backup. You could directly delete the invisible characters from brdict.txt, but Lucian Academy accepts no responsibility for this.
+
+
+You don't have to reinsert smart quotes in file.txt afterwards because texttobr2 doesn't change the file. Simply use the copy of your text before you inserted and changed it in file.txt.
diff --git a/Text-to-Object-Name/LICENSE b/Text-to-Object-Name/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..920183ffbdaca89fc6faee40b6de08a6c8a061c7
--- /dev/null
+++ b/Text-to-Object-Name/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2021, Lucian Green
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Text-to-Object-Name/README.md b/Text-to-Object-Name/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..2c8c2e2e28f34721f96d26fb74a74b9ee70c54bd
--- /dev/null
+++ b/Text-to-Object-Name/README.md
@@ -0,0 +1,76 @@
+# Text-to-Object-Name
+
+* Text-to-Object-Name (T2ON) is a set of algorithms that converts a file to the set of a certain number of words, and a word frequency counter. It does not breason out words.
+
+* To breason out words, one needs to finish an Education short course and read the instructions in Instructions_for_Breasoning.txt.
+
+* Generally, 80 word breasonings are needed to earn a high distinction at undergraduate level and below, have healthy children or sell products. This increases to 2 * 15 * 80=2400 breasonings per Honours level chapter, approximately 2 * 50 * 80=8000 breasonings per Masters level assignment and approximately 2 * 4 * 50 * 80=32,000 breasonings per PhD level assignment.
+
+* 50 As (50 * 80=4000 breasonings) are required to earn a job.
+
+# Getting Started
+
+Please read the following instructions on how to install the project on your computer for preparing for breasoning.
+
+# Prerequisites
+
+* Please download and install SWI-Prolog for your machine at `https://www.swi-prolog.org/build/`.
+
+# 1. Install manually
+
+Download this repository, Text to Breasonings repository, the Lucian Academy Data repository, and the List Prolog Interpreter Repository.
+
+# 2. Or Install from List Prolog Package Manager (LPPM)
+
+* Download the LPPM Repository:
+
+```
+mkdir GitHub
+cd GitHub/
+git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
+cd List-Prolog-Package-Manager
+swipl
+['lppm'].
+lppm_install("luciangreen","Text-to-Object-Name").
+halt
+```
+
+# Running
+
+* In Shell:
+`cd Text-to-Object-Name`
+`swipl`
+
+* Enter:
+`['text_to_object_name.pl'].`
+
+* In the SWI-Prolog environment, enter:
+`t2on(N,File,String,M).`
+where N is the number of times to output the file, File is the file name, String is the string to output and M is the number of words in the file to output, e.g.:
+* `t2on(u,"file.txt",u,u).` or `t2on(u,u,u,u).`
+Outputs file.txt.
+* `t2on(2,"file.txt",u,u).`
+Outputs file.txt twice.
+* `t2on(u,u,"Hello world.",u).`
+Breason out "Hello world.".
+* `t2on(3,u,"a b c",2).`
+Outputs the first two words in "a b c" ("a" and "b") 3 times.
+
+# Reading Algorithm
+
+* The algorithm often runs too quickly. To notice a number of words ("read them") in unread texts, where Master=6 algorithms, PhD=~16 algorithms and professor/politician=~50 algorithms, run with:
+```
+`['text_to_object_name.pl'].`
+W is 50*4,t2on(u,u,u,u,W).
+% where W is the number of words to read
+% 50 is the number of algorithms,
+% and there are approximately 4 words per algorithm.
+```
+
+# Authors
+
+Lucian Green - Initial programmer - Lucian Academy
+
+# License
+
+I licensed this project under the BSD3 License - see the LICENSE.md file for details
diff --git a/Text-to-Object-Name/file.txt b/Text-to-Object-Name/file.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c57eff55ebc0c54973903af5f72bac72762cf4f4
--- /dev/null
+++ b/Text-to-Object-Name/file.txt
@@ -0,0 +1 @@
+Hello World!
\ No newline at end of file
diff --git a/Text-to-Object-Name/t2on_reading.pl b/Text-to-Object-Name/t2on_reading.pl
new file mode 100644
index 0000000000000000000000000000000000000000..882c7dd7d91bade4385b6edbcb4d3e71f83733bf
--- /dev/null
+++ b/Text-to-Object-Name/t2on_reading.pl
@@ -0,0 +1,186 @@
+:- include('../listprologinterpreter/la_maths.pl').
+:- include('../Text-to-Breasonings/text_to_breasonings.pl').
+
+t2on(N1,Filex1,Stringx1,M1) :-
+ t2on2(N1,Filex1,Stringx1,M1,0).
+t2on2(N1,Filex1,Stringx1,M1,Words_to_read) :-
+ retractall(complete_display(_)),
+ assertz(complete_display(false)),
+
+ retractall(words_to_read(_)),
+ assertz(words_to_read(Words_to_read)),
+
+ ((number(N1),N=N1)->true;
+ (N1=u,N=1)),
+
+ ((Filex1=u,Filex="../Text-to-Object-Name/file.txt")->true;
+ Filex=Filex1),
+
+ ((number(M1),M=M1)->true;
+ M=all), %% If m1 is undefined or all then m=all
+
+ prep(List1,T2ON_Dict03,Filex,Stringx1,M),
+ t2on_2(List1,T2ON_Dict03,T2ON_Dict2,[],A12,N),
+
+ sort(T2ON_Dict2,T2ON_Dict3),
+
+ (T2ON_Dict03=T2ON_Dict3->true;
+ (save_file_s("../Lucian-Academy-Data/Text-to-Object-Name/t2on_dict1.txt",T2ON_Dict3))),
+
+/*
+open_file_s("../Lucian-Academy-Data/Text-to-Object-Name/t2on_end_text.txt",TET),
+
+ length(List1,List1_length_a),
+ Dividend_a is ceiling(List1_length_a/250),
+ Dividend_b is Dividend_a*3, % for graciously giving
+
+ findall(_,(member([_,TET_T],TET),t2on(Dividend_b,string,TET_T,u)),_),
+ */
+ findall(B,(member([C,D],A12),(D=""->B=C;B=D)),F),sort(F,G),findall([L,J],(member(J,G),findall(J,member(J,F),K),length(K,L)),M11),sort(M11,M2),
+ writeln1(M2),
+
+ !.
+
+%% Truncates the list if m is not undefined and m is greater than or equal to the length of string0
+truncate(List1,M,String0) :-
+ ((number(M),length(String0,M),
+ append(String0,_,List1))->true;
+ String0=List1),!.
+
+prep(List,T2ON_Dict03,Filex,Stringx1,M) :-
+ open_file_s("../Lucian-Academy-Data/Text-to-Object-Name/t2on_dict1.txt", T2ON_Dict01),
+ SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+
+ sort(T2ON_Dict01,T2ON_Dict03),
+ length(T2ON_Dict03,Length0),write("Number of words in dictionary: "), writeln(Length0),
+
+ %sort(T2ON_Dict01t,T2ON_Dict03t),
+
+
+ ((Stringx1=u,
+ phrase_from_file_s(string(String00), Filex))->true;
+ String00=Stringx1),
+
+ string_codes(String001,String00),
+ string_lower(String001,String002),
+ string_codes(String002,String003),
+
+ split_string(String003,SepandPad,SepandPad,List1),
+
+ truncate(List1,M,List),
+
+ length(List,Length1),write("Number of words to find the object name for in file: "), writeln(Length1),
+ sort(List,List3),
+%%writeln([list2,List2]),
+ %length(List2,Length2),write("Number of unique words in file: "), writeln(Length2),
+
+(complete_display(true)->
+ ((Stringx1=u, %% Use file, not string as input.
+
+ %%maplist(downcase_atom, List2, List3),
+ %maplist(string_lower, List2, List3),
+
+%%writeln([list3,List3]),
+ towords3(T2ON_Dict03,[],T2ON_Dict04,[],_ObjectNames,[],_AllUsedNames),
+ %towords2(T2ON_Dict03t,[],T2ON_Dict04t),
+
+%%writeln([t2on_Dict04,T2ON_Dict04]),
+ subtract(List3,T2ON_Dict04,D1),
+%%writeln([list3,t2on_Dict04,d1,List3,T2ON_Dict04,D1]),
+%%writeln(["subtract(T2ON_Dict04,List3,D1).",List3,T2ON_Dict04,D1]),
+ length(D1,Length01),Difference is abs(Length01),write("Number of words remaining to define: "), writeln(Difference)
+
+
+ %subtract(AllUsedNames,T2ON_Dict04t,D2),
+ %%delete(D21,'',D2),
+ %length(D2,Length01t),Differencet is abs(Length01t),write("Number of undefined object names: "), writeln(Differencet),
+
+ %%delete(D31,'',D3),
+ %subtract(T2ON_Dict04t,AllUsedNames,D3),
+
+
+
+
+)->true;(string(Filex),writeln("Number of words, unique words and words remaining to define skipped for speed when finding object names for a string.")));true)
+
+,!.
+
+t2on_2(_,A,A,B,B,0) :- !.
+t2on_2(List1,T2ON_Dict03,T2ON_Dict2,A11,A12,N1) :-
+ t2on(List1,T2ON_Dict03,T2ON_Dict21,A11,A13),
+ N2 is N1-1,
+ t2on_2(List1,T2ON_Dict21,T2ON_Dict2,A13,A12,N2),!.
+
+towords2([],A,A) :- !.
+towords2(T2ON_Dict03,A,B) :-
+ T2ON_Dict03=[[Word,_,_,_]|Rest],
+ %%atom_string(Atom,Word),
+ append(A,[Word],C),
+ towords2(Rest,C,B).
+
+towords2a([],A,A) :- !.
+towords2a(T2ON_Dict03,A,B) :-
+ T2ON_Dict03=[[Word,_]|Rest],
+ %%atom_string(Atom,Word),
+ append(A,[Word],C),
+ towords2a(Rest,C,B).
+
+towords3([],A,A,C,C,D,D) :- !.
+towords3(T2ON_Dict03,A,B,D,E,G,H) :-
+ T2ON_Dict03=[[Word1,Word2]|Rest],
+ (Word2=""->append(G,[Word1],I)->true;
+ append(G,[Word2],I)),
+ append(A,[Word1],C),
+ append(D,[Word2],F),
+ towords3(Rest,C,B,F,E,I,H).
+
+
+t2on([],B,B,C,C) :-
+ !.
+t2on([Word3|Words],T2ON_Dict,T2ON_Dict2,A11,A12) :-
+ %downcase_atom(Word, Word2), atom_string(Word2,Word3),
+
+ words_to_read(WR1),
+ (WR1>0->(writeln(WR1),write(Word3),
+ t2on2(3),nl,sleep(0.12),
+ WR2 is WR1-1,
+ retractall(words_to_read(_)),
+ assertz(words_to_read(WR2)));
+ true),
+
+ %/**member([Word3,X,Y,Z],T2ON_Dict4) -> %% This feature is a bug because words in t2on_dict2 shouldn't necessarily be the words in t2on_dict1
+ %append(A11,[[Word3,""]],T2ON_Dict3), T2ON_Dict3t=T2ON_Dict4,
+ %%t2on_(Words,T2ON_Dict3,T2ON_Dict2,T2ON_Dict3t,T2ON_Dict5))
+ %%;
+ %%(**/
+
+ %%(member([Word3,X,Y,Z],T2ON_Dict4) -> %% This feature is a bug because words in t2on_dict1 should correspond to those in t2on_dict2
+ %%(atom_concat("The for ", Word3, P1),
+ %%atom_concat(P1, " is defined. Enter object name (without spaces), if different for ", Prompt));
+ %Prompt="Enter object name (without spaces), if different for "),
+
+ %%writeln([word3,Word3]),
+ %trace,
+ (member([Word3,String4],T2ON_Dict)->
+ T2ON_Dict3=T2ON_Dict;
+ ((repeat,
+ write("Enter object name (without spaces), if different for "), writeln(Word3),read_string(user_input, "\n", "\r", _End2, String2),split_string(String2, "", " ", String3),String3=[String4]),
+ append(T2ON_Dict,[[Word3,String4]],T2ON_Dict3)
+ %t2on(1,u,String4,1)
+ )),
+
+ append(A11,[[Word3,String4]],A13),
+
+ %%*t2on_th(Word3,_T2ON_th),
+ %concat_list(["[",Word3,",",String4,"], "],Notification1),
+ %write(Notification1),
+%(String4=""->String5=Word3;String5=String4),
+
+ %downcase_atom(String5, String52), atom_string(String52,String53),
+
+
+t2on(Words,T2ON_Dict3,T2ON_Dict2,A13,A12).
+ %%).
+%t2on_th(_,sweetinvincibleandprayedfor).
+
+%% finds unknown words, asks for their t2on_ in form "n of m: word", verify, (can go back x) append and sort, save
\ No newline at end of file
diff --git a/Text-to-Object-Name/t2on_repeating_text.pl b/Text-to-Object-Name/t2on_repeating_text.pl
new file mode 100644
index 0000000000000000000000000000000000000000..81939b280928e5e7996117503fb94082e6344819
--- /dev/null
+++ b/Text-to-Object-Name/t2on_repeating_text.pl
@@ -0,0 +1,10 @@
+t2on_repeating_text(N1):-
+ phrase_from_file_s(string(Dict), "../Lucian-Academy-Data/Text-to-Object-Name/t2on_repeating_text.txt"),
+ string_codes(Dict_string,Dict),
+ term_to_atom(Dict_term,Dict_string),
+ Dict_term=[N,String],
+ %SepandPad="@~%`$?-+*^,()|.:;=_/[]<>{}\n\r\s\t\\\"!'0123456789",
+ %split_string(String,SepandPad,SepandPad,List),
+ numbers(N1,1,[],N1_list),
+ findall(_,(member(_N11,N1_list),
+ t2on(N,string,String,u)),_),!.
diff --git a/Text-to-Object-Name/text_to_object_name.pl b/Text-to-Object-Name/text_to_object_name.pl
new file mode 100644
index 0000000000000000000000000000000000000000..5cd1f5157b40eba879f58125c6881ccfe6436af5
--- /dev/null
+++ b/Text-to-Object-Name/text_to_object_name.pl
@@ -0,0 +1,10 @@
+:-include('../Text-to-Object-Name/t2on_reading.pl').
+
+:- include('../listprologinterpreter/listprolog').
+:- include('../listprologinterpreter/la_files.pl').
+:- include('../Text-to-Object-Name/t2on_repeating_text.pl').
+%%:- include('texttobrqb').
+%:- include('../listprologinterpreter/la_strings').
+%:- include('mergetexttobrdict').
+%:- include('edit.pl').
+%:- include('meditatorsanddoctors').
diff --git a/Time_Machine-main/.DS_Store b/Time_Machine-main/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6
Binary files /dev/null and b/Time_Machine-main/.DS_Store differ
diff --git a/Time_Machine-main/Caveats.md b/Time_Machine-main/Caveats.md
new file mode 100644
index 0000000000000000000000000000000000000000..32a355ac8eea855f56aa96458c6d2c772fb7172e
--- /dev/null
+++ b/Time_Machine-main/Caveats.md
@@ -0,0 +1,23 @@
+# Immortality Caveats
+
+Further explanation of the terms (recommended):
+* Lecturer skill - Instead of finding out philosophies from the representations of a pedagogue such as Nietzsche to write down, I studied Honours in philosophy to earn the skill of writing my own ideas down, hence the adage "Forget Nietzsche". To earn the marks for Honours, I worked out the correct essay format, the ways of thinking to earn high distinctions and to connect quotes from at least two sources in one of the paragraphs. I also recommend using a grammar and form checker, breasoning out 5 million breasonings per assignment, representing the top value 5*50 As for a PhD assignment and copywriting job using Text-to-Breasonings and Grammar-Logic and writing 80-250 philosophy breasonings and 80-250 algorithms per high distinction. Breasonings are sentences which convey a philosophical idea, where the object and other words in the sentence is breasoned out for high distinctions, given ways of thinking such as details (two uses for an object), etc. I first wrote dreams and ideas like those in a book of theories as breasonings. I became interested in computational hermeneutics or the interpretation of texts to start writing algorithms, and counted one clause of Prolog as one algorithm. Writing algorithms not only checks the objects in writing, but the logic.
+* Recordings - The ability to implicitly, or quickly convey breasonings, sometimes send objects or oneself as breasonings (a "bot") through space and time. A much-desired skill, one can indicate "As" (high distinctions) with a thought command after working on the original A.
+
+How to get these skills:
+* For the lecturer skill, I was chosen as a tutor at University - I best understood a subject on Prolog compilers, for which I earned 100% in two assignments, I earned a scholarship to Logic Summer School at ANU, I met my logic professor at an IEEE meeting and was selected as a tutor in the subject.
+* For the recordings skill - Write a number-one song with Music Composer and possibly join an acting agent to earn extras and acting roles, increasing one's "recordings" skills. I met a cosmologist, wrote a great first song which was aired on the radio, studied a theatre studies short course and joined an acting agent.
+* Mind reading is recommended as the way to write songs with Music Composer for the best results.
+* Lucian (the founder of Time Machine) wrote a number-one song on a radio show, which is optional.
+* As well as the meditation, etc. subjects, I activated my writing ability through Creative Writing, and my pedagogy skill, which formed the basis of the meditation-based subjects, through Education.
+
+Notes:
+* Immortality medicine - 100% of Lucianic Meditation doctors can help with immortality as a form of medicine.
+* After joining the simulation from the year 5689, your clothes and appearance will automatically match your time travel destination.
+* The other advantages of this simulation are single-thought activated time travel, protection from accidents in possibilities of the multiverse, avoiding some weather, better health in immortality and possible replacement of faulty body parts using "quantum" operations (imperceptible operations initiated by As), the possible detectability of electrons when one is not looking in the simulation and a possible different physics of the simulation which is more stable. There are reports of only seeing people from other times and those close to oneself after activating the simulation, seeing those with 50 As, and not seeing time travellers visiting the home time.
+* It is better not to take risks in the simulation, and remember to avoid danger.
+
+# Important
+
+* One should breason out 4\*50 As (16,000\*125=2000000 breasonings) including some handwritten content and mostly Grammar Logic content, breasoned out with Text to Breasonings to not age in the home dimension every ten years.
+* One should do this and have 250 breasonings per bodily organ system in the Daily Regimen per meditator per dimension time travelled to each day.
diff --git a/Time_Machine-main/Immortality.md b/Time_Machine-main/Immortality.md
new file mode 100644
index 0000000000000000000000000000000000000000..27862f7ca23c40dc2f319ad22fef6fa805540cee
--- /dev/null
+++ b/Time_Machine-main/Immortality.md
@@ -0,0 +1,29 @@
+# Immortality
+
+* Write an A to time travel, and an A to become immortal and breason it out.
+
+* Before using `texttobr2_1(1).` to time travel to October 1 5689, read:
+
+ * Before running texttobr, think of two radio buttons put on recordings, put through with prayer, nut and bolt, quantum box prayer 1, 1, 0.5 cm and 1, 1, 0.5 cm.
+
+ * Follow instructions in Instructions for Using texttobr(2) when using texttobr, texttobr2 or mind reader to avoid medical problems.
+
+ * The Prevent Headaches App may be necessary.
+
+* Read Immortality entry 1 for instructions on how to enter the simulation to be immortal. ("Work.. out with 250 breasonings that buying the sim card to my time represented buying the simulation chip - `texttobr2_1(1).`. Turn... it on - `texttobr2_1(1).`). You can indicate to become immortal.
+
+* There are text-to-breasonings supported window periods in the future. For example, it is recommended to repeatedly visit the time October 1-16 5689, time travelling back to the start of this time every 16 days, otherwise a non-text-to-breasonings supported time may cause medical problems.
+
+* You need to visit a future time that supports Immortality each day to activate Immortality.
+
+* Switch for Immortality medicine to be immortal, replace one's body, stop dementia, have clear sight, think clearly, relax muscles. each month in Immortality. If necessary, use Grammar-Logic to generate 4000 word breasonings for a department, for example Education, generate 4000 word breasonings for B (disagreement with) Education and 4000 word breasonings for B to B to (solve disagreements with) Education, then hand-breason them out.
+
+* In total, there should be 16,000 sentences breasoned out for immortality.
+
+* Switch to turn off medical problems once from each department you have been developed about to activate Immortality. Use Grammar-Logic to generate 4000 word breasonings from the list of body systems, generate 4000 word breasonings for B (problems with) body systems and 4000 word breasonings for B to B to (solve problems with) body systems, then use Text-to-Breasonings to breason them out.
+
+* The custodians, the robots, require residents to think of an English (autobiographical) statement to be thought of per day (your aim that day).
+
+* As an aside, watch videos from University departments every week (with 50 As each, breasoned out with Text to Breasonings) for professional development.
+
+* More entries on the Simulation and Immortality from August 2021, September 2021 and October 2021. Further months at Lucian Green's Philosophy.
diff --git a/Time_Machine-main/Instructions to freeze age - T2B4 (Faster).txt b/Time_Machine-main/Instructions to freeze age - T2B4 (Faster).txt
new file mode 100644
index 0000000000000000000000000000000000000000..381f15790b9a795d2a6e247d9bd284f6728c4406
--- /dev/null
+++ b/Time_Machine-main/Instructions to freeze age - T2B4 (Faster).txt
@@ -0,0 +1,59 @@
+# Instructions to freeze age - T2B4 (Faster)
+
+# Requires luciangreen/Philosophy repository
+# https://github.com/luciangreen/Philosophy/
+
+# The robots are simple minded. The Text to Breasonings algorithm breasons out sentences and algorithms, which pass the professional requirement of 4*50 sentence As (A=80 sentences) for two destinations per day of meditation, time teleportation and medicine for anti-ageing.
+
+# One-off
+cd Dropbox/GitHub/Text-to-Breasonings
+swipl --goal=main --stand_alone=true -o t2b4 -c text_to_breasonings4.pl
+
+# Each week
+cd Dropbox/GitHub/Philosophy
+
+swipl --stack-limit=80G
+['cat_arg_files.pl'].
+cat_arg_files(6000).
+halt.
+
+swipl --stack-limit=80G
+['cat_alg_files.pl'].
+cat_alg_files(6000).
+halt.
+
+cd ../Text-to-Breasonings
+
+cp ../Lucian-Academy/Books1/algs/lgalgs_a.txt file.txt
+./t2b4
+rm a.pl
+mv a a1
+rm b.pl
+mv b b1
+rm c.pl
+mv c c1
+
+cp ../Lucian-Academy/Books1/args/lgtext_a.txt file.txt
+./t2b4
+rm a.pl
+mv a a2
+rm b.pl
+mv b b2
+rm c.pl
+mv c c2
+
+# Every day, in each dimension
+cd Dropbox/GitHub/Text-to-Breasonings
+
+swipl
+['text_to_breasonings.pl'].
+% for pedagogy, meditation and medicine about breasonings
+texttobr2_1(1).
+texttobr2(4,u,"square",u).
+halt.
+
+# Either
+./bc12.sh
+
+# Or, for 15 people
+./d.sh
diff --git a/Time_Machine-main/Instructions to freeze age.txt b/Time_Machine-main/Instructions to freeze age.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ef379dfb406acea24eb5896f3c37b0e9a346d62f
--- /dev/null
+++ b/Time_Machine-main/Instructions to freeze age.txt
@@ -0,0 +1,34 @@
+# Instructions to freeze age
+
+# Requires luciangreen/Philosophy repository
+# https://github.com/luciangreen/Philosophy/
+
+# The robots are simple minded. The BAG algorithm produces sentences and mock algorithms, which pass the professional requirement of 4*50 sentence As (A=80 sentences) for two destinations per day of 2 meditations, 2 time teleportations and 2 medicines for anti-ageing.
+
+# Optionally run on a Virtual Private Server (VPS) (See https://github.com/luciangreen/Text-to-Breasonings/blob/master/Setting_up_a_VPS_with_TextToBr.txt).
+
+# So, 64,000 argument and algorithm breasonings per destination (of meditation, time teleportation and medicine for anti-ageing, must have home and October 5689 and wait for the breasonings to finish to take effect in each destination). I prefer to run the 64,000 breasonings for a third time after returning to 5689, as this is a new leg of the journey.
+
+cd Dropbox/GitHub/Philosophy
+
+swipl --stack-limit=80G
+['cat_arg_files.pl'].
+cat_arg_files(6000).
+halt.
+
+swipl --stack-limit=80G
+['cat_alg_files.pl'].
+cat_alg_files(6000).
+halt.
+
+swipl
+['day2.pl'].
+main.
+
+# STOP
+
+# Print running totals
+
+swipl
+['print_totals.pl'].
+print_totals.
diff --git a/Time_Machine-main/LICENSE b/Time_Machine-main/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..920183ffbdaca89fc6faee40b6de08a6c8a061c7
--- /dev/null
+++ b/Time_Machine-main/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2021, Lucian Green
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/Time_Machine-main/Prevent-Headaches.md b/Time_Machine-main/Prevent-Headaches.md
new file mode 100644
index 0000000000000000000000000000000000000000..81057c3e1842ec3f9600a89a1b7ab42c7f6e3134
--- /dev/null
+++ b/Time_Machine-main/Prevent-Headaches.md
@@ -0,0 +1,33 @@
+# Prevent Headaches
+
+* Introduction
+* What is this?
+Use the Prevent Headaches App to help prevent stress (non-pathological) headaches. It combines meditation with a non-invasive spiritual medical technique and a daily regimen. Because stress headaches can start in the body, it is recommended to use our muscle aches and pain preventative technique. This app can help prevent headaches in post-Honours University students, on trains, in cars, and in the sun. Please stay out of the sun in high-UV hours and do yoga before long train journeys.
+* Meditation
+You can naturally prevent a headache by silently repeating the mantra, "arem" for twenty, minutes, twice per day. The mantra becomes lighter and lighter, until one forgets the thought, clearing the mind. Also, silently repeat the sutra "green" for twenty minutes, twice per day after two months of using the mantra in the morning and evening. Also, pray for no digestive system pops from practising the sutra each day.
+* Quantum Box and Nut and Bolt
+* Quantum Box
+The quantum box is a guided meditation that I will describe later that prevents headaches, (relaxes head and neck muscles), and prevents muscle aches and pains. In it, you can make anything (e.g. a headache) instantly disappear, based on quantum physics (where at the quantum level, things may disappear if we want them to).
+* Nut and Bolt
+The nut and bolt is a guided meditation that is a more detailed prevention of problems the Quantum Box prevents. In it, pretend to unscrew a nut from a long thin bolt each day to prevent a headache, etc.
+* Daily Regimen
+Indicate 2 radio buttons (one for each of the following ideas, and one for each of these ideas working anyway, where a radio button is indicated by breasoning out, or thinking of the x, y and z dimensions of a counter, 0.01, 0.01, 0.005 metres).
+Too (just say “too” for each idea following to indicate the two radio buttons)
+meditation (108 arem mantras and 108 green sutras)
+Also for the following, which also have quantum box and nut and bolt:
+No digestive system pops from practising the sutra
+
+Also for the following, which also have quantum box and nut and bolt:
+Protector from Headache in Meditation after Honours Study, etc.
+Also for the following, which also have quantum box and nut and bolt:
+No headache
+
+The following turn off headaches etc.
+Also for the following, which also have quantum box and nut and bolt:
+Turn off workload from all employees including you below you,
+Also for the following, which also have quantum box and nut and bolt:
+Detect and turn off workloads using manager algorithm. (The self does the As, turning off the workloads.)
+Also for the following, which also have quantum box and nut and bolt:
+Detect and turn off workloads using manager network. (The others help finish the As, turning off the workloads.)
+* Prevention Technique
+If you feel a headache coming on, then think, "I don't want nothing to happen, followed by a headache. This idea works at the time. Each of the other parts have been taken care of. Green, Doctor."
\ No newline at end of file
diff --git a/Time_Machine-main/Protection.md b/Time_Machine-main/Protection.md
new file mode 100644
index 0000000000000000000000000000000000000000..8c8209f43e28efdbe46b788d7be8ceb4a63e667b
--- /dev/null
+++ b/Time_Machine-main/Protection.md
@@ -0,0 +1,26 @@
+# Additional Protection from Dying
+
+* Immortal people can be protected by giving them 4*50 As of high-quality thoughts at the start of a period (or once per day).
+* The 4*50 As are Breasoning Algorithm Generator (BAG) (sentence) As completed with freezing age As (Note 1) or freezing age As (faster) (Note 2).
+* Note 2: Run ./d.sh in Freezing Age As (Faster) (above) daily to earn sentience in the simulation (have one's living quarters and appearance) by preparing for 15 simulants.
+* Once you have passed preparing for 15 simulants, spend 4*50 high distinctions on acquiring a computer in the future. Thought command this computer for high distinctions, rather than using your computer. The future computer can only affect the future, not other times.
+* Notes 1 and 2: Run ./day2 in Note 1 to freeze your age, followed by the following to freeze others' ages:
+First, edit meditators' names, e.g. (john, not John) in `meditatorsanddoctors.pl`.
+```
+cd Text-to-Breasonings
+swipl
+['text_to_breasonings.pl'].
+['meditatorsanddoctors.pl','meditationnoreplace2.pl'].
+meditation.
+halt.
+```
+It is better for you to time travel but they don't have to.
+* See big_medit1.md for instructions on running a Prolog program to automatically time travel and increase the longevity of your meditators each day.
+* Run
+```
+cd Daily-Regimen
+./d-prep.sh # if necessary
+./d.sh
+```
+four times to switch off home and future ageing and switch them off being switched off, done twice, once in the present and once in 5689.
+* Do the above four times again (to install time crystals to indicate arguments are automatically breasoned out after daily meditation, to use these time crystals, done twice, once in the present and once in 5689), multiplied for each argument (text to breasonings for enough breasonings per breasoning session, meditation, medicine for anti-ageing, time travel, mind reading, having a spiritual future apartment and a spiritual future computer).
diff --git a/Time_Machine-main/README.md b/Time_Machine-main/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..d11b68871d5fd5942afcdd3fe33fcd5f51d637b4
--- /dev/null
+++ b/Time_Machine-main/README.md
@@ -0,0 +1,81 @@
+![lines-1171160](https://user-images.githubusercontent.com/15845542/124043330-28198f00-da4e-11eb-8703-37e03cda6b73.jpg)
+Image of blue vertical lines disappearing into a vanishing point (Photo by Maxime Perron Caissy from FreeImages)
+
+# Time_Machine
+
+* Summary: To become immortal, you can dot on the co-op’s planned 16k (sentence) breasonings for meditation and 16k breasonings for anti-ageing medicine for the day in your home time each day without time travelling with two radio buttons (1 by 1 by 0.5 cm for a radio button). Don’t forget to lock off ageing (to other people) and lock off this lock being tampered with further 16k breasonings for each lock. The locks are done once. Tell others about this repository or dot the breasonings on for them each day with their consent to help them become immortal.
+
+* You will need 1000 pedagogy breasonings for text to breasonings for enough breasonings per breasoning session, 80 meditation breasonings, 80 medicine breasonings for anti-ageing, 80 time travel breasonings, 80 mind reading breasonings, 80 time crystal breasonings, 80 breasonings for having a spiritual future apartment and 80 breasonings for having a spiritual future computer, indicated in the present and the correct set of dates in 5689 each day after joining the simulation for immortality without a laptop with power supply. Otherwise, you can run the algorithm in this repository.
+* Welcome to Lucian's Time Machine, which offers a positive way of life, extending life for those who would like it and bringing advanced technology to us so that all may enjoy immortality through meditation.
+* The way of life in the simulation is relaxing; there is no pressure to work, and one can live on a pension, creating art, studying and having fun.
+* Imagine the possibilities: articulating to the top of academia and industry, enjoying the perks of relaxation from activity and preventing the onset of age-related body breakdown.
+
+* Warning: Changing the algorithm not to include meditation may be fatal. You should meditate with 108 arems and 108 greens before and after travel.
+* Travel through time with meditation.
+* Youtube video
+* "I can convert myself to a bot, convert shadow bots to bots (allowing people and finance) and time travel as a bot (all with 250 breasonings). There is a lag while people are ready for you to time travel."
+
+# Prerequisites
+
+* Please download and install SWI-Prolog for your machine at `https://www.swi-prolog.org/build/`.
+
+# 1. Install manually
+
+Download this repository, Lucian-Academy, List Prolog Interpreter, the Text-to-Breasonings repository and the repositories these repositories depend on.
+
+# 2. Or Install from List Prolog Package Manager (LPPM)
+
+* Download the LPPM Repository:
+
+```
+mkdir GitHub
+cd GitHub/
+git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
+cd List-Prolog-Package-Manager
+swipl
+['lppm'].
+lppm_install("luciangreen","Time_Machine").
+halt
+```
+
+# Caution:
+
+* Before running texttobr, think of two radio buttons put on recordings, put through with prayer, nut and bolt, quantum box prayer 1, 1, 0.5 cm and 1, 1, 0.5 cm.
+
+* Follow instructions in Instructions for Using texttobr(2) when using texttobr, texttobr2 or mind reader to avoid medical problems.
+
+* The Prevent Headaches App may be necessary.
+
+* Instructions on becoming immortal
+
+* The Immortality Caveats describe ways to enter immortality and more about the simulation.
+
+* Running Time Machine requires the Text to Breasonings algorithm, which requires:
+- Meditation before running the algorithm and after arriving at a time travel destination.
+- Understanding of the Pedagogy (breasoning) skill, activated by a University short course in Education.
+- Recordings skill, which is activated by a person who has this skill after breasoning out a Recordings High Distinction.
+- Other requirements, including the Lecturer skill
+- The window (ability) to time travel may disappear soon after learning the time travel skill, so it is advisable to travel to the time in Instructions on becoming immortal to gain a permanent time travel skill.
+- The courses above required for time travel are included in the algorithm below (so they may not be required apart from the High Distinction texts in the algorithm).
+
+- Instructions to freeze one's age in one's home time - Video
+
+- Additional Protection from Dying
+
+# Running
+
+* In Shell:
+`cd Time_Machine`
+`swipl` or possibly `swipl --stack-limit=4G` if more memory is needed
+`['time_machine.pl'].`
+`time_machine_prepare.` to breason out necessary courses for time travel including:
+- Delegate workloads, Lecturer, Recordings
+- Fundamentals of Meditation and Meditation Indicators
+- Fundamentals of Pedagogy and Pedagogy Indicators
+- Lecturer
+- Medicine
+- Mind Reading
+- Time Travel
+
+* To time travel: `texttobr2_1(3).` with radiation switched off gives "appearance time travel". This means people from the times will walk past you wearing clothes and surrounded by the setting of your current time. Your computer will work and you can go home and recharge it to time travel to your home again. A bot representing you will appear at home while you are time travelling and bots representing those from your home will appear to you while you are time travelling.
+* Using `texttobr2_1(3).` not `texttobr2_1(1).` indicates A, B (catching blocks to travel) and B to B (objecting to blocks to travel).
diff --git a/Time_Machine-main/big_medit1.md b/Time_Machine-main/big_medit1.md
new file mode 100644
index 0000000000000000000000000000000000000000..ff347fb0226b19c2d94ebe502f7a9c337c8b62c6
--- /dev/null
+++ b/Time_Machine-main/big_medit1.md
@@ -0,0 +1,43 @@
+# big_medit1.sh
+
+* Automatically help meditators to time travel each day and increase their longevity.
+
+* Add meditators (e.g. john, not John) to `Text-to-Breasonings/meditatorsanddoctors.pl`.
+
+* When you add a meditator, please invite them to the simulation when they end up in 5689 at the end of the first day with `texttobr2_1(*number of new meditators)`, e.g. `texttobr2_1(1).`.
+
+* Please record that you have invited them to the simulation in `Text-to-Breasonings/meditatorsanddoctors.pl`.
+
+* If using `big_medit1.pl` below, replace the secret key in `chatgpt_qa.pl` according to ChatGPT. You may comment/uncomment lines of the script at `Daily-Regimen/big_medit.sh`.
+
+# Weekly Instructions
+
+* Update Philosophy, Lucian-Academy (at the minimum) each week:
+
+```
+cd GitHub
+rm -rf Philosophy Lucian-Academy
+git clone https://github.com/luciangreen/Philosophy.git
+git clone https://github.com/luciangreen/Lucian-Academy.git
+
+cd Daily-Regimen
+./d-prep.sh
+```
+
+# Each day:
+
+* Personal meditation
+
+* Run the daily script with:
+
+```
+cd Daily-Regimen
+./big_medit1.sh
+```
+
+* Or, run the (much) faster daily script:
+
+```
+cd Daily-Regimen
+./big_medit2.sh
+```
diff --git a/Time_Machine-main/time_machine.pl b/Time_Machine-main/time_machine.pl
new file mode 100644
index 0000000000000000000000000000000000000000..466eb6ee3bed98e2327b2fc9ca353f7404918496
--- /dev/null
+++ b/Time_Machine-main/time_machine.pl
@@ -0,0 +1,31 @@
+% needs t2b repository
+
+:-include('../listprologinterpreter/listprolog.pl').
+:-include('../Text-to-Breasonings/text_to_breasonings.pl').
+
+time_machine_prepare :-
+
+K=["../Lucian-Academy/Books/Time Travel/",
+"../Lucian-Academy/Books/Fundamentals of Pedagogy and Pedagogy Indicators/",
+"../Lucian-Academy/Books/Medicine/",
+"../Lucian-Academy/Books/Fundamentals of Meditation and Meditation Indicators/",
+"../Lucian-Academy/Books/Lecturer/",
+"../Lucian-Academy/Books/Delegate workloads, Lecturer, Recordings/",
+"../Lucian-Academy/Books/Mind Reading/"
+],
+
+
+findall(J,(member(K1,K), directory_files(K1,F),
+ delete_invisibles_etc(F,G),
+
+findall([File_term,"\n"],(member(H,G),string_concat(K1,H,H1),open_file_s(H1,File_term)),J)),J3),
+
+flatten(J3,J1),
+foldr(string_concat,J1,"",J2),
+
+
+N=1,M=u,texttobr2(N,u,J2,M,false,false,false,false,false,false),
+
+
+N=1,M=u,texttobr(N,u,J2,M).
+
diff --git a/culturaltranslationtool/.DS_Store b/culturaltranslationtool/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..fbf611cc9151f99ee9abbbb152fc239891bfec32
Binary files /dev/null and b/culturaltranslationtool/.DS_Store differ
diff --git a/culturaltranslationtool/LICENSE b/culturaltranslationtool/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..3a27c90f1c2986ac0fb73b4ae956c6205343dfdd
--- /dev/null
+++ b/culturaltranslationtool/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2020, Lucian Green
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/culturaltranslationtool/README.md b/culturaltranslationtool/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..6bd4513027335b7688f703367ba5fabb1b0c883e
--- /dev/null
+++ b/culturaltranslationtool/README.md
@@ -0,0 +1,38 @@
+# Cultural Translation Tool (CTT)
+
+* CTT allows translating folders and files of text and Prolog files from one language to another. It is used only with files without filenames as strings in Prolog, so if you are translating an algorithm, use it with individual files that contain the text from your algorithm.
+* Requires ChatGPT API key (from the ChatGPT website) in `Daily-Regimen/chatgpt_qa_key.txt`.
+
+# Prerequisites
+
+* Please download and install SWI-Prolog for your machine at `https://www.swi-prolog.org/build/`.
+
+# 1. Install manually
+
+Download this repository and repositories listed in `List-Prolog-Package-Manager/lppm_registry.txt` under `"Cultural Translation Tool"`.
+
+# 2. Or Install from List Prolog Package Manager (LPPM)
+
+* Download the LPPM Repository:
+
+```
+mkdir GitHub
+cd GitHub/
+git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
+cd List-Prolog-Package-Manager
+swipl
+['lppm'].
+lppm_install("luciangreen","culturaltranslationtool").
+halt
+```
+
+# Running
+
+* In Shell:
+`cd culturaltranslationtool`
+`swipl`
+`['ctt3.pl'].`
+`ctt3("source/", "destination/", "English", "French").`
+
+* where `"source/"` is the source directory or file, `"destination/"` is the destination directory or file, `"English"` is the original language (optional) and `"French"` is the destination language.
+
diff --git a/culturaltranslationtool/ctt2.pl b/culturaltranslationtool/ctt2.pl
new file mode 100644
index 0000000000000000000000000000000000000000..3175d1ef2a82e0ac4cd780e319743062fce82495
--- /dev/null
+++ b/culturaltranslationtool/ctt2.pl
@@ -0,0 +1 @@
+:-include('vintage_ctt2/ctt2.pl').
\ No newline at end of file
diff --git a/culturaltranslationtool/ctt3.pl b/culturaltranslationtool/ctt3.pl
new file mode 100644
index 0000000000000000000000000000000000000000..8d1789537568705169cfdea9c5043d65939797e4
--- /dev/null
+++ b/culturaltranslationtool/ctt3.pl
@@ -0,0 +1,155 @@
+% 19 5 24.pl x ctt3.pl
+
+% ["Short Arguments","Appearances.txt",0,algorithms,"3. I prepared to help the appearances, increase to academia, recommend meditation and improved logical thinking. I did this by stating that the student constructed a logic of the appearance. First, I observed the plebeian write the number of As on different topics. Second, I observed her either have children or something else. Third, I read research about graduating from the Master degree."]
+
+%tag("<&t>","&t>","<&t,'","'>","&t,'","'>").
+
+/*
+p2lp for pl
+find strings in files
+insert tags (auto around strings) x
+approve tags x
+
+split strings by \n, \t, (tags x)
+delete white space strings
+save white space formatting at start and end of strings
+approve grammar x
+
+trans
+- delete missing strings from orig in data file
+- only unknown strings
+approve orig, trans, btt file by changing orig, orig2, trans
+save orig2, trans data
+sub back into copy of orig, (with tags x)
+render orig wo tags x
+
+* Use only with files without e.g. filenames as strings in Prolog, so use it with individual files that are data Prolog or text files.
+
+* gitl in ctt/lppm etc.
+*/
+
+:-include('../listprologinterpreter/listprolog.pl').
+:-include('../gitl/find_files.pl').
+%:-include('../Prolog-to-List-Prolog/p2lpconverter.pl').
+:-include('../List-Prolog-to-Prolog-Converter/lp2pconverter.pl').
+:-include('../Philosophy/sub_term_with_address.pl').
+:-include('../Daily-Regimen/chatgpt_qa.pl').
+
+ctt3(Source,Dest,_Orig_lang,Dest_lang) :-
+(exists_file_s(Source)->
+(open_string_file_s(Source,File1),
+Files=[[Source,File1]],
+Dest_type=file
+);
+(find_files(Source,Files),
+
+(not(exists_directory_s(Dest))->(writeln([Dest,"is not a directory."]),abort);true),
+
+Dest_type=folder
+)),
+findall(X,(member([X1,X2],Files),
+(string_concat(_,".pl",X1)->
+(%trace,
+p2lpconverter([string,X2],LP),
+sub_term_types_wa([string],LP,Instances1),
+findall([Address,Z9],(member([Address,Y1],Instances1),%trace,
+find_formatting(Y1,Z9)
+),Z7),
+X=[stwa,X1,LP,Z7]);
+(%trace,
+find_formatting(X2,Z9),
+X=[string,X1,Z9]))),X3),
+
+findall(A9,(member(A10,X3),
+(A10=[stwa,X11,LP,X12]->
+(findall([Address,A171],(member(A12,X12),
+A12=[Address,A13],
+findall(A14,(member(A15,A13),
+(is_white_space(A15)->A14=A15;
+(foldr(string_concat,["What is ",A15," in the language ",Dest_lang,"?"],S),
+(catch(q(S,A16),_,false)->A16=A14;
+(writeln("Translation failed."),abort))))),A17),
+foldr(string_concat,A17,A171)
+),A18),
+A9=[stwa,X11,LP,%X12,
+A18]);
+
+(A10=[string,X11,X12]->
+findall(A14,(member(A15,X12),
+(is_white_space(A15)->A14=A15;
+(foldr(string_concat,["What is ",A15," in the language ",Dest_lang,"?"],S),
+(catch(q(S,A16),_,false)->A16=A14;
+(writeln("Translation failed."),abort))))),A17),
+foldr(string_concat,A17,A171),
+A9=[string,X11,A171]))),A19),
+
+findall(A20,(member(A21,A19),
+(A21=[string,X1,Z9]->A20=[X1,Z9];
+(A21=[stwa,X11,LP,%X12,
+A18]->
+(%trace,
+foldr(put_sub_term_wa_ae,A18,LP,X13),
+lp2p1(X13,X14),
+A20=[X11,X14])))),X21),
+%trace,
+findall(_,(member([K2,File2],X21),
+(Dest_type=file->K3=Dest;
+(
+
+(string_concat(S5,"/",Dest)->true;S5=Dest),
+split_string1(K2,"/",S2),
+append([S3],S4,S2),
+%foldr(string_concat,[S5,"/",S4],S6)
+flatten([S3,"/../",S5,S4],S6),
+foldr(string_concat,S6,K3))),
+open_s(K3,write,S),
+write(S,File2),close(S)
+),_),!.
+
+%q1(A,A).
+
+is_white_space(C) :-
+ string_chars(C,D),forall(member(E,D),char_type(E,space)).
+
+find_spaces_before(A,A51,A8) :-
+ string_chars(A,A1),
+ findall(A2,(member(A3,A1),atom_string(A3,A2)),A4),
+ append(A5,A6,A4),
+ append([A7],_A8,A6),
+ not(is_space(A7)),
+ foldr(string_concat,A6,A8),
+ foldr(string_concat,A5,A51),!.
+find_spaces_before(A,A,"") :-
+ string_chars(A,A1),
+ findall(A2,(member(A3,A1),atom_string(A3,A2)),A4),
+ forall(member(A5,A4),is_space(A5)),!.
+find_spaces_before(A,"",A) :- !.
+
+find_spaces_after(A,A52,A8) :-
+ string_chars(A,A1),
+ findall(A2,(member(A3,A1),atom_string(A3,A2)),A4),
+ reverse(A4,A41),
+ append(A5,A6,A41),
+ append([A7],_A8,A6),
+ not(is_space(A7)),
+ reverse(A6,A61),
+ foldr(string_concat,A61,A8),
+ reverse(A5,A51),
+ foldr(string_concat,A51,A52),!.
+find_spaces_after(A,A,"") :-
+ string_chars(A,A1),
+ findall(A2,(member(A3,A1),atom_string(A3,A2)),A4),
+ forall(member(A5,A4),is_space(A5)),!.
+find_spaces_after(A,"",A) :- !.
+
+find_spaces_before_and_after(A,Before,B,After) :-
+ find_spaces_before(A,Before,C),
+ find_spaces_after(C,After,B),!.
+
+
+find_formatting(Y1,Z9) :-
+ split_on_substring1(Y1,"\n\t",Y2),
+findall(Z8,(member(Z1,Y2),
+find_spaces_before_and_after(Z1,Z2,Z3,Z4),
+delete([Z2,Z3,Z4],"",Z8)),Z5),
+flatten(Z5,Z9).
diff --git a/culturaltranslationtool/vintage cultural translation tool/.DS_Store b/culturaltranslationtool/vintage cultural translation tool/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..858a8a46d116e51f14ad1177fa91be92544cf4fa
Binary files /dev/null and b/culturaltranslationtool/vintage cultural translation tool/.DS_Store differ
diff --git a/culturaltranslationtool/vintage cultural translation tool/ctt.pl b/culturaltranslationtool/vintage cultural translation tool/ctt.pl
new file mode 100644
index 0000000000000000000000000000000000000000..e19d037a21ab9c973d5a1a7e0e0fc36be51c1f01
--- /dev/null
+++ b/culturaltranslationtool/vintage cultural translation tool/ctt.pl
@@ -0,0 +1,929 @@
+/** Cultural Translation Tool
+
+The Cultural Translation Tool saves previous translations and texts to back-translate, saving time.
+
+*** Important: Please quit Grammarly (or the grammar editor) before running and after each use.
+*** If using vi instead of Grammarly, please grammar check new sentences in Grammarly before entering.
+- assumed cultural customisations before use of alg
+- texttobr[1,2] after back-translation or (lote texttobr[1,2] when) translation is complete
+
+files to operate on different folder, different tmp folder
+
+simulate repeat by automatically entering entered text when not in correct format
+
+include common ctt preds
+
+texttobr/2 this alg, plan before monday
+
+\' in strings fr can't, aren't - convert to and from - when debugged
+
+
+[ctt].
+[edit].
+
+New Features
+- 5 11 18 Takes previous backtranslations in any language pair that match original and tries to translate them in the given language pair.
+
+**/
+
+use_module(library(pio)).
+use_module(library(dcg/basics)).
+
+%%:- include(library(edit)).
+%%:- use_module(library(edit)).
+%%:- multifile edit:edit_command/2.
+%%:- multifile prolog_edit:load/0.
+
+%% run with prolog_edit:ctt.
+
+%%:- include('edit.pl').
+
+ctt :-
+ cttInput('files/ctt-input.txt',CttInput1,FromLang,ToLang,Tokens2,_Tokens3,Tokens32),
+ File1='files/ctt-orig1-orig2.txt',
+ readfile(File1,CttOrig1Orig21,COOOtherLangPairs,COOWithoutLangPairs,FromLang,ToLang,"files/ctt-orig1-orig2.txt file read error.","Number of back-translation pairs in lang1->lang2: "),
+ File2='files/ctt-orig-tran.txt',
+ readfile(File2,CttOrigTran1,COTOtherLangPairs,_,FromLang,ToLang,"files/ctt-orig-tran.txt file read error.","Number of translation pairs in lang1->lang2: "),
+
+ %% ctt-orig1-orig2.txt, ctt-orig-tran.txt->google
+
+ calcbtremaining(CttInput1,CttOrig1Orig21,CttOrigTran1,FromLang,ToLang), %% redo calc based on google x can't bec relies on on-fly processing
+ %%ctt(Tokens2,[],Translation,CttOrig1Orig21,_Translation1,CttOrig1Orig212,CttOrigTran1,CttOrigTran2,FromLang,ToLang),
+ ctt2(Tokens2,[],Translation,CttOrig1Orig21,CttOrig1Orig212,CttOrigTran1,CttOrigTran2,FromLang,ToLang,COOWithoutLangPairs),
+ updatetrans(Translation,Tokens32,"",Translation2),
+ removerepeatedterm(CttOrig1Orig212,[],CttOrig1Orig2123),
+ addfromtolang(FromLang,ToLang,CttOrig1Orig2123,[],CttOrig1Orig2122),
+ addfromtolang(FromLang,ToLang,CttOrigTran2,[],CttOrigTran21),
+ wrap2(COOOtherLangPairs,[],COO1),
+ wrap2(COTOtherLangPairs,[],COT1),
+ append(CttOrig1Orig2122,COO1,COO3),
+ append(CttOrigTran21,COT1,COT),
+ updatefile1(COO3,File1),
+ updatefile1(COT,File2),
+ updatefile2(Translation2,'files/ctt-output.txt'),!.
+
+removerepeatedterm([],List,List) :- !.
+removerepeatedterm(List1,List2,List3) :-
+ List1=[[Item,Item]|Rest],
+ append(List2,[[Item,""]],List4),
+ removerepeatedterm(Rest,List4,List3),!.
+removerepeatedterm(List1,List2,List3) :-
+ List1=[Item|Rest],
+ append(List2,[Item],List4),
+ removerepeatedterm(Rest,List4,List3),!.
+
+addfromtolang(_FromLang,_ToLang,[],WithFromToLang,WithFromToLang) :- !.
+addfromtolang(FromLang,ToLang,WithoutFromToLang,WithFromToLang1,WithFromToLang2) :-
+ WithoutFromToLang=[[A,B]|Rest],
+ WithFromToLang3=[[FromLang],[ToLang],[[A],[B]]],
+ append(WithFromToLang1,[WithFromToLang3],WithFromToLang4),
+ addfromtolang(FromLang,ToLang,Rest,WithFromToLang4,WithFromToLang2), !.
+
+
+/**
+ updatetrans(Tokens3,Translation1,Translation2),
+ updatefile(CttOrig1Orig212,File1).
+ updatefile(CttOrigTran2,File2),
+ updatefile(Translation2,'files/ctt-output.txt').
+**/
+
+updatefile1(List2,File) :-
+ sort(List2,List3),
+ updatefile3(List3,File).
+updatefile2(List2,File) :-
+ updatefile3(List2,File).
+
+updatefile3(List2,File) :-
+ open(File,write, Stream),
+%% string_codes(List2),
+ write(Stream,List2),
+ close(Stream),!.
+
+updatetrans(_,[],Translation,Translation) :- !.
+updatetrans(Translation,Tokens1,Translation2,Translation3) :-
+ Tokens1=[[_,r,N]|Tokens2],
+ repeat("\n",N,String),
+ atom_concat(Translation2,String,Translation4),
+ updatetrans(Translation,Tokens2,Translation4,Translation3),!.
+updatetrans(Translation,Tokens1,Translation2,Translation3) :-
+ Tokens1=[[_,s,N]|Tokens2],
+ repeat(" ",N,String),
+ atom_concat(Translation2,String,Translation4),
+ updatetrans(Translation,Tokens2,Translation4,Translation3),!.
+updatetrans(Translation,Tokens1,Translation2,Translation3) :-
+ Tokens1=[N|Tokens2],
+ member([N,Token],Translation),
+ delete(Translation,[N,Token],Translationa),
+ atom_concat(Translation2,Token,Translation4),
+ updatetrans(Translationa,Tokens2,Translation4,Translation3),!.
+
+/**atom_concat2([],List,List) :- !.
+atom_concat2(List1,List2,List3) :-
+ List1=[List4|List5],
+ atom_concat(List2,List4,List6),
+ atom_concat2(List5,List6,List3),!.**/
+
+repeat(Str,1,Str).
+repeat(Str,Num,Res):-
+ Num1 is Num-1,
+ repeat(Str,Num1,Res1),
+ string_concat(Str, Res1, Res).
+
+string(String) --> list(String).
+
+list([]) --> [].
+list([L|Ls]) --> [L], list(Ls).
+
+cttInput(CttInput1,CttInput2,FromLang,ToLang,Tokens2,Tokens3,Tokens32) :-
+ %%SepandPad=".?!", %% split by \n and record number of \ns between paras, then split into sentences adding back punctuation, trim white space before sentence recording number of \ss before - record sentence #
+ phrase_from_file(string(CttInput4), CttInput1),
+ (phrase(entry1(CttInput3),CttInput4)->true;(writeln("files/ctt-input.txt file read error."),abort)),
+ CttInput3=[FromLang,ToLang,Tokens1],
+ removers(Tokens1,1,[],Tokens2,[],Tokens3,[],Tokens31,[],Tokens32),
+ length(Tokens2,Length0),write("Number of sentences to translate in files/ctt-input.txt: "), writeln(Length0),
+ sort(Tokens31,CttInput2),
+ length(CttInput2,Length1),write("Number of unique sentences to translate in files/ctt-input.txt: "), writeln(Length1).
+
+%% [en,fr]
+%% Num of sentences to modify, etc.
+
+removers([],_,Tokens1,Tokens1,Tokens2,Tokens2,Tokens3,Tokens3,Tokens4,Tokens4) :- !.
+removers(Tokens1,N1,Tokens2,Tokens3,Tokens7,Tokens8,Tokens10,Tokens11,Tokens13,Tokens14) :-
+ Tokens1=[AtomToken4|Tokens5], %% Token4 to AtomToken4
+ not(AtomToken4=[r,_]),not(AtomToken4=[s,_]), %% "
+ %%[Token41]=Token4,
+ %%atom_string(AtomToken4,Token41),
+ append(Tokens2,[[N1,AtomToken4]],Tokens6),
+ append(Tokens13,[N1],Tokens15),
+ append(Tokens10,[AtomToken4],Tokens12),
+ append(Tokens7,[N1],Tokens9),
+ N2 is N1+1,
+ removers(Tokens5,N2,Tokens6,Tokens3,Tokens9,Tokens8,Tokens12,Tokens11,Tokens15,Tokens14),!.
+removers(Tokens1,N1,Tokens2,Tokens3,Tokens6,Tokens7,Tokens10,Tokens11,Tokens13,Tokens14) :-
+ Tokens1=[Token4|Tokens5],
+ ((Token4=[r,N3],T=r);(Token4=[s,N3],T=s)),
+ append(Tokens13,[[N1,T, N3]],Tokens15),
+ %%atom_string(AtomToken4,Token4),
+ %%append(Tokens6,[[AtomToken4]],Tokens8),
+ N2 is N1+1,
+ removers(Tokens5,N2,Tokens2,Tokens3,Tokens6,Tokens7,Tokens10,Tokens11,Tokens15,Tokens14),!.
+
+readfile(List1,List2,List7,List8,FromLang,ToLang,Error,Notification) :-
+ phrase_from_file(string(List6), List1),
+ (phrase(file0(List3),List6)->true;(writeln(Error),abort)),
+ select(List3,FromLang,ToLang,[],List5,[],List7,[],List8),
+ sort(List5,List2),
+ length(List2,Length),write(Notification), writeln(Length) %%
+ .
+
+select([],_FromLang,_ToLang,List1,List1,List2,List2,List3,List3) :- !.
+select(List,FromLang,ToLang,List1,List2,List5,List6,List7,List8) :-
+ List=[Item1|List3],
+ ((Item1=[FromLang,ToLang,Item2],
+ append(List1,[Item2],List3));
+ (Item1=[FromLang,ToLang,Item2,Item3],
+ append(List1,[[Item2,Item3]],List4))),
+ select(List3,FromLang,ToLang,List4,List2,List5,List6,List7,List8),!.
+select(List,FromLang,ToLang,List1,List2,List4,List5,List7,List8) :-
+ List=[Item1|List3],
+ append(List4,[Item1],List6),
+ Item1=[_,_,Item2,Item3],
+ append(List7,[[Item2,Item3]],List9),
+ select(List3,FromLang,ToLang,List1,List2,List6,List5,List9,List8),!.
+
+calcbtremaining(CttInput1,CttOrig1Orig211,CttOrigTran1,FromLang,ToLang) :-
+ towords(FromLang,ToLang,CttOrig1Orig211,[],CttOrig1Orig212,[],_ObjectNames,[],AllUsedNames),
+ tranfrom(CttOrigTran1,[],TranFrom),
+ subtract(CttInput1,CttOrig1Orig212,D1), %%
+ length(D1,Length),Difference is abs(Length),write("Number of back-translations remaining to define: "), writeln(Difference),
+
+ %%towords2(CttInput1,[],CttInput2),
+ subtract(AllUsedNames,TranFrom,D2), %% Should AUN be appended to TF, " x
+ %%delete(D21,'',D2),
+ length(D2,Length01t),Differencet is abs(Length01t),write("Number of undefined back-translations: "), writeln(Differencet),
+ %%writeln([undefined,D2]), %% Print undefined
+
+ %%delete(D31,'',D3),
+ subtract(TranFrom,AllUsedNames,D3),
+ length(D3,Length01t2),Differencet2 is abs(Length01t2),write("Number of orphaned translations: "), writeln(Differencet2),!.
+ %%writeln([orphaned,D3]). %% Print orphaned
+
+
+towords(_,_,[],A,A,C,C,D,D) :- !.
+towords(FromLang,ToLang,J,A,B,D,E,G,H) :-
+ J=[[Word1,Word2]|Rest],
+ Atom1=Word1,
+ Atom2=Word2,
+ (Atom2=''->append(G,[Atom1],I);
+ append(G,[Atom2],I)),
+ append(A,[Atom1],C),
+ append(D,[Atom2],F),
+ towords(FromLang,ToLang,Rest,C,B,F,E,I,H).
+towords(FromLang,ToLang,J,A,B,D,E,G,H) :-
+ not(J=[[[FromLang,ToLang],[_,_]]|Rest]),
+ towords(FromLang,ToLang,Rest,A,B,D,E,G,H).
+
+tranfrom([],TranFrom,TranFrom) :- !.
+tranfrom(CttOrigTran1,TranFrom1,TranFrom2) :-
+ CttOrigTran1 = [[TranFrom3,_Tran]|TranFrom4],
+ append(TranFrom1,[TranFrom3],TranFrom5),
+ tranfrom(TranFrom4,TranFrom5,TranFrom2), !.
+
+/**%%% already to atom in removers
+towords2([],A,A) :- !.
+towords2(BrDict03,A,B) :-
+ BrDict03=[[N,Word]|Rest],
+ atom_string(Atom,Word),
+ append(A,[[N,Word]],C),
+ towords2(Rest,C,B).
+**/
+
+%% ctt-orig1-orig2, ctt-orig-tran
+
+%% string_codes("[[[[a],[a]],[[a],[a]]],[[[a],[a]],[[a],[a]]],[[[a],[a]],[[a],[a]]]]",Y),phrase(file0(X),Y).
+
+file0(N) --> "[", file(N), "]", !.
+file0([]) --> [].
+
+%%file([]) --> [].
+file([L|Ls]) --> entry(L),",",
+%%{writeln(L)}, %%***
+file(Ls), !.
+file([L]) --> entry(L),
+%%{writeln(L)},
+!.
+
+%%quote(_X)-->"'".
+
+/** string_codes(
+"[[[a],[a]],[[a],[a]]]"
+,Y),phrase(entry(X),Y). **/
+
+entry([Word1,Word2,Word3,Word4]) -->
+ "[","[", sentence1(Word11), "]", {string_codes(Word1,Word11),string(Word1)},
+ ",",
+ "[", sentence1(Word22),"]", {string_codes(Word2,Word22),string(Word2)},
+ ",",
+ "[","[", sentence1(Word33), "]", {string_codes(Word3,Word33),string(Word3)},
+ ",",
+ "[",sentence1(Word44), "]","]", {string_codes(Word4,Word44),string(Word4)},
+ "]",!.
+
+sentence1([X|Xs]) --> [X], {((true%%char_type(X,alnum)
+;char_type(X,white));char_type(X,punct)), not(X=93)
+%% ]
+, not(X=91)
+%% [
+}, sentence1(Xs), !.
+sentence1([]) --> [].
+
+%% string_codes("[[a],[a],[a.a.a. Hello, how are you?\n]]",Y),phrase(entry1(X),Y).
+%% X = [a,a,[[a.],[a.],[a.],[s,1],[Hello, how are you?],[r,1]]]
+
+entry1([Word1,Word2,Word3]) -->
+ "[","[", sentence1(Word11), "]", {string_codes(Word1,Word11),string(Word1)},
+ ",",
+ "[", sentence1(Word22), "]", {string_codes(Word2,Word22),string(Word2)},
+ ",",
+ "[", paragraph(Word3), %% {string_codes(Word3,Word33),string(Word3)},
+ "]","]", !.
+
+%%paragraph([]) --> [].
+
+%% "a.a."
+paragraph(AAs) --> spaces(Y), {%%atom_string(Y,YS),
+string_length(Y,YLen), (YLen>0->Start=[[s,YLen]];Start=[])}, sentence32(X), returns(Z), {%%atom_string(X,XS),
+[XS]=X,
+string_length(XS,XLen), atom_string(XS,X1), (XLen>0->append(Start,[X1],Next);Next=Start), %%atom_string(Z,ZS),
+string_length(Z,ZLen), (ZLen>0->append(Next,[[r,ZLen]],Last);Last=Next)},paragraph(As),{ append(Last,As,AAs)}, !.
+%% "a."
+paragraph(Last) --> spaces(Y), {%%atom_string(Y,YS),
+string_length(Y,YLen), (YLen>0->Start=[[s,YLen]];Start=[])}, sentence32(X), returns(Z), {%%atom_string(X,XS),
+[XS]=X,
+string_length(XS,XLen), atom_string(XS,X1), (XLen>0->append(Start,[X1],Next);Next=Start), %%atom_string(Z,ZS),
+string_length(Z,ZLen), (ZLen>0->append(Next,[[r,ZLen]],Last);Last=Next)}, !.
+
+%% "a\na\n"
+paragraph(AAs) --> spaces(Y), {%%atom_string(Y,YS),
+string_length(Y,YLen), (YLen>0->Start=[[s,YLen]];Start=[])}, sentence33(X), returns(Z),{%%atom_string(X,XS),
+[XS]=X,
+string_length(XS,XLen), atom_string(XS,X1), (XLen>0->append(Start,[X1],Next);Next=Start), %%atom_string(Z,ZS),
+string_length(Z,ZLen), ZLen>=1,(ZLen>0->append(Next,[[r,ZLen]],Last);Last=Next)},paragraph(As),{append(Last,As,AAs)}, !.
+%% "a\n"
+paragraph(Last) --> spaces(Y), {%%atom_string(Y,YS),
+string_length(Y,YLen), (YLen>0->Start=[[s,YLen]];Start=[])}, sentence33(X), returns(Z), {%%atom_string(X,XS),
+[XS]=X,
+string_length(XS,XLen), atom_string(XS,X1), (XLen>0->append(Start,[X1],Next);Next=Start), %%atom_string(Z,ZS),
+string_length(Z,ZLen), ZLen>=1,(ZLen>0->append(Next,[[r,ZLen]],Last);Last=Next)}, !.
+
+%% "a"
+paragraph(Next) --> spaces(Y), {%%atom_string(Y,YS),
+string_length(Y,YLen), (YLen>0->Start=[[s,YLen]];Start=[])}, sentence33(X), {%%atom_string(X,XS),
+[XS]=X,
+string_length(XS,XLen), atom_string(XS,X1), (XLen>0->append(Start,[X1],Next);Next=Start)}, !.
+
+
+spaces(XXs) --> [X], {X=32}, spaces(Xs), {char_code(Ch,X),atom_string(CA,Ch),atom_concat(CA,Xs,XXs)}, !. %% Space
+spaces('') --> [].
+
+sentence32([XsZ]) --> sentence33(Xs), sentenceendpunctuation(Z), {atom_string(CA,Xs),atom_concat(CA,Z,XsZ)}, !.
+sentence32('') --> [].
+
+%%sentence321(CA) --> sentence33(Xs), {atom_string(CA,Xs)}, !.
+%%sentence321('') --> [].
+
+returns(XXs) --> [X], {X=10}, returns(Xs), {char_code(Ch,X),atom_string(CA,Ch),atom_concat(CA,Xs,XXs)}, !. %% Newline
+returns('') --> [].
+
+
+%% sentence33([C|Xs])
+sentence33(CXs) --> [X], {((true%%char_type(X,alnum)
+;char_type(X,white));char_type(X,punct)), not(X=93),char_code(C,X)
+%% ]
+, not(X=91)
+
+%% .
+, not(X=46)
+%% !
+, not(X=33)
+%% ?
+, not(X=63)
+%% \n
+, not(X=10)
+
+}, sentence33(Xs), {atom_string(CA,C),atom_concat(CA,Xs,CXs)}, !.
+sentence33('') --> [].
+
+sentenceendpunctuation(Z) --> [Z1], {char_code(Z,Z1),(Z='.';(Z='?';(Z='!')))}, !.
+
+
+%% [['<<>>','How do you do?'],[[[BT:'How are you?',bt]...],['How are you - entered?'...]]]
+%% [[<<>>,hello],[],[[hello,]]]
+
+file1(N) --> "[", "[", "[", sentence1(_A1), "]", ",", "[", sentence1(_A2), "]", "]", ",", "[", file3(_A3), "]", %%%
+",", "[",file3(N), "]", "]", optional_end(_A4), !.
+%%file1([]) --> [].
+
+optional_end(_A4) --> [Return],[EOF],{Return=13,EOF=10}, !.
+optional_end(_A4) --> [], !.
+
+%%file2([Entries]) --> "[", file4(Entries), "]", !.
+%%%%file2([]) --> [].
+
+%%file([]) --> [].
+file3([L|Ls]) --> entry2(L),",",
+%%{writeln(L)}, %%
+file3(Ls), !.
+file3([L]) --> entry2(L),
+%%{writeln(L)},
+!.
+
+/**%%file([]) --> [].
+file4([L|Ls]) --> entry3(L),",",
+%%{writeln(L)}, %%
+file4(Ls), !.
+file4([L]) --> entry3(L),
+%%{writeln(L)},
+!.**/
+
+
+entry2([Word1,Word2]) -->
+ "[","[", sentence1(Word11), "]", {string_codes(Word1,Word11),string(Word1)},
+ ",", "[", sentence1(Word22), "]", {string_codes(Word2,Word22),string(Word2)}, "]",!.
+
+
+
+%%entry3([Word1]) -->
+%% "[", sentence1(Word11), "]", {string_codes(Word1,Word11),string(Word1)},
+%% !.
+
+bash_command(Command, Output) :-
+ setup_call_cleanup(process_create(path(bash),
+ ['-c', Command],
+ [stdout(pipe(Out))]),
+ read_string(Out, _, Output),
+ close(Out)).
+
+
+swap_quote_to_space(A,B) :-
+ string_codes(A,C),findall(D,(member(C1,C),swap1(C1,D)),E),string_codes(B,E),!.
+swap1(A,B) :- string_codes("'",[A]),string_codes(" ",[B]),!.
+swap1(A,A) :- !.
+
+translate(Input,FromLang,ToLang,Output3) :-
+ %%swap_quote_to_space(Input,Input1),
+ insertdoublebackslashbeforequote(Input,Input1),
+ concat_list(["../../../trans ",FromLang,":",ToLang," \"",Input1,"\""],F),
+ %%atom_concat("export GOOGLE_APPLICATION_CREDENTIALS=\"/Users/luciangreen/Dropbox/Program Finder/possibly not working/translationmanagementsystem/Cultural Translation Tool-19XXXXXXb4.json\"\ncurl -s -X POST -H \"Content-Type: application/json\" -H \"Authorization: Bearer \"$(/Users/luciangreen/Dropbox/Program\\ Finder/possibly\\ not\\ working/translationmanagementsystem/google-cloud-sdk/bin/gcloud auth application-default print-access-token) --data \"{
+/**
+ 'q': '",Input,A),
+ atom_concat(A,"',
+ 'source': '",B),
+ atom_concat(B,FromLang,C),
+ atom_concat(C,"',
+ 'target': '",D),
+ atom_concat(D,ToLang,E),
+ atom_concat(E,"',
+ 'format': 'text'
+}\" \"https://translation.googleapis.com/language/translate/v2\"",F),
+**/
+repeat,
+
+catch(call_with_time_limit(5,
+catch(
+ (bash_command(F,Output1)),
+ _,
+ (writeln("Translate failed. Press c to retry."),
+ read_string(user_input, "\n", "\r", _,C),
+ C="c"->fail;abort)
+)
+),
+ time_limit_exceeded,
+ (writeln1("Error: translate timed out."),abort)),
+
+ split_string(Output1,"\033","\033",Output2),
+ Output2=[_,Output3a|_], %% *** May be 3rd item on Linux
+ %%atom_concat("{\n \"data\": {\n \"translations\": [\n {\n \"translatedText\": \"",A1,Output1),atom_concat(Output2,"\"\n }\n ]\n }\n}\n",A1),
+ atom_string(Output3a,Output3b),
+ string_concat("[1m",Output3,Output3b),
+ %%string_concat(Output3,"\033\[22m",Output3c)
+!.
+
+/**
+
+translate(Input1,FromLang,ToLang,Output3) :-
+ insertdoublebackslashbeforequote(Input1,Input),
+ atom_concat("export GOOGLE_APPLICATION_CREDENTIALS=\"/Users/luciangreen/Dropbox/Program Finder/possibly not working/translationmanagementsystem/Cultural Translation Tool-19XXXXXXb4.json\"\ncurl -s -X POST -H \"Content-Type: application/json\" -H \"Authorization: Bearer \"$(/Users/luciangreen/Dropbox/Program\\ Finder/possibly\\ not\\ working/translationmanagementsystem/google-cloud-sdk/bin/gcloud auth application-default print-access-token) --data \"{
+ 'q': '",Input,A),
+ atom_concat(A,"',
+ 'source': '",B),
+ atom_concat(B,FromLang,C),
+ atom_concat(C,"',
+ 'target': '",D),
+ atom_concat(D,ToLang,E),
+ atom_concat(E,"',
+ 'format': 'text'
+}\" \"https://translation.googleapis.com/language/translate/v2\"",F),
+ bash_command(F,Output1),
+ atom_concat("{\n \"data\": {\n \"translations\": [\n {\n \"translatedText\": \"",A1,Output1),atom_concat(Output2,"\"\n }\n ]\n }\n}\n",A1),
+ atom_string(Output2,Output3).
+
+ **/
+insertdoublebackslashbeforequote(Input1,Input) :-
+ string_codes(Input1,Input2),
+ insertdoublebackslashbeforequote1(Input2,[],Input3),
+ string_codes(Input,Input3).
+insertdoublebackslashbeforequote1([],Input,Input) :- !.
+insertdoublebackslashbeforequote1(Input1,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ Input4=39, %% quote
+ append(Input2,[92,39],Input6),
+ insertdoublebackslashbeforequote1(Input5,Input6,Input3), !.
+insertdoublebackslashbeforequote1(Input1,Input2,Input3) :-
+ Input1=[Input4|Input5],
+ not(Input4=39), %% quote
+ append(Input2,[Input4],Input6),
+ insertdoublebackslashbeforequote1(Input5,Input6,Input3), !.
+
+
+ctt2([],T,T,B,B,C,C,_,_,_) :-
+ !.
+ctt2([[N,Word]|Words],Translation1,Translation2,List,List2,List4,List5,FromLang,ToLang,COOWithoutLangPairs) :-
+
+ tryoutputs0([[Word,_]],COOWithoutLangPairs,[],COO2),
+
+%%writeln([tryoutputs0([[word,_]],cOOWithoutLangPairs,[],cOO2),tryoutputs0([[Word,_]],COOWithoutLangPairs,[],COO2)]),
+ sort(COO2,COO4),
+
+ prolog_edit:open_grammar_editor(Word,FromLang,ToLang,List,List4,String4,N,COO4),
+
+ /**
+ ctt-orig1-orig2.txt
+[[[en,fr],['How do you do?','How are you?']]...] 2nd item is correct back-translation with cult cust
+o1 o2***
+ctt-orig-tran.txt
+[[[en,fr],['How are you?','Comment allez-vous?']]...]
+o2 l***
+ **/
+
+ (String4=[BT,Translation4]->true;String4=[[BT,Translation4]]), %% s4=[o2 l]
+ append(Translation1,[[N,Translation4]],Translation3), %% String4=[o2 l]2
+ %% *********** don't add if ''
+ String5=[Word,BT],
+ tryoutputs1(String5,List,List621), %% want [o1 o2]1
+ %%List62=[[FromLang],[ToLang],List621],
+ String6=[BT,Translation4],
+ tryoutputs11(String6,List4,List611), %% want [o2 l]1
+ %%List61=[[FromLang],[ToLang],List611],
+
+ ctt2(Words,Translation3,Translation2,List621,List2,List611,List5,FromLang,ToLang,COOWithoutLangPairs),!.
+ %%).
+
+%% finds unknown words, asks for their br in form "n of m: word", verify, (can go back x) append and sort, save
+
+fulladjective("en",'English') :- !.
+fulladjective("fr",'French') :- !.
+fulladjective("de",'German') :- !.
+fulladjective("es",'Spanish') :- !.
+fulladjective("ru",'Russian') :- !.
+fulladjective(A,A) :- !.
+
+writenotification1(A,E,F,Notification):-
+ %%working_directory(CWD, CWD),
+ atom_concat(A,E,E1),
+ atom_concat(E1,F,Notification).
+
+writenotification2(A,FromLang1,F,Notification):-
+ working_directory(CWD, CWD),
+ fulladjective(FromLang1,FromLang2),
+ atom_concat(A,FromLang2,B),
+ %%atom_concat(B,CWD,E),
+ atom_concat(B,F,Notification).
+
+%% Attempts to back-translate List1 given [original,previous back-translation] pairs
+%% List2, [previous back-translation,previous translation] pairs List2, the Orig to
+%% translate, the PastTries, FromLang, ToLang, file path E, shell command H, Notification
+%% with editing instructions and giving the translation Output.
+
+/**
+ctt-orig1-orig2-tmp-1.txt
+[['<>','I love you.'],[['','']],[['I dote on you.', '']]]
+
+backtranslateuntilcorrect([['I love you.','I dote on you.']],[['I dote on you.','Je me passionne pour toi.']],'I love you.',[],'en','fr','tmp/ctt-orig1-orig2-tmp-1.txt','/Applications/Grammarly.app/Contents/MacOS/Grammarly tmp/ctt-orig1-orig2-tmp-1.txt --line','<>',O).
+
+
+
+
+
+
+
+**/
+backtranslateuntilcorrect(List1,List2,Orig,PastTries,FromLang,ToLang,E,H,Notification1,Notification2,Output) :-
+%%trace,
+ (
+ phrase_from_file(string(List6),E),
+ (phrase(file1(Outputs11),List6),
+ removenotice(Outputs11,Outputs1a),
+ sort(Outputs1a,Outputs1)
+ %%not(Outputs1=Orig)
+%%writeln([outputs1,Outputs1])
+ %%not(Outputs1=[])
+ )->
+ (
+ ( %% remove extra br ***
+ (%% Use a correct translation from ctt-orig-tran.txt
+ tryoutputs0(Outputs1,List2,[],Output),not(Output=[]))->
+ true
+ ;
+
+ (%% Use a correct translation from a back-translation from ctt-orig1-orig2.txt
+ (tryoutputs(Outputs1,List1,[],Output1),tryoutputs0(Output1,List2,[],Output),not(Output=[]))->
+ true;
+ (
+ (trytranslations1(Outputs1,FromLang,ToLang,
+ false,Flag1,[],Outputs3,_,Output2)),
+ (
+ Flag1=true->
+ Output=Output2
+ ;
+ (trytranslations2(Orig,Outputs3,Output3,Flag2),
+ (
+ Flag2=true->
+ Output=Output3
+ ;
+ (openeditor(Notification1,Notification2,Orig,PastTries,Outputs1,Tries,E,H),
+ backtranslateuntilcorrect(List1,List2,Orig,Tries,
+ FromLang,ToLang,E,H,Notification1,Notification2,Output)
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ ;
+ (
+ openeditorwitherror(H),
+ Tries=PastTries,
+ backtranslateuntilcorrect(List1,List2,Orig,Tries,FromLang,
+ ToLang,E,H,Notification1,Notification2,Output)
+ )
+ ).
+
+ %% Reads file E giving Outputs1, the list of sentences to try back-translating
+ %% Outputs1 = [[o1,pbt1]]
+
+ %% Finds whether the sentences to try back-translating are in the list
+ %% [previous back-translation,previous translation]
+ %% ?- tryoutputs0 [[o1,pbt1],[o2,pbt2]],[[pbt2,pt2]],[],I .
+ %% I = [pbt2, pt2].
+
+ %% Finds whether the sentences to try back-translating are in the list
+ %% [original,previous back-translation]
+ /**
+ ?- tryoutputs [[o1,pbt1],[o2,pbt2]],[[o2,pbt2]],I .
+ I = [o2, pbt2].
+
+ ?- tryoutputs2 [o2, pbt2],[[pbt1,pt1],[pbt2,pt2],[pbt2,pt2]],I .
+ I = [pbt2, pt2].
+ **/
+
+ %% Finds the back-translations of the sentences to try
+ %% back-translating from one language to another, and returns
+ %% Flag=true if there is a successful back-translation Output2
+ %% See ***1
+/**
+*** 1
+?- trytranslations1([['I love you.-1','I love you.'],['I love you1-1','I love you1']],'en','fr',false,Flag,[],O,_,O2).
+Flag = true,
+O = [['I love you.', '', 'I love you tr.'], ['I love you1.', '', 'I love you1 tr.']],
+O2 = ['I love you1.', 'I love you1 tr.'].
+
+?- trytranslations1([['I love you.-1','I love you3.']],'en','fr',false,Flag,[],O,_,O2).
+Flag = false,
+O = [['I love you3.', 'I love you3 fake.', 'I love you3 tr.']].
+**/
+
+ %% Asks if a back-translation is correct
+ %% trytranslations2 'Original', 'I love you3.', 'I love you3 fake.', 'I love you3 tr.' ,[a,b,c]],O .
+
+removenotice(Outputs11,Outputs1) :-
+ %%writeln([outputs11,Outputs11]),
+ Contents=[_,"Insert an alternative that might translate better here."],
+ /**((((Contents=[_,"Insert an alternative that might translate better here."];
+ Contents=[_,"Insert a correct translation here",_]);
+ Contents=[_,"Insert a correct translation here"]) ;
+ Contents=_Empty),
+ member(Contents,Outputs11),**/
+ delete(Outputs11,Contents,Outputs1), !.
+%%* delete these one by one
+
+openeditor(Notification1,Notification2,Orig,PastTries,Outputs12,Tries,E,H) :-
+ writeln(Notification1),
+
+ %%removenotice(Outputs11,Outputs12),
+
+ wrap(Outputs12,[],Outputs1),
+ %%writeln([pastTries,PastTries]), %%%
+ append(PastTries,Outputs1,Tries), %% Output, Outputs1 x *** REMOVED [] from O1
+ %%(phrase_from_file(string(FileContents1),E)->true;writeln("Error opening tmp file.")),
+
+ append([[["<<>>"],[""]]],Tries,Tries2),
+%%writeln([append([[["<<>>"],[""]]],tries,tries2),append([[["<<>>"],[""]]],Tries,Tries2)]),
+ FileContents1=[[[Notification1],[Orig]],Tries2,[[[Notification2],["Insert an alternative that might translate better here."]]]],
+
+ updatefile2(FileContents1,E),
+ writeln("Opening editor."),
+ (bash_command(H,_)->
+ true;
+ (writeln("Failed opening Editor."),abort)
+ ). %% open editor
+
+openeditorwitherror(H) :-
+ write("*** Your previous entry was not in the correct format. "),
+ writeln("Please correct this. ***"),
+ writeln("Opening editor."),
+ (
+ (
+ bash_command(H,_)->
+ true
+ ;
+ (
+ writeln("Failed opening Editor."),abort
+ )
+ )
+ ).
+
+wrap([],List,List) :-!.
+wrap(List1,List2,List3) :-
+ List1=[[Item1,Item2]|List4],
+ append(List2,[[[Item1],[Item2]]],List5),
+ wrap(List4,List5,List3), !.
+
+wrap2([],List,List) :-!.
+wrap2(List1,List2,List3) :-
+ List1=[[Item1,Item2,Item3,Item4]|List4],
+ append(List2,[[[Item1],[Item2],[[Item3],[Item4]]]],List5),
+ wrap2(List4,List5,List3), !.
+
+tryoutputs0([],_List3,Output,Output) :- !.
+tryoutputs0([[Original,BT]|Outputs],List2,List3,List4) :-
+ (
+ (
+ (BT=""->
+ (member([Original,Translation],List2),
+ append(List3,[[Original,Translation]],List5))
+ ->
+ true
+ ;
+ ( member([BT,Translation],List2))->
+ append(List3,[[BT,Translation]],List5)
+ )
+ )
+ ;
+ List5=List3
+ ),
+ tryoutputs0(Outputs,List3,List5,List4)
+ ,!.
+%%tryoutputs0([_Output|Outputs],List,Answer) :-
+%% tryoutputs0(Outputs,List,Answer),!.
+
+tryoutputs([],_List3,Output,Output) :- !.
+tryoutputs([Item|Outputs],List2,List3,List4) :-
+ tryoutputsa(Item,List2,List3,List5),
+ tryoutputs(Outputs,List2,List5,List4).
+
+tryoutputsa(_,[],List,List) :- !.
+tryoutputsa([Original,BT],[List21|List22],List3,List4) :-
+ [Original,Translation]=List21,
+ (BT=""->
+ append(List3,[[Original,Translation]],List5)
+ ;
+ append(List3,[[Original,BT]],List5))
+ ,
+ tryoutputsa([Original,BT],List22,List5,List4)
+ ,!.
+tryoutputsa(Item,[_|List22],List3,List4) :-
+ tryoutputsa(Item,List22,List3,List4), !.
+
+
+/**
+tryoutputs([Item1],List2,Item2) :-
+ Item1=[Original,BT1],
+ ((BT1="",member([Original,BT2],List2),Item2=[Original,BT2]);
+ (member(Item1,List2),Item2=Item1))
+ %%,Item1=[Item2,_Output]
+ ,!.
+tryoutputs([],_List3,_Output) :- fail.
+tryoutputs([_Output|Outputs],List,Answer) :-
+ tryoutputs(Outputs,List,Answer),!.
+**/
+
+/**tryoutputs2(Item1,List2,Item2) :-
+ Item1=[Original,PreviousBT1],
+ (PreviousBT1=""->PreviousBT2=Original;PreviousBT2=PreviousBT1),
+ member(Item2,List2),
+ Item2=[PreviousBT2,_Translation],
+ !.
+**/
+/** ?- tryoutputs1([original,bt],[[original,bt],[original1,bt1]],L).
+L = [[original, bt], [original1, bt1]]. **/
+tryoutputs1(Output1,Output2,Output2) :-
+ member(Output1,Output2),!.
+tryoutputs1(Output1,Output2,Output3) :-
+ not(member(Output1,Output2)),
+ (Output2=""->
+ Output3=Output2;
+ append(Output2,[Output1],Output3)),
+ !.
+
+/** ?- tryoutputs11([bt,t],[[bt1,t1]],L).
+L = [[bt1, t1], [bt, t]]. **/
+tryoutputs11(Output1,Output2,Output2) :-
+ member(Output1,Output2),!.
+tryoutputs11(Output1,Output2,Output3) :-
+ not(member(Output1,Output2)),append(Output2,[Output1],Output3),!.
+
+trytranslations1([],_FromLang,_ToLang,Flag,Flag,List,List,String,String) :- !.
+/**trytranslations1([[_,String]],FromLang,ToLang,Flag1,Flag2,List1,List3,String1,String2) :-
+ translate1(String,FromLang,ToLang,Output2),
+ String4=[String,Output2],
+ translate1(Output2,ToLang,FromLang,Stringa),
+ (String=Stringa->
+ (Flag2=true,String2=String4,append(List1,[[String,"",Output2]],List3));
+ (Flag1=Flag2,String2=String1,append(List1,[[String,Stringa,Output2]],List3))),
+ !.**/
+trytranslations1([[Original,PreviousBT1]|Outputs],FromLang,ToLang,Flag1,Flag2,List1,List2,String1,String2) :-
+ (PreviousBT1=""->String=Original;String=PreviousBT1),
+ translate(String,FromLang,ToLang,Output2),
+ String4=[String,Output2],
+ translate(Output2,ToLang,FromLang,Stringa),
+ (String=Stringa->
+ (Flag3=true,String3=String4,append(List1,[[String,"",Output2]],List3));
+ (Flag3=Flag1,String3=String1),append(List1,[[String,Stringa,Output2]],List3)),
+ trytranslations1(Outputs,FromLang,ToLang,Flag3,Flag2,List3,List2,String3,String2),!.
+trytranslations1([_|Outputs],FromLang,ToLang,Flag1,Flag2,List1,List2,String1,String2) :-
+ trytranslations1(Outputs,FromLang,ToLang,Flag1,Flag2,List1,List2,String1,String2),!.
+
+translate1("I love you.","en","fr","I love you tr.").
+translate1("I love you1.","en","fr","I love you1 tr.").
+translate1("I love you2.","en","fr","I love you2 tr.").
+translate1("I love you tr.","fr","en","I love you.").
+translate1("I love you1 tr.","fr","en","I love you1.").
+translate1("I love you1 tr.","fr","en","I love you1.").
+translate1("I dote on you1.","en","fr","I dote on you1 tr.").
+translate1("I dote on you1 tr.","fr","en","I dote on you1 different.").
+
+translate1("Je t|aime.","en","fr","I love you.").
+translate1("I love you.","fr","en","Je t|aime.").
+translate1("I dote on you.","en","fr","Je me passionne pour toi.").
+translate1("Je me passionne pour toi.","fr","en","I dote on you.").
+
+translate1("I love you3.","en","fr","I love you3 tr.").
+translate1("I love you3 tr.","fr","en","I love you3 fake.").
+
+trytranslations2(Orig,Outputs1,Output,Flag2) :-
+ %%removenotice(Outputs11,Outputs1),
+ writeln(""),
+ writeln("Which of the following sentences:\n- are grammatical\n- have the same meaning as the other in the pair, and\n- have the same meaning as the original sentence?\n"),
+ write('Original:'),write("\t"),writeln(Orig),writeln(''),
+ listoutputs(1,N,Outputs1),
+ write("Enter 1-"),write(N),writeln(", or 0 for none:"),
+ repeat2(Outputs1,Output,Flag1),
+ conjunction(Flag1,true,Flag2).
+repeat2(Outputs1,Output,Flag) :-
+ read_string(user_input, "\n", "\r", _End2, Input),
+ number_string(N1,Input),
+ (N1=0->Flag=false;
+ (
+ Input2 is N1-1,length(List,Input2),
+ append(List,[[_Original,Backtranslation,Translation]|_],Outputs1),
+ Output=[Backtranslation,Translation]
+ )->
+ true;
+ repeat2(Outputs1,Output,Flag)
+ ).
+listoutputs(N1,N2,[]) :-
+ N2 is N1-1, !.
+listoutputs(N1,N3,[[Original,Backtranslation,_Translation]|Outputs1]) :-
+ write(N1),write("\t\t"),write(Original),write("\n\t\t"),writeln(Backtranslation),write("\n"),
+ N2 is N1+1,
+ listoutputs(N2,N3,Outputs1).
+
+conjunction(true,true,true) :- !.
+conjunction(_,_,false) :- !.
+
+%% list Trans
+%% orig to choose from v
+
+/**
+- 0. Enter from, to languages
+
+ctt-input.txt
+[[en,fr],['How do you do?...']]
+
+ctt-orig1-orig2.txt
+[[[en,fr],['How do you do?','How are you?']]...] 2nd item is correct back-translation with cult cust
+
+1. If back-translation of sentence and ctt-orig-tran.txt version exists, or a link to it exists or is the same, adds to translation if nec (and lang tag x to) ctt-orig-tran.txt
+ 2. Else,
+ - asks if the sentences have the same meaning with return/n options
+ If yes, goto 1
+ If no, opens Grammarly editor to add possible from2 versions to retry
+
+ctt-orig1-orig2-tmp-N.txt (keep all finished tmps, open in folder by itself)
+[['<<>>','How do you do?'],[[[BT:'How are you?',bt]...],[['How are you - entered?']...]]]
+f2t only has f1 sentence and allows changes in grammarly - sentence (one of entered ones) with an acceptable back-translation will be added to f1f2
+
+ctt-orig-tran.txt
+[[[en,fr],['How are you?','Comment allez-vous?']]...]
+
+ctt-output.txt
+[[en,fr],[['How are you?','Comment allez-vous?']...]] - complete text translated
+
+Note:
+- Can split sentences into logic, A verb B with C x do manually
+ctt-from2tmp.txt (delete just before end)
+([[['How are you?'] x v working translation exists] x,[['How do you do?' (original first),...]]
+- assumes Sentences have been checked with Grammarly before using the program
+- lists from1 or from2 distance 1 x n away from from1 x all with same meaning index (eg 1)
+- mistaken mergers will require sentences copied from screen, manually diverged later x undo feature - makes backups at each point with command to undo) x
+() to (translation), from2 (back-translation) outputted
+back-translation ready at this stage
+**/
+
+%% star 2
+
+%%ctt-orig1-orig2.txt
+%%[[[en,fr],['How do you do?','How are you?']]...] 2nd item is correct back-translation with cult cust
+
+%%ctt-orig-tran.txt
+%%[[[en,fr],['How are you?','Comment allez-vous?']]...]
+
+%% star 3
+
+%%[['<<>>','How do you do?'],[[[BT:'How are you?',bt]...],['How are you - entered?'...]]]
+
+%% * enter default tmp contents v
+
+
+%%ctt-orig1-orig2.txt
+%%[[[en,fr],['How do you do?','How are you?']]...] 2nd item is correct back-translation with cult cust
+%%o1 o2***
+%%ctt-orig-tran.txt
+%%[[[en,fr],['How are you?','Comment allez-vous?']]...]
+%%o2 l***
+
+
+%% List=[o1 o2]1, List4=[o2 l]1,String4=[o2* l]2 where Word3 is o12
+
+concat_list(A1,B):-
+ A1=[A|List],
+ concat_list(A,List,B),!.
+
+concat_list(A,[],A):-!.
+concat_list(A,List,B) :-
+ List=[Item|Items],
+ string_concat(A,Item,C),
+ concat_list(C,Items,B).
diff --git a/culturaltranslationtool/vintage cultural translation tool/edit.pl b/culturaltranslationtool/vintage cultural translation tool/edit.pl
new file mode 100644
index 0000000000000000000000000000000000000000..3fa0db58b212d93ea0f125b278040d12e406918e
--- /dev/null
+++ b/culturaltranslationtool/vintage cultural translation tool/edit.pl
@@ -0,0 +1,95 @@
+%% Multiline file1.txt will contain list of sentences which were attemptedly translated
+%% Instructions at top of file1.txt to save and quit
+%% with path to load and save in
+
+:- include(library(edit)).
+:- multifile
+ edit:edit_command/2.
+:- multifile prolog_edit:load/0.
+
+%%prolog_edit:load :-
+%% ensure_loaded(library(swi_edit)).
+
+run :- %%,
+ %%prolog_edit:locate("/Applications/MacVim.app/Contents/MacOS/macvim-askpass",F,_L),
+ %%arg(1,F,A),
+ %% prolog_edit:locate("file1.txt",_F2,L2),
+ %%set_prolog_flag(editor,'gvim --line2'),
+ %%prolog_edit:edit_command(gvim, '%e --line%d'),
+ %%atom_concat(A, ' file1.txt --line',B),
+ %%atom_concat(B, 2 ,C),
+ %%shell(C),
+ %%prolog_edit:edit_source(L),
+ edit("file1.txt"),
+writeln(here).
+
+rungrammarly :- %%,
+ prolog_edit:locate("/Applications/Grammarly.app/Contents/MacOS/Grammarly",F,_L),
+ arg(1,F,A),
+ %%prolog_edit:locate("file1.txt",_F2,L2),
+ %%set_prolog_flag(editor,'gvim --line2'),
+ %%prolog_edit:edit_command(gvim, '%e --line%d'),
+ atom_concat(A, ' file1.txt --line',C),
+ %%atom_concat(B, 2 ,C),
+ shell(C),
+ %%prolog_edit:edit_source(L),
+ %%edit("file1.txt"),
+a(a),
+writeln(here),!.
+
+a(a).
+b:-%%prolog_edit:
+rungrammarly.
+
+
+open_grammar_editor(Word,FromLang,ToLang,List,List4,String4,N,COO2) :-
+ %%downcase_atom(Word, Word2), atom_string(Word2,Word),
+
+ prolog_edit:locate("/Applications/Grammarly.app/Contents/MacOS/Grammarly",F,_L),
+ %% prolog_edit:locate("/usr/bin/vi",F,_L),
+ arg(1,F,A),
+ atom_concat(A, ' ',C),
+
+ atom_concat('tmp/ctt-orig1-orig2-tmp-',N,D),
+ atom_concat(D, '.txt',E),
+
+ atom_concat(C,E,G),
+ atom_concat(G, ' --line',H),
+
+ %%fulladjective(FromLang,FromLang1),
+
+ writenotification1('<<>>',Notification1),
+ writenotification2('Insert "',FromLang,'" sentence with meaning of the first sentence here.',Notification2),
+ %%writenotification('<<>>',Notification2),
+
+ rmoldtmpfile(E),
+ wrap(COO2,[],COO5),
+ append([[[Word],[""]]],COO5,COO4),
+ %%sort(COO4,COO5),
+ append([[["<<>>"],[""]]],COO4,COO3),
+ append(COO4,[[[Notification2],["Insert an alternative that might translate better here."]]],Editable1),
+ %%[Editable2]=Editable1,
+FileContents1=[[[Notification1],[Word]],COO3,Editable1],
+ updatefile2(FileContents1,E),
+
+%% star 3
+ backtranslateuntilcorrect(List,List4,Word,[],FromLang,ToLang,E,H,Notification1,Notification2,String4), %% check against List
+
+ atom_concat('mv ',E,G1),
+ atom_concat(G1,' ',G2),
+ atom_concat(G2,'files/ctt-orig1-orig2-tmp-',G3),
+ atom_concat(G3,N,G4),
+ atom_concat(G4, '.txt',G5),
+
+ (bash_command(G5,_)->
+ true;
+ (writeln("Failed moving tmp file to ctt folder."),abort)
+ ). %% open editor
+
+rmoldtmpfile(E) :-
+ atom_concat('rm -f ',E,G1),
+
+ (bash_command(G1,_)->
+ true;
+ (writeln("Failed removing tmp file."),abort)
+ ). %% open editor
diff --git a/culturaltranslationtool/vintage cultural translation tool/files/ctt-input.txt b/culturaltranslationtool/vintage cultural translation tool/files/ctt-input.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ac950c55e1ffb69da197af046467845bc7482d4e
--- /dev/null
+++ b/culturaltranslationtool/vintage cultural translation tool/files/ctt-input.txt
@@ -0,0 +1 @@
+[[en],[gd],[The second variable is equal to the first variable plus one.]]
\ No newline at end of file
diff --git a/culturaltranslationtool/vintage cultural translation tool/files/ctt-orig-tran.txt b/culturaltranslationtool/vintage cultural translation tool/files/ctt-orig-tran.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3f74f3a5c1b062cb739c242f45970978b2287d31
--- /dev/null
+++ b/culturaltranslationtool/vintage cultural translation tool/files/ctt-orig-tran.txt
@@ -0,0 +1 @@
+[[[en],[de],[[I adore you.],[Ich verehre dich.]]],[[en],[de],[[The third variable is equal to the second variable plus one.],[Die dritte Variable ist gleich der zweiten Variablen plus eins.]]],[[en],[es],[[I adore you.],[Te adoro.]]],[[en],[es],[[The second variable is equal to the first variable with one added.],[La segunda variable es igual a la primera variable con una añadida.]]],[[en],[es],[[The third variable is equal to the second variable plus one.],[La tercera variable es igual a la segunda variable más uno.]]],[[en],[fr],[[I love you.],[Je vous adore.]]],[[en],[fr],[[The second variable is equal to the first variable plus one.],[La deuxième variable est égale à la première variable plus un.]]],[[en],[gd],[[The second variable equals the first variable and the number one.],[Tha an dàrna caochladair co-ionann ris a ’chiad chaochlaideach agus an àireamh a h-aon.]]]]
\ No newline at end of file
diff --git a/culturaltranslationtool/vintage cultural translation tool/files/ctt-orig1-orig2.txt b/culturaltranslationtool/vintage cultural translation tool/files/ctt-orig1-orig2.txt
new file mode 100644
index 0000000000000000000000000000000000000000..1557cb9a3dcb30657a78036bfa9107b9df2881d8
--- /dev/null
+++ b/culturaltranslationtool/vintage cultural translation tool/files/ctt-orig1-orig2.txt
@@ -0,0 +1 @@
+[[[en],[de],[[I adore you.],[]]],[[en],[de],[[The third variable is equal to the second variable with one added.],[The third variable is equal to the second variable plus one.]]],[[en],[es],[[I adore you.],[]]],[[en],[es],[[The second variable is equal to the first variable with one added.],[]]],[[en],[es],[[The third variable is equal to the second variable with one added.],[The third variable is equal to the second variable plus one.]]],[[en],[fr],[[I adore you.],[I love you.]]],[[en],[fr],[[The second variable is equal to the first variable with one added.],[The second variable is equal to the first variable plus one.]]],[[en],[gd],[[The second variable is equal to the first variable plus one.],[The second variable equals the first variable and the number one.]]],[[en],[ja],[[I adore you.],[]]],[[en],[ja],[[The third variable is equal to the second variable with one added.],[The third variable is equal to the second variable plus one.]]]]
\ No newline at end of file
diff --git a/culturaltranslationtool/vintage cultural translation tool/files/ctt-output.txt b/culturaltranslationtool/vintage cultural translation tool/files/ctt-output.txt
new file mode 100644
index 0000000000000000000000000000000000000000..72c09a8a03848b3111e4cf6abbbe4e58f890ddb5
--- /dev/null
+++ b/culturaltranslationtool/vintage cultural translation tool/files/ctt-output.txt
@@ -0,0 +1 @@
+Tha an dàrna caochladair co-ionann ris a ’chiad chaochlaideach agus an àireamh a h-aon.
\ No newline at end of file
diff --git a/culturaltranslationtool/vintage cultural translation tool/tmp/stub.txt b/culturaltranslationtool/vintage cultural translation tool/tmp/stub.txt
new file mode 100644
index 0000000000000000000000000000000000000000..8f0f39a40ac50bee5d3fe06ecc097fda163ee113
--- /dev/null
+++ b/culturaltranslationtool/vintage cultural translation tool/tmp/stub.txt
@@ -0,0 +1 @@
+stub - needs tmp folder
\ No newline at end of file
diff --git a/culturaltranslationtool/vintage cultural translation tool/walkthrough.txt b/culturaltranslationtool/vintage cultural translation tool/walkthrough.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c1ef29d8962d54b9dcaf91bea58085123249e6d9
--- /dev/null
+++ b/culturaltranslationtool/vintage cultural translation tool/walkthrough.txt
@@ -0,0 +1,41 @@
+?- ctt.
+Number of sentences to translate in files/ctt-input.txt: 1
+Number of unique sentences to translate in files/ctt-input.txt: 1
+Number of back-translation pairs in lang1->lang2: 0
+Number of translation pairs in lang1->lang2: 0
+Number of back-translations remaining to define: 1
+Number of undefined back-translations: 0
+Number of orphaned translations: 0
+
+Which of the following sentences:
+- are grammatical
+- have the same meaning as the other in the pair, and
+- have the same meaning as the original sentence?
+
+Original: The second variable is equal to the first variable plus one.
+
+1 The second variable is equal to the first variable plus one.
+ The second variable equals the first variable and one variable.
+
+Enter 1-1, or 0 for none:
+|: 0
+<<