In the book, Charlie is an angelic boy who lives with his parents and grandparents in a small hovel. When Willy Wonka, a reclusive businessman, announces a competition to allow five lucky children into his chocolate factory, Charlie wins one of the places against high odds.

The other four children turn out to be deeply unpleasant: Augustus Gloop is a glutton, Veruca Salt is a Spoiled Brat, Mike Teavee is obsessed with TV and Violet Beauregarde is a rude, pushy compulsive gum-chewer. Willy Wonka himself proves to be an eccentric inventor, obsessed with confectionery.

The five children tour the factory, a wonderland of bizarre and improbable inventions, but one by one the children suffer almost lethal karmic fates, each underscored by a moralising Crowd Song from Wonka's Oompa-Loompas. When only Charlie is left, Wonka reveals he was actually looking for an heir.

There is a sequel, Charlie and the Great Glass Elevator, in which the elevator shoots into space, Wonka stops an invasion by shapeshifting aliens, and the grandparents get into trouble with a de-aging potion. Unfortunately, Dahl was so disgusted at how the film of the first book turned out that he forbade any adaptations of the sequel.

Adaptation Overdosed: In addition to the two films, there's a stage play that's extremely faithful to the book, and a stage musical that uses the 1971 film's songs but is a closer match to the book plotwise (creating another, sort of hybrid, continuity).

Advertised Extra: Once Charlie arrives at the factory, he does nothing and, therefore, wins the factory. Granted, he spends the first third of the book starving to death while being a really good kid. By the time he gets to the factory, he's got nothing to prove to the readers.

Animal Motifs: Pigs for Augustus, in all versions. His character description in the book is "a fat pig who would eat anything within reach or bite." Promotional material for the 2005 film showed pigs around him, as well. His family also runs a butchery in the 2005 film, driving the point home further with large sacks of meat hanging around him.

Arson, Murder, and Jaywalking: The kids' major character flaws: being greedy, being spoiled, being obsessed with TV and... chewing gum? What the hell?

A more reasonable flaw would be being ill-mannered and (in the original book and original movie) dim-witted or (in the 2005 remake) hyper-competitive.

A cut chapter from the book involves another contestant named Miranda Piker, whose crime is being a teacher's pet and having a headmaster for a father. She is eliminated when she and her father decide they want to put a stop to the making of a candy that will allow students to fake sick. Dahl cut this subplot after he realized that there were too many characters.

Happily Married: Charlie's parents (except for the 1971 film) and both sets of his grandparents. The fact that he has a loving family makes him contrast with the bratty, dysfunctional rich kids even more.

Happiness in Slavery: The Oompa Loompas work and live in Wonka's factory for beans, and are apparently thrilled with the arrangement. This could also have something to do with the value of the beans in their native culture where they are extremely scarce. To put it in perspective: imagine being paid in personal love slave services, recreational drugs, video games or your favourite vice.

Another part of the reason why they may be so happy working for Wonka is because, while they do now have to work for their cocoa beans, they are also allowed to live in comfortable housings in the factory, which is a fairly safe working environment. Back in Loompaland, they lived in rickety treehouses, survived primarily on mashed caterpillars, and spent their lives trying to hide from the variety of terrible monsters that also lived in Loompaland and which would devour Oompa-Loompas by the dozens if they could. Having to make chocolate in a strange land isn't much sacrifice when you didn't like your homeland in the first place and it means you don't have to worry about being eaten for breakfast, lunch, dinner or a between-meals snack.

And, uh, there is the fact that he uses them for testing the side effects of his confectionary, sometimes with (it's implied) FATAL results.

Karma Houdini: What exactly did Veruca Salt get compared to the other kids? The scare of her life, and very dirty, but compared to the fate of the others (Slimmed down, stretched out, turned purple) she really didn't get what she deserved to be easily the worst of the kids, just something a bath would fix.

In her case, it was really more her parents that needed to learn a lesson about spoiling her so much. The 2005 film particularly makes it clear that she's not going to get her way so easily anymore.

Veruca: (sees Willy Wonka, Grandpa Joe, and Charlie riding in the glass elevator above them as she and her father walk out of the factory covered in garbage) Daddy, I want a glass elevator.Mr. Salt: The only thing you're getting today is a bath. And that's final.Veruca: (angrily) But I want it!

Of course, you could call Willy Wonka the biggest Karma Houdini.

Karmic Death: Sort of. While Wonka claims none of the children die, each one (except Charlie) is taken out in this manner.

The end of the book shows the naughty kids walking out of the factory, albeit considerably changed based on their punishments.

No OSHA Compliance: The factory itself is riddled with unbelievably dangerous areas, from a chocolate river with no safety rail (that leads to a grinding machine via pipes), a gaping hole in the middle of the nut sorting room that leads straight to a furnace and a glass elevator that smashes through the roof (to name a few).

Reed Richards Is Useless: Willy Wonka can make an entire meal come out of gum, an ice cream that stays cold and doesn't melt in the sun, build a chocolate palace without a metal framework, can teleport things into TV screens, and has anti-gravity technology - yet he only applies his know-how to candy.

Lampshaded by Mike Teavee in the 2005 film. Then again, considering what happened to Mike, can anyone blame Wonka for having no desire to apply his teleporting technology to people?

Singing Is a Free Action: Everything stops for the Oompa-Loompas to sing the moral, even when Veruca falls down a chute that leads to the incinerator.

It's only lit every OTHER day. They've got time. (And if she's cooked... well, nothing to be done and they STILL have time.)

Also, she could just be stuck in the chute, so they've got time in that case as well.

Spoiled Brat: All of the naughty kids. Augustus' parents feed him pounds of chocolate, Violet's parents indulge all her obnoxious habits, Veruca's parents get her anything she wants, and Mike Teevee's parents actually encourage his television watching because it means they won't have to babysit him.

Victimized Bystander: The other children who fell victim to events in the factory survived, but with "reminders" of their misbehavior. Augustus is thin as a rail from being squeezed through the pipes, Violet is purple, Veruca is covered in garbage, and Mike is a 10-foot giant (the end result of being put through a taffy puller to de-shrink him).