Wise Words From Theaetetus

"Very true, Socrates." - Theaetetus

What is this?

Wise Words From Theaetetus is a web service for all your Theaetetus quoting needs.

I thought it would be funny to have a Theaetetus quote generater because most of the time Theaetetus would say something like "Very true, Socrates" after Socrates talked for 5 minute about how he's like a midwife for your brain. I don't think it turned out to be as funny as I thought it would be but hopefully it would be useful for someone.

How do I use this?

All query parameters are optional. If no parameter is set, the request would return all lines in the Theaetetus

Query 1: Retrieve lines from a certain speaker

Request Format: theaetetus.php?speaker={name}

Request Type: GET

Returned Data Format: JSON

Description: This request takes any speaker in the Theaetetus as a parameter and returns all lines spoken by the speaker.

Query 2: Get lines that contain a certain word

Request Format: theaetetus.php?contain={word}

Request Type: GET

Returned Data Format: JSON

Description: This request takes a word as a parameter and returns all lines under that contains the word.

Query 3: Retrieve lines under than a certain character count

Request Format: theaetetus.php?char_limit={number}

Request Type: GET

Returned Data Format: JSON

Description: This request takes a character count as a parameter and returns all lines under than the character count.

Query 4: Retrieve a random line

Request Format: theaetetus.php?mode=random_quote

Request Type: GET

Returned Data Format: plain text

Description: This request returns a random line from all lines that matches other query parameters in a formatted string ("{dialogue}" - {speaker})

Try it here!