Title Gen is an API for generating random song, book, or startup titles. The following GET endpoint allows queries for title type and amount of titles to be generated:
titlegen.us-east-1.elasticbeanstalk.com/api/v1/titlegen
Param | Required | Description |
---|---|---|
no | false | number of titles generated. An empty param will return one title. A max of 15 titles can be queried at a time. |
type | true | type of generated title: song , book , or startup . |
The format for the returned JSON response is as follows:
{
"error": Boolean,
"data": Array of Generated Titles,
"type": String,
"message": String
}
The password restricted POST route uses the Stanford CoreNLP package to process language and separate words by pos tags. Once sentences are deconstructed and pos tags assigned, words are inserted into a MySQL database by type (noun, verb, etc.). The GET route queries the database and selects random words by type and orders them in predefined pos structures.
Github profile: dgtlctzn
If you have any questions about the project please contact josephperry720@gmail.com
This project is covered under the GNU license