A writer of plays is a ...
Until a minute ago, I thought that the writer of a play was a playwrite. But as Daily Writing Tips explains, the correct spelling is playwright. The suffix comes not from the verb write, but from the noun wright, meaning one who constructs or repairs something, such as a shipwright or wheelwright.
Comments