Skip to content

generating random sentences from dictionary of ~93000 words

Notifications You must be signed in to change notification settings

JanKesek/CPP-sentence-generator

Repository files navigation

C-sentence-generator-

I used free Princeton University word-base https://wordnet.princeton.edu/download. Various unix utilities (awk,sed, egrep) are used to parsing and extracting text from files. Words are grouped into pairs

<part-of-speach>: list

where list may consists of single words or <part-of-speach> (where part-of-speach is: verb,noun,noun.location,adjective) At the end of text file there is simple pair that looks like:

<sentence> : something

It represents structure of sentence. Feel free to experiment with other types structures of sentences. After cloning project compile with:

g++ -o go sentencegenerator.cpp

Usage:

Shoutout to 'Accelerated C++" which was inspiration

About

generating random sentences from dictionary of ~93000 words

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published