ScratchData LogoScratchData
Back to HiThereOFFICIAL's profile

Bocab AI

HIHiThereOFFICIAL•Created December 17, 2023
Bocab AI
1
0
15 views
View on Scratch

Instructions

Bocab AI is an “artificial intelligence” program I made because I’ll do anything except study for exams! Bocab takes sentences you feed it and roughly maps out how to use the given grammar. You can feed it any language, and it’ll learn the same. INSTRUCTIONS: Press the right side of your screen to feed your Bocab a sentence. Make sure that it’s one sentence, if you have two punctuation marks in your input, it will break! Don’t do that, thank you. Bocab will use these sentences to learn and evolve. Make sure your inputs are consistent, so that the dataset doesn’t have copies like “I’m” and “Im”. Capitalization doesn’t matter. Once you’re satisfied, you can press the left side of the screen and let Bocab use it’s intelligence to spit out a sentence of its own! If you want to save your dataset, remix the project and it should work. Refresh the page to start from a clear dataset again. PROGRAM EXPLAINED: When you feed Bocab a sentence, it splits it into each word. These words will be stored in Bocab’s brain for referencing. Each word in the sentence becomes a “parent”. Parents can have “children” words. Let’s have the example sentence: “I’m happy”. The word “I’m” will become a parent, and since “happy.” came after it, it will become the child of “I’m”. When Bocab creates a new sentence, it uses this parent child system to randomly make a sentence that rpughly makes sense. With the same example, Bocab now knows that “happy.” comes after the word “I’m”. Do this with a large enough data set and it can form a bunch of sentences. A parent can also have multiple children, and Bocab will just pick one randomly. Once Bocab picks a child, it’ll look at that word’s children, and that word’s children, and so on until it hits the end of a sentence. That’s it!

Project Details

Project ID941379516
CreatedDecember 17, 2023
Last ModifiedDecember 17, 2023
SharedDecember 17, 2023
Visibilityvisible
CommentsAllowed