I need a simple PHP English sentence generator designed. I just want the program to function correctly on the back and front end, and for the site to be secure...I don't care how it looks right now, so there is no design required.
You can build this around a CMS like Joomla if you'd like. Please read the detailed job description for how the program's logic will work.
## Deliverables
I need a simple PHP English sentence generator designed. The program's logic will work like this.
There will be word groups consisting of
- singular subjects
ex: Barack Obama, democracy, electronic voting
- plural subjects
ex: aliens, rabbits, cigarettes
- infinitive verbs
ex: revolutionize, destroy, create
- adjectives
ex: unbelievable, surprising, ridiculous
And then you'll have sentence structures written like this, where anything in brackets is a word group:
- The top 5 most [adjective] things about [plural subjects]
This creates the sentence:
- The top 5 most ridiculous things about aliens
- The top 5 most surprising things about rabits
- The top 5 most unbelievable things about cigarettes
- Etc.
REQUIREMENTS
I need you to design me a simple PHP program that will work on a website. I'm guessing this will require a
database, which will by MYSQL:
Back End:
1) The back end allows me to add/edit/delete word groups
2) The back end allows me to add/edit/delete words within word groups
3) The back end allows me to add/edit/delete sentence structures, that I can input with brackets around the word groups like in the above example.
Front End:
1) The user goes to the website and on the homepage pushes a button to generate sentences.
2) Each time the user pushes the button, the page refreshes and loads another sentence (so that it's a unique pageview each time they push the refresh button). Sentence generation should be completely random, with a random combination of sentence structure and words from its word groups.