A Mary Sue is an idealized and seemingly perfect fictional character. Often, this character is recognized as an author insert or wish fulfillment. They can usually perform better at tasks than should be possible given the amount of training or experience. In some contexts the name is reserved only for women, but more often the name is used for both genders. A male can also be referred to as a Marty Sue or Gary Stu, but Mary Sue is used more commonly. 
Origin and development of the meaning
The term "Mary Sue" comes from the name of a character created by Paula Smith in 1973 for her parody story "A Trekkie's Tale":15 published in her fanzine Menagerie #2. The story starred Lieutenant Mary Sue ("the youngest Lieutenant in the fleet — only fifteen and a half years old"), and satirized unrealistic characters in Star Trek fan fiction. Such characters were generally female adolescents who had romantic liaisons with established canonical adult characters, or in some cases were the younger relatives or protégées of those characters. By 1976 Menagerie's editors stated that they disliked such characters, saying:
Mary Sue stories—the adventures of the youngest and smartest ever person to graduate from the academy and ever get a commission at such a tender age. Usually characterized by unprecedented skill in everything from art to zoology, including karate and arm-wrestling. This character can also be found burrowing her way into the good graces/heart/mind of one of the Big Three [Kirk, Spock, and McCoy], if not all three at once. She saves the day by her wit and ability, and, if we are lucky, has the good grace to die at the end, being grieved by the entire ship.
"Mary Sue" today has changed from its original meaning and now carries a generalized, although not universal, connotation of wish-fulfillment and is commonly associated with self-insertion. True self-insertion is a literal and generally undisguised representation of the author; most characters described as "Mary Sues" are not, though they are often called "proxies" for the author. The negative connotation comes from this "wish-fulfillment" implication: the "Mary Sue" is judged as a poorly developed character, too perfect and lacking in realism to be interesting.
In chapter four of her book Enterprising Women, Camille Bacon-Smith states that fear of creating a "Mary Sue" may be restricting and even silencing to some writers.
Smith quotes an issue of the Star Trek fanzine Archives as identifying "Mary Sue" paranoia as one of the sources for the lack of "believable, competent, and identifiable-with [sic] female characters." In this article, author Joanna Cantor interviews her sister Edith, also an amateur editor, who says she receives stories with cover letters apologizing for the tale as "a Mary Sue", even when the author admits she does not know what a "Mary Sue" is. According to Edith Cantor, while Paula Smith's original "Trekkie's Tale" was only ten paragraphs long, "in terms of their impact on those whom they affect, those words [Mary Sue] have got to rank right up there with the Selective Service Act". At Clippercon 1987 (a Star Trek fan convention held yearly in Baltimore, Maryland), Smith interviewed a panel of female authors who say they do not include female characters in their stories at all. She quoted one as saying "Every time I've tried to put a woman in any story I've ever written, everyone immediately says, this is a Mary Sue." Smith also pointed out that "Participants in a panel discussion in January 1990 noted with growing dismay that any female character created within the community is damned with the term Mary Sue."
However, several other writers[who?] quoted by Smith have argued that in Star Trek as originally created, James T. Kirk is himself a "Marty Stu," and that the label seems to be used more indiscriminately on female characters who do not behave in accordance with the dominant culture's images and expectations for females as opposed to males. Author Ann C. Crispin is quoted as saying: "The term 'Mary Sue' constitutes a put-down, implying that the character so summarily dismissed is not a true character, no matter how well drawn, what sex, species, or degree of individuality."
Christine Scodari, a researcher in media studies from gender perspective, noticed a tendency within slash fandom to label major female characters (e.g. Nyota Uhura in the Star Trek 2009 film reboot) as "Mary Sues" because the slash fans "begrudged" how the development of the female character takes away screen time from slashable male characters.
Marty, Gary, Gary Stu, or Larry Stu are a male variants on this trope, sharing the same wish-fulfillment aspect but involving a character with traits identified as stereotypically male. The Star Trek: The Next Generation character Wesley Crusher was described, in hostile terms, as a Gary Stu by the feminist popular culture magazine Bitch. Indeed, there is speculation amongst fans and academics, mainly pejorative, that Wesley was a self-insertion character for Gene Roddenberry, Roddenberry's middle name being Wesley.
Further variant names have been suggested based on the specific personality of a Mary Sue, such as Einstein Sue (a highly intelligent character), Mary Tzu (one with unrealistically sharp tactical acumen), Jerk Sue (a short-tempered character who lashes out), or Sympathetic Sue (an angsty character who wants the reader's sympathy).
In 2004, David Orr, in a review of online fan fiction websites FanFiction.net and Godawful Fan Fiction for The New York Times Book Review, referred to "Mary Sue" as "a ludicrously empowered author proxy".
A popular subject of debate pertains to whether the Star Wars sequel trilogy features a Mary Sue in its protagonist Rey. Screenwriter Max Landis, opines that the character fits this description, claiming that Rey is excessively gifted at a variety of skills. Conversely, Caroline Framke of Vox contended that Rey did not fit the Mary Sue profile, stating that "Any additional skills Rey has—mechanical work, hand-to-hand combat, climbing, etc—are explained when we first meet her... If she hadn't picked up those skills, she'd probably be dead". Other writers such as Tasha Robinson of The Verge have defended the idea of Rey being a Mary Sue, stating that "for women who've felt underrepresented through decades where most of the ladies onscreen were victims, tokens, rewards, or shrews, it's natural to feel a sugar rush of fulfillment over characters like Katniss Everdeen and Imperator Furiosa". Erik Kain in Forbes magazine defines Mary Sue and argues that Rey's abilities do not make her one, given the details of her allegedly established backstory.
- Author surrogate
- Cameo appearance
- Competent man
- Deus ex machina
- The History of Little Goody Two-Shoes
- Segall, Miriam (2008). Career Building Through Fan Fiction Writing: New Work Based on Favorite Fiction. Digital Career Building. Rosen Publishing Group. p. 26. ISBN 1404213562.
- Kat Feete (2005). "Who is Mary Sue?". fmwriters.com. Retrieved May 26, 2015.
- "What is a Mary Sue?". Springhole.net. 2004-03-23. Retrieved 2018-01-06.
- "Marty Stu". TV Tropes. Retrieved 2018-01-06.
- Verba, Joan Marie (2003). Boldly Writing: A Trekker Fan & Zine History, 1967-1987 (PDF). Minnetonka MN: FTL Publications. ISBN 0-9653575-4-6.
- "SF Citations for OED: Mary Sue". Retrieved 2006-05-20.
- Walker, Cynthia W. (2011). A Conversation with Paula Smith. Transformative Works and Cultures, no. 6.
- Byrd, Patricia (Spring 1978). "Star Trek Lives: Trekker Slang". American Speech. 53 (1): 52–58. doi:10.2307/455340. JSTOR 455340.
- Orr, David (2004-10-03). "The Widening Web of Digital Lit". The New York Times. Retrieved 2006-10-02.
- Milhorn (2006). Writing Genre Fiction: A Guide to the Cr. Lightning Source Incorporated. p. 55. ISBN 1581129181.
- Bacon-Smith, Camille (1 December 1991). Enterprising Women: Television Fandom and the Creation of Popular Myth. University of Pennsylvania Press.
- Cantor, Joanna (1980). "Mary Sue, a Short Compendium". Archives. Yeoman Press (5).
- Smith, p. 96.
- Smith, p. 110. A footnote states this was reported to her by Judy Chien, who attended the panel at MostEastlyCon 1990 in Newark.
- Smith, p. 97.
- Smith, p. 98.
- Scodari, Christine (September 2012). ""Nyota Uhura is Not a White Girl": Gender, intersectionality, and Star Trek 2009's alternate romantic universes". Feminist Media Studies. 12 (3): 335–351. doi:10.1080/14680777.2011.615605.
- Kukkonen, Karin; Klimek, Sonja (2011). "Gary Stu". Metalepsis in Popular Culture. p. 96. ISBN 9783110252781. Retrieved 20 December 2012.
- "The many different types of Mary Sue". OngoingWorlds.com. Retrieved 14 April 2013.
- "Bitch: Feminist Response to Pop Culture". 31. 2006.
- Wil Wheaton. "Star Trek: The Next Generation: Code of Honor". TV Squad. Retrieved 2011-08-03.
- "Mary Sue Gives Birth, Baby Undergoes Sex Change".
- "When you've had your fill of slash, gen, and 'ship fiction (fanfic terms for various character entanglements), when you groan at the arrival of each new "Mary Sue" (a ludicrously empowered author proxy) ..." Orr, David (2004-10-03). "The Widening Web of Digital Lit". The New York Times. Retrieved 2006-10-02.
- Carroll, Shiloh. "Psychology of a "Superstar": A Psychological Analysis of Jonathan Levinson". Slayage Online.com. Archived from the original on November 19, 2012. Retrieved June 26, 2015.
- Wilcox, Rhonda V.; David Lavery (February 25, 2002). Fighting the Forces: What's at Stake in Buffy the Vampire Slayer?. (via Google Books). Rowman & Littlefield.
- Max Landis, "they finally did it they made a fan fic movie with a Mary Sue as the main character" Twitter post December 19, 2015.
- Dan Woburn, Eight Problems Nobody Wants to Admit About Star Wars: The Force Awakens. What Culture, December 25, 2015.
- Caroline Framke, "What is a Mary Sue, and does Star Wars: The Force Awakens have one?" Vox,
- Tasha Robinson, "With Star Wars' Rey, we've reached Peak Strong Female Character -- And There's Nothing Wrong With That." The Verge, December 19, 2015.
- Erik Kain, "No, Rey from Star Wars: The Force Awakens Is Not a Mary Sue". Forbes Games, 2016-01-04.