Skip to the page

How answers are built

Dugout reads what kind of answer a question needs, and that kind picks the component. The content changes with every question, and the components don't.

  1. A user asks a question

    A user types a question, or taps a suggestion chip.

    Who's in the World Series?

  2. Dugout reads the question

    Dugout works out what kind of question it is and what the user is asking.

    Kind
    One postseason series
    Series
    World Series
    Season
    2026
  3. Dugout fetches the data

    Dugout asks the MLB API for the data that answers the question.

    • Game 1, Oct 23Brewers 3, Rays 2
    • Game 2, Oct 24Brewers 5, Rays 4
    • Game 3, Oct 26In Tampa Bay
    From the MLB Stats API
  4. The kind of answer picks the component

    Dugout shows the answer with the component its kind of answer gets, so the same kind always looks the same.

    One postseason series gets the games card.

  5. Dugout responds

    The user sees a short summary and the data that backs it up.

    The Milwaukee Brewers (MIL) and the Tampa Bay Rays (TB) are in the World Series, and the Brewers lead it 2–0.

    Milwaukee Brewers (MIL)2
    Tampa Bay Rays (TB)0

Which component each kind of answer gets

Which component each kind of answer gets
The answer isComponentFor example
One player's or team's numbersSeason lineHow is Kyle Schwarber hitting this season?
Two players or teams side by sideComparisonJudge or Raleigh this season?
More than two with the same numbersTableWho hit the most home runs this season?
A stat over timeTrend chartHow has Kirk done month by month?
A postseason series, or one team's gamesGames cardWho's in the World Series?
The whole postseasonBracketHow many teams are left?
What a stat meansStat meaningWhat is OPS?
A name that fits more than one player“Which one?” choiceHow has Sánchez hit this season?
No numbers to showNo-answer cardHow is Kyle Schwarber hitting in 2027?

Where the components go

The answer is a single block. The block fills the answer column, which is never wider than 56rem, so a desktop answer reads like a page.

The answer has more than one block, like two comparisons. The blocks stack in order, each the full width.

Components change with the width they get, never with the kind of device.

The rules every answer follows

  1. Every answer opens with a short summary, and the data backs it up.
  2. When Dugout can't tell who someone means, it asks before it answers.
  3. Every number comes from MLB's data. Dugout never makes one up.
  4. Assessments like “Among the best” come from fixed thresholds, never from opinion.
  5. When Dugout can't answer a question, it says so clearly and briefly.
  6. Dugout only talks about baseball and MLB.

In a chat, the first time a player is named he gets his full name, and after that his last name. Two players in the same chat with the same last name keep their full names from the moment the second one is named.

How Dugout used its adaptive design system

The panel under every answer tells that answer’s own story in the same steps, and links to the component it got.

How is Kyle Schwarber hitting this season?

Kyle Schwarber (PHI) was one of the better hitters in MLB in 2026.

Dugout looked up the hitting and defence of Kyle Schwarber (PHI) for the 2026 season.

Kyle Schwarber (PHI)Phillies, designated hitter
StatSchwarberMLB average
Better than average.861.718
Worse than average.235.244
46
1 fewer out than an average first basemanToo few chances to judge−1
Cost 1 run more than an average fielderToo few chances to judge−0.6

Defence is from the 2026 regular season.

The numbers come from the MLB Stats API and Baseball Savant, as of October 24.

  1. The question

    “How is Kyle Schwarber hitting this season?”

  2. What Dugout understood

    Kind
    One player's season
    Player
    Kyle Schwarber (PHI)
    Games
    2026 season
  3. What Dugout asked MLB

    Dugout asked the MLB Stats API for the hitting of Kyle Schwarber (PHI) for the 2026 season, along with every team's numbers over the same games to work out the MLB averages. Dugout asked Baseball Savant for his defence.

  4. The component it chose

    One player's season gets the season line.

  5. What it's built from

    This answer is built from the team banner, the stat tooltips and the Filter, each with its own page in the design system.