Star Trek: The Next Generation / Season 4 / Episode 25

In Theory

A crewmate kisses Data, and he decides to try romance the way he tries everything: by writing a program for it. Meanwhile the ship is falling apart in small, strange ways.

  • First aired Jun 3, 1991 · Syndication
  • Directed by Patrick Stewart
  • Written by Joe Menosky and Ronald D. Moore
  • Guest starring Michele Scarabelli
Still from Star Trek: The Next Generation, "In Theory"
Still from Star Trek: The Next Generation, "In Theory"
Image via TMDB
Star Trek: The Next Generation, "In Theory" (Syndication, 1991). Image via TMDB.

The story in 5 beats

  1. Jenna

    Lieutenant Jenna D'Sora, fresh off a breakup, leans on her friend Data. While they work on probes for a dark-matter nebula, she kisses him.

  2. Asking around

    Data canvasses the crew. Guinan won't advise him, Worf talks about conquest, Riker cheers him on, and Picard says he'll offer advice when he has some.

  3. The romance subroutine

    Data writes a program for being a boyfriend. He brings flowers, redecorates, and stages a lovers' quarrel, all a beat off.

  4. The nebulaSpoiler · tap to reveal

    Things aboard start to go wrong: objects move, a lounge decompresses, a crew member dies. Picard flies a shuttle to lead the ship out.

  5. Delete the programSpoiler · tap to reveal

    Over dinner, Jenna sees she has picked another man who can't feel, and ends it. Data says he will delete the program.

Why it still matters

A season earlier Data tried fatherhood. Here he tries dating, and the comedy comes from how seriously he takes it. He asks half the senior staff for advice, gets wildly different answers, and then follows a script he has built from his reading, right down to "Honey, I'm home."

It was Patrick Stewart's first time directing. He asked Jonathan Frakes, who had already directed three episodes, for advice, and Frakes said Stewart "was fabulous and took to it beautifully."

Reviews have been mixed, and the B-plot about the nebula gets the most complaints.

Spoilers from here on. From here on, how Data's first romance ends.

Then I will delete the appropriate program

The danger comes from pockets of dark matter that knock things out of phase. Ensign Van Mayter dies when the deck re-forms around her. Data works it out, and Worf suggests a shuttle to scout a path. Picard insists on flying it himself; O'Brien beams him out just before it's destroyed, and Ensign McKnight steers the Enterprise clear.

Jenna's realization ends the romance. She left her last boyfriend because he was emotionally unavailable, and she went looking for comfort in someone who could not be anything else. She ends it gently. Data answers, "Then I will delete the appropriate program," and that seems to be that, until Spot jumps into his lap and he is left alone with his cat.

Behind the scenes

  • Joe Menosky and Ronald D. Moore, the show's two executive story editors that season, wrote it together.
  • Stewart was the second member of the cast to direct an episode, after Frakes.
  • Michele Scarabelli was already known to science fiction fans as Susan Francisco on Alien Nation.
  • Ensign McKnight had been mentioned in "Clues" but was seen on screen here for the first time.
  • Its first-run Nielsen rating of 9.8 was the second-lowest of season four; only it and "Family" fell under 10.
  • Stewart later picked it for the Captain's Log DVD collection.

The thread

Data's long project of becoming more human, and other stories about loving someone who may not love back.

Came before

Shares DNA with

DNA strand

Do Machines Dream?

Data can follow every rule of romance and still miss the point, which is both the joke and the sadness of it. The episode never says whether he felt anything, and the cat in his lap at the end lets you decide.

Every great sci-fi story is built from a handful of strands like this one. Each strand page explains how it works and traces it across shows, books and films.

Also in this strand:"The Offspring"HerExplore this strand →

If this one stayed with you

Where to go next, and why.

Watch · Star Trek: TNG S3

"The Offspring" (1990)

If Data's earnest trial-and-error got to you, watch him try parenthood the same way. Jonathan Frakes directed that one.

Watch · Film

Her (2013)

The same romance from the other side: a lonely man and an AI that seems to understand him better than people do.

Read · Novella

The Lifecycle of Software Objects by Ted Chiang

People who come to love the digital beings they raise, told over years. Patient where this episode is quick, and just as interested in what the humans need.

Watch · Black Mirror

"Be Right Back" (2013)

Jenna wanted someone who couldn't hurt her. This one is about a partner rebuilt by software, who gets the words right and still isn't quite there.

Sources