The film , a modernization of Shakespeare 's The Taming of the Shrew , is titled after a poem written by the film 's female lead ( played by Stiles ) to describe her bittersweet romance with the male lead ( played by Ledger ) .
The movie is a modern version of Shakespeare 's play The Taming of the Shrew .