Carrie Fisher, who died at age 60 Tuesday following a heart attack, was known and loved across the galaxy for several things.

To many, her turn as Princess Leia in the Star Wars franchise was up there with the all-time great movie roles. Others also loved her memorable appearance in When Harry Met Sally or her stint on 30 Rock. Still more celebrated Fisher for her openness about mental health and addiction.

One immensely important but often overlooked aspect of her career, however, was her skill at screenwriting, specifically her ability to polish the dialogue of other writers into gleaming nuggets of cinematic brilliance.

Fisher punched up the dialogue for a variety of beloved movies including Sister Act and The Wedding Singer.

Fisher's long stint as a script doctor really kicked off after she adapted her semi-autobiographical novel Postcards from the Edge for the screen.

Starring Meryl Streep, the well received 1990 movie saw studios calling on her to take a look at their own scripts in development. Before long, she'd worked her magic on everything from Hook to Lethal Weapon 3. She was once described by Entertainment Weekly as "one of the most sought after doctors in town."

Look at all the films Carrie Fisher worked on as a script doctor! pic.twitter.com/AcZ0XpJk9p — ⭐ amy o'connor ⭐ (@amyohconnor) December 27, 2016

Fisher lifted the lid on the practice in an interview with Newsweek in 2008, saying it was a "long, very lucrative episode of my life."

"But it's complicated to do that," she added. "Now it's all changed, actually. Now in order to get a rewrite job, you have to submit your notes for your ideas on how to fix the script. So they can get all the notes from all the different writers, keep the notes and not hire you. That's free work and that's what I always call life-wasting events."

Fisher's advice for screenwriters hoping to create Hollywood magic on the page? "Make the women smarter and the love scenes better."

From the same @WebMD Q&A w/ Carrie Fisher, a funny & gifted writer...on fixing bad scripts. https://t.co/TyLBiEiczE pic.twitter.com/70J9CPtbJw — Ben Mankiewicz (@BenMank77) December 27, 2016

Yet another facet of a gifted and much-missed icon.

Correction: The original post incorrectly included a tweet that described a marked-up page from Star Wars: The Empire Strikes Back as Fisher's work. The script's copy comes from the 2010 book The Making of Star Wars: The Empire Strikes Back, which does not describe the origin of the handwritten notes in the copy's caption.