byronwall / kids-reading

Full stack app to teach phonics to a 1st grader
https://fawnix.rocks
0 stars 0 forks source link

Add machinery to create sentences automatically #4

Closed byronwall closed 1 year ago

byronwall commented 1 year ago

This should make use of the words table and Open AI integration

byronwall commented 1 year ago

Logs from a ChatGPT session to encode sentence structures:

https://chat.openai.com/c/de1cefac-db79-4589-bab9-7abc4b3ffa8b

What are common sentence structures for kids learning to read? Give 20 structures ordered by reading level. Respond with the parts of speech instead of actual words. 

ChatGPT
Certainly! Below is a list of common sentence structures, ordered by reading level. These structures mainly involve parts of speech like subject (S), verb (V), object (O), and adjectives (Adj).

Early Reading Levels
S + V

Example: "Cat runs."
S + V + O

Example: "Dog chases ball."
S + Adj

Example: "Apple is red."
S + V + Adj

Example: "Sky turns dark."
S + V + Adverb (Adv)

Example: "Bird flies high."
S + V + O + Adv

Example: "Car moves fast."
S + V + Prepositional Phrase (PP)

Example: "Fish swim in water."
S + V + O + O

Example: "Mom gives Tim an apple."
Intermediate Reading Levels
S + V + O + Adj

Example: "Teacher writes neat words."
S + V + O + Conjunctive Adverb (ConjAdv) + O

Example: "She eats pizza; however, she likes salad."
S + Aux Verb (Aux) + V

Example: "He will run."
S + V + O + Relative Clause (RelCl)

Example: "The book that you read is interesting."
Advanced Reading Levels
S + V + Infinitive (Inf)

Example: "I like to read."
S + V + O + Inf

Example: "She wants him to stay."
S + V + Gerund (Ger)

Example: "Kids enjoy reading."
S + V + O + Ger

Example: "He keeps telling jokes."
S + Aux + V + O + Adv

Example: "They can play outside now."
S + V + Negation (Neg) + O

Example: "He does not like spinach."
Complex Sentence (S + V + Conjunction (Conj) + S + V)

Example: "While Tim plays, Sally reads."
Compound-Complex Sentence ((S + V) + Conj + (S + V) + Conj + (S + V))

Example: "If it rains, we will stay inside, but I hope it doesn’t."
This list starts from the most basic sentence structures and moves to more complex ones as a child's reading level advances.

User
Continue the list with more structures at all reading levels 
ChatGPT
Certainly! Here's an extension of the list, including more structures across different reading levels.

Early Reading Levels
S + V + O + Adj + O
Example: "Dad buys new shoes."
S + V + Adverbial Phrase (AdvP)
Example: "She sings with joy."
S + Aux + V + O
Example: "They are eating cake."
S + V + Conj + O
Example: "I eat pizza and pasta."
Intermediate Reading Levels
S + Aux + V + Adv
Example: "She can dance well."
S + V + O + PP + Adv
Example: "He places the book on the table carefully."
S + V + O + Adv + Adj
Example: "The movie plays late tonight."
S + V + O + Modal Verb (Mod) + V
Example: "You should try to learn."
S + Mod + V + O
Example: "We might visit grandma."
S + V + Conjunction (Conj) + S + V + O
Example: "He reads and his sister draws a picture."
Advanced Reading Levels
S + Aux + V + O + Relative Clause (RelCl)
Example: "The girl who is standing there will speak."
S + V + O + Inf + O
Example: "I told him to give her a call."
S + V + O + Adj + PP
Example: "He made her happy with a gift."
S + V + O + Adjective Clause (AdjCl)
Example: "The cake, which is chocolate, is delicious."
Passive Voice (O + V + by + S)
Example: "The letter was written by Mary."
S + V + O + PP + Relative Clause (RelCl)
Example: "The man in the hat who is smiling is my uncle."
S + V + O + Adv + Mod
Example: "I will go there soon, probably."
Conditional Sentences (If + S + V, S + Mod + V)
Example: "If it rains, you should stay home."
S + V + O + Adverbial Clause (AdvCl)
Example: "I finished my homework before she came."
Complex Sentences with Multiple Clauses
Example: "Although it was raining, he walked to the store, but he forgot his umbrella."
These additional structures help to flesh out the depth and variety of sentence constructs across varying reading levels.
byronwall commented 1 year ago

Possible workflow:

The main pivot here is avoiding too many constraints on GPT following a word list. Presumably all words could be used and the application can do some filtering.

byronwall commented 1 year ago

This is mostly working:

What's missing:

"Proof" of updates hitting the main database

image
byronwall commented 1 year ago

Sentences and words are mostly in place, continued work on #26 .

image