What are the grammatical rules for writing dialogue?

In that case you will definitely want to BUY MY BOOK for inspiration:

Circus Detectives! Yeah!