Analysis

A wordcloud consisting of common Ace Attorney terms
A wordcloud made up of the 1st game's most common words

This page contains analysis of data pertaining to the Ace Attorney franchise.
For more info on how exactly we acrued our data, check out the data page.
As a reminder, our data typically looks something like this:

<line speaker="Phoenix">Prosecutor Blackquill! What if I told you that the two astronauts... ...never set foot inside the launch pad area, but instead, went into another place? And what if when the director moved Launch Pad 1 back, it was not from the launch site... ...but from another place. What would you say then?</line>
<line speaker="Blackquill">Cut the existential bull or I'll cut you.</line>
<line speaker="Judge">Mr. Wright, you will explain yourself at once!</line>
<line speaker="Phoenix"><thought>I know I'm right. It was all the other way around from the beginning!</thought> Very well, Your Honor. Let me explain. Director Cosmos's reason for moving Launch Pad 1 was...</line>
<line speaker="Phoenix">Because he wanted to hide Launch Pad 1!</line>
<line speaker="Judge">Hmm, well, let's suppose he did move it. Where in the world would he hide it? An enormous launch pad like that... I highly doubt it could truly be hidden.</line>
<line speaker="Phoenix">Oh, uh... behind something, maybe...?</line>
<line speaker="Judge">Mr. Wright! Are you asking me or telling me?!</line>
<line speaker="Phoenix">Urk. <thought>Looks like I messed that up...</thought> Your Honor! Please let me give it another try!</line>
<line speaker="Phoenix">Because he wanted to trap the true killer!</line>
<line speaker="Blackquill">............Hmph. Wright-dono, need I remind you there was an explosion? And that the corridor between the launch pad and the lounge was thick with smoke? If the killer had been trapped in there, they would've been found as dead as their victim.</line>
<line speaker="Phoenix">I-I guess you're right.</line>
<line speaker="Judge">Well, I'm glad you both agree. Now here's a penalty for you, Mr. Wright.</line>
<line speaker="Phoenix"><thought>I don't agree with that penalty, though...</thought> Your Honor! Please give me another chance!</line>

Ace Attorney is a visual novel, so there's a ton of text, all of it appearing as dialogue between characters. To reflect this, out XML data contains all the 'dialogue' with the speaker outlined in an attribute. So what data can we glean from this XML, and how exactly can we secure it?
One piece of information we wanted to find was how many lines each speaker had. This is pretty simple to find in each individual file, but searching over our whole collection is a bit harder. We'll use a combination of XQuery, which lets you run XPath searches over collections of files, and PyVis, which'll let us display the data we select as a network with nodes and edges.
For a full breakdown on the process, and to run the code yourself, check out this Jupyter Notebook!
After running all that code and constructing our network, we end up with this:

Cool! With this graph, it's clear that Phoenix, Edgeworth, Ryunosuke, Apollo, and the Judge are the most common speakers. Phoenix's position is obvious, as he's a main character in all 6 mainline games, and it's no surprise that Apollo makes the top cut as well, he's a protagonist in half the mainline games. It's interesting that Ryunosuke has more lines than Apollo though, as he's the protagonist in only 2 spinoff games. A similar phenomenon occurs with Edgeworth. Those with a passing knowledge of the series might be surprised that he's in second place when it comes to number of lines. He's the primary antagonist in the first game, and shows up once or twice in pretty much all the other games, but the real reason he has so many lines is that he stars in 2 of his own spin off games, the Ace Attorney Investigation games. It's amusing that the Judge appears here, but not surprising. Roughly half of the Ace Attorney games' gameplay takes place in the courtroom, where the Judge features prominently. He's never been a very defined character though, so his relevance over more memorable characters like Athena Cykes or Maya Fey is a bit baffling.
We can refine our graph (and make it easier to read) by adjusting our coloring strategy and actually connecting our nodes together to form a long string from most prominent character to least prominent.
This process was detailed in the same notebook from earlier, so revisit it if you'd like!
Here's what our refined graph looks like:

As an Ace Attorney fan, it was pretty fun to follow the path and find the first character I didn't recognize right away (It was Ryutaro; see how far down on the chain they are?). The number 75 was chosen arbitrarily, but it turned out to be pretty effective. Near the end of the trail, the characters start becoming pretty obscure.
There is some data analysis that can only be done using NLP, natural language processing, to scan over our text and pick out certain types of word. In this notebook, we use XQuery to find all of the main character Phoenix's longest lines and picks out the proper nouns used most often, but you're encouraged to mess with the code yourself to find something different! Regardless, here's the bar graph created from the data we picked out:

A bar graph depicting the proper nouns used most commonly by Phoenix Wright

This data is pretty flawed. Those familiar with the franchise would recognize that there's no reason for the character Olga Orly to show up so prominently, she's only in ONE case! I believe this is the result of our data-sparsing technique. For brevity, we only analyzed lines above 300 characters, so I guess Phoenix was just going off about this Olga lady at one point for one reason or another. Undoubtedly, if our data-sparsing technique was refined a bit, we'd make a more accurate graph.

We don't have to stop there, another data visualization tactic we can do is to go over each file in our corpus using XQuery and build an SVG image from the data we gather.
The SVG graph shown below is a graph depicting the number of lines the main character Phoenix has in each episode's transcript (made with this XQuery file).

Get data for each episode about how many lines Phoenix has Phoenix Lines per Episode Total lines in this episode? 1047 Bridge_to_the_Turnabout - Part 4 1047 Total lines in this episode? 919 The_Golden_Court 919 Total lines in this episode? 905 Bridge_to_the_Turnabout - Part 3 905 Total lines in this episode? 790 Turnabout_for_Tomorrow - Part 2 790 Total lines in this episode? 772 Farewell,_My_Turnabout - Part 3 772 Total lines in this episode? 763 Turnabout_Succession - Part 4 763 Total lines in this episode? 755 Farewell,_My_Turnabout - Part 4 755 Total lines in this episode? 754 Farewell,_My_Turnabout - Part 1 754 Total lines in this episode? 720 The_Fire_Witch 720 Total lines in this episode? 706 Farewell,_My_Turnabout - Part 2 706 Total lines in this episode? 667 The_Foreign_Turnabout 667 Total lines in this episode? 652 The_Rite_of_Turnabout - Part 1 652 Total lines in this episode? 651 Recipe_for_Turnabout - Part 4 651 Total lines in this episode? 626 Rise_from_the_Ashes - Part 6 626 Total lines in this episode? 611 The_Rite_of_Turnabout - Part 4 611 Total lines in this episode? 609 Turnabout_Reclaimed - Part 4 609 Total lines in this episode? 573 Recipe_for_Turnabout - Part 3 573 Total lines in this episode? 563 The_Final_Witch_Trial 563 Total lines in this episode? 556 Reunion,_and_Turnabout - Part 1 556 Total lines in this episode? 555 Recipe_for_Turnabout - Part 1 555 Total lines in this episode? 553 Turnabout_Time_Traveler - Part 4 553 Total lines in this episode? 551 Reunion,_and_Turnabout - Part 3 551 Total lines in this episode? 531 Turnabout_Big_Top - Part 1 531 Total lines in this episode? 530 The_Stolen_Turnabout - Part 4 530 Total lines in this episode? 520 The_Stolen_Turnabout - Part 1 520 Total lines in this episode? 518 The_Rite_of_Turnabout - Part 3 518 Total lines in this episode? 516 Rise_from_the_Ashes - Part 4 516 Total lines in this episode? 513 Turnabout_Time_Traveler - Part 1 513 Total lines in this episode? 481 Turnabout_Countdown 481 Total lines in this episode? 473 Reunion,_and_Turnabout - Part 4 473 Total lines in this episode? 467 The_Stolen_Turnabout - Part 3 467 Total lines in this episode? 457 The_Last_Inquisitor 457 Total lines in this episode? 451 Rise_from_the_Ashes - Part 5 451 Total lines in this episode? 449 Rise_from_the_Ashes - Part 3 449 Total lines in this episode? 449 Turnabout_Reclaimed - Part 3 449 Total lines in this episode? 448 Turnabout_Big_Top - Part 4 448 Total lines in this episode? 447 Turnabout_for_Tomorrow - Part 1 447 Total lines in this episode? 437 Rise_from_the_Ashes - Part 2 437 Total lines in this episode? 431 The_Lost_Turnabout 431 Total lines in this episode? 415 Turnabout_Sisters - Part 2 415 Total lines in this episode? 412 The_Rite_of_Turnabout - Part 2 412 Total lines in this episode? 403 Turnabout_Reclaimed - Part 1 403 Total lines in this episode? 398 Rise_from_the_Ashes - Part 1 398 Total lines in this episode? 398 The_Cosmic_Turnabout - Part 2 398 Total lines in this episode? 396 Turnabout_Time_Traveler - Part 3 396 Total lines in this episode? 388 English_Turnabout 388 Total lines in this episode? 388 Turnabout_Succession - Part 3 388 Total lines in this episode? 385 Turnabout_Big_Top - Part 2 385 Total lines in this episode? 365 Turnabout_Goodbyes - Part 6 365 Total lines in this episode? 362 Reunion,_and_Turnabout - Part 2 362 Total lines in this episode? 362 Turnabout_Samurai - Part 3 362 Total lines in this episode? 358 Turnabout_Revolution - Part 3 358 Total lines in this episode? 340 Turnabout_Big_Top - Part 3 340 Total lines in this episode? 331 The_Stolen_Turnabout - Part 2 331 Total lines in this episode? 326 Turnabout_Goodbyes - Part 3 326 Total lines in this episode? 320 The_Cosmic_Turnabout - Part 3 320 Total lines in this episode? 316 Turnabout_Trump 316 Total lines in this episode? 312 Recipe_for_Turnabout - Part 2 312 Total lines in this episode? 309 Turnabout_Reclaimed - Part 2 309 Total lines in this episode? 305 Turnabout_Samurai - Part 4 305 Total lines in this episode? 297 Turnabout_Goodbyes - Part 2 297 Total lines in this episode? 296 The_First_Story 296 Total lines in this episode? 294 Turnabout_Revolution - Part 4 294 Total lines in this episode? 294 Turnabout_Time_Traveler - Part 2 294 Total lines in this episode? 292 The_Great_Witch 292 Total lines in this episode? 292 Turnabout_Sisters - Part 3 292 Total lines in this episode? 287 Turnabout_Goodbyes - Part 1 287 Total lines in this episode? 281 Turnabout_Sisters - Part 4 281 Total lines in this episode? 274 A_Taste_of_Despair 274 Total lines in this episode? 273 Turnabout_Sisters - Part 1 273 Total lines in this episode? 257 Turnabout_Samurai - Part 6 257 Total lines in this episode? 253 Turnabout_Goodbyes - Part 4 253 Total lines in this episode? 227 Turnabout_Samurai - Part 1 227 Total lines in this episode? 210 Bridge_to_the_Turnabout - Part 1 210 Total lines in this episode? 208 Turnabout_Samurai - Part 2 208 Total lines in this episode? 199 The_First_Turnabout 199 Total lines in this episode? 188 Turnabout_Goodbyes - Part 5 188 Total lines in this episode? 172 Turnabout_Memories 172 Total lines in this episode? 167 Turnabout_Samurai - Part 5 167 Total lines in this episode? 161 Turnabout_Revolution - Part 2 161 Total lines in this episode? 156 Secrets_of_the_Underground_Ruins 156 Total lines in this episode? 109 The_Story%2527s_End 109 Total lines in this episode? 96 Turnabout_Countdown_(demo) 96 Total lines in this episode? 85 The_Foreign_Turnabout_(demo) 85 Total lines in this episode? 74 Turnabout_Academy - Part 1 74 Total lines in this episode? 74 Turnabout_Corner - Part 1 74 Total lines in this episode? 47 Turnabout_Succession - Part 1 47 Total lines in this episode? 40 Mysterious_Labyrinthia 40 Total lines in this episode? 30 The_Monstrous_Turnabout - Part 3 30 Total lines in this episode? 29 Special_Trial_2017 29 Total lines in this episode? 29 Turnabout_Serenade - Part 4 29 Total lines in this episode? 28 Fire_Festival 28 Total lines in this episode? 27 Reunion 27 Total lines in this episode? 22 London_(episode) 22 Total lines in this episode? 22 Turnabout_Succession - Part 5 22 Total lines in this episode? 21 Festival_Fever 21 Total lines in this episode? 19 Flour_Everywhere 19 Total lines in this episode? 18 A_Fond_Farewell 18 Total lines in this episode? 17 Making_Money 17 Total lines in this episode? 17 Shady_Types 17 Total lines in this episode? 16 Another_Visit 16 Total lines in this episode? 15 Turnabout_Corner - Part 3 15 Total lines in this episode? 15 Turnabout_Revolution - Part 1 15 Total lines in this episode? 14 At_the_Market 14 Total lines in this episode? 13 The_Magical_Turnabout - Part 1 13 Total lines in this episode? 11 Awkward_Moments 11 Total lines in this episode? 10 The_Monstrous_Turnabout - Part 2 10 Total lines in this episode? 8 The_Monstrous_Turnabout - Part 4 8 Total lines in this episode? 7 The_Monstrous_Turnabout - Part 1 7 Total lines in this episode? 7 Turnabout_Corner - Part 4 7 Total lines in this episode? 5 The_Magical_Turnabout - Part 2 5 Total lines in this episode? 4 Turnabout_Academy - Part 4 4 Total lines in this episode? 3 On_a_Dark_and_Stormy_Night 3 Total lines in this episode? 3 Turnabout_Academy - Part 3 3 Total lines in this episode? 2 Turnabout_Academy - Part 2 2
Back to Top