Hi, I made a word generator that got a random word from a list of words, and that seemed to work ok.
Then i updated my word list and started to generate sentences, but these sentences aren't in a line like a real sentence,
but are in a stack of four words placed below 4 percentages.
Then I use the percentages to guess which of the four words best matches the intention the sentence was trying to convey.
So a lot of guessing.
Obviously the stacked four words aren't going to read like a read sentence, they are like slang in a sense in that they aren't a formal english sentence.
i did this for my chat-bot project which I left and thought how hard it would be for somebody else to do this so I went and did it and am now giving it to you or whomever for their chat-bot project.
So enough of the introduction I will now show you an example of the program running so you can read the output yourself and see if it makes and sense.
The input sentence is a quote snippet from tomshardware article.Code:Input a sentence. Press Enter when done. German authorities apparently use silent SMS to create a movement profile of sus pects or locate their position. SMS pings are received by a cellphone, but the u ser will not be notified of it. However, the cellphone carrier will record the d ata in a log, which can be requested by the government. While the data do not pr ovide information about the phone, they do deliver location data via the cell to wers that were used when the silent SMS was sent. __________________ __________________ An input sentence is converted to lower case: __________________ german authorities apparently use silent sms to create a movement profile of sus pects or locate their position. __________________ The secret message in the sentence: __________________ german authorities apparently use silent sms to create movement profile suspects locate their position The last word is: position __________________ Analysis part one: __________________ letter vowel letter 0.571429 letter vowel vowel 0.214286 vowel vowel letter 0.071429 vowel vowel vowel 0.142857 Analysis part two: __________________ Using the last word of the sentence: position, these are four possible word associations: Algren N catenated t beef NitV Abyssinian banana h The result using Analysis part ones data is: catenated t _______________________________________________________________ _______________________________________________________________ __________________ __________________ An input sentence is converted to lower case: __________________ sms pings are received by a cellphone, but the user will not be notified of it. __________________ The secret message in the sentence: __________________ but the not notified it The last word is: it __________________ Analysis part one: __________________ letter vowel letter 0.400000 letter vowel vowel 0.400000 vowel vowel letter 0.200000 vowel vowel vowel 0.000000 Analysis part two: __________________ Using the last word of the sentence: it, these are four possible word associations: Anteros N ambush NVt bivouacked V Abyssinian banana h The result using Analysis part ones data is: ambush NVt _______________________________________________________________ _______________________________________________________________ __________________ __________________ An input sentence is converted to lower case: __________________ however, the cellphone carrier will record the data in a log, which can be requ ested by the government. __________________ The secret message in the sentence: __________________ however the cellphone carrier record the data in log can requested the governmen t The last word is: government __________________ Analysis part one: __________________ letter vowel letter 0.538462 letter vowel vowel 0.384615 vowel vowel letter 0.076923 vowel vowel vowel 0.000000 Analysis part two: __________________ Using the last word of the sentence: government, these are four possible word associations: Ashleigh N abnormalizing t appraise tV Abney level h The result using Analysis part ones data is: abnormalizing t _______________________________________________________________ _______________________________________________________________ __________________ __________________ An input sentence is converted to lower case: __________________ while the data do not provide information about the phone, they do deliver loca tion data via the cell towers that were used when the silent sms was sent. __________________ The secret message in the sentence: __________________ the data not information about the phone they location data the towers that used when the silent sms was sent The last word is: sent __________________ Analysis part one: __________________ letter vowel letter 0.450000 letter vowel vowel 0.400000 vowel vowel letter 0.100000 vowel vowel vowel 0.050000 Analysis part two: __________________ Using the last word of the sentence: sent, these are four possible word associations: Algren N abnormalising t automobile NV Abney level h The result using Analysis part ones data is: abnormalising t _______________________________________________________________ _______________________________________________________________ Press any key to continue . . .
here is the link to the source and program, the file the program reads to get words was from 'kevins word list' and I used the 'Part Of Speech Database' and edited the file so the program could read the last letter which shows what type of grammar it is.
Thought generator.zip
Here is the legend to decode the letters at the end of the word:
I'll upload the source and the file it reads from is too big to upload so you have to get it from the attached link.Code:N Noun P Plural h Noun Phrase V Verb (usu participle) t Verb (transitive) i Verb (intransitive) A Adjective v Adverb C Conjunction P Preposition ! Interjection r Pronoun D Definite Article I Indefinite Article o Nominative
corgi.zip.txt
Now the result, the words below the percenteges, isn’t fluent english and is barely a sentence, it’s a pretend sentence, but it shows grammar in the words that are generated.
I suppose if somebody was industrious they could scale it up to sophistication.
So have a look at the source, dl the text file and try out the program.
It's a toy to me, but what you'll think about it I don't know.