Open ebeshero opened 6 years ago
@quantum-satire @dorothealint To find out who talks the most you'd maybe want to first find the longest speech in a script. Ally, this is something you did in the string-function XPath exercise last fall, but Dorothea hasn't seen it...Try the following in your XPath window on a given Rick and Morty file:
Find the string-length() of all the speeches:
//sp/string-length()
Get the value of the maximum string-length() using the max() function to wrap around the multiple string-length() results and retrieve one maximum:
max(//sp/string-length())
and of course you can get the minimum with the min() function:
min(//sp/string-length())
NOW, to return the <sp>
that has the maximum length, we have to write a tricky predicate:
//sp[string-length() = max(//sp/string-length())]
How would you return the speaker of that sp of maximum length?
There are other ways to figure out the characters across your collection who talk the most on average. You might want to calculate an average using XPath functions--and read more about that at http://dh.obdurodon.org/functions.xhtml : see Part 5 on Numbers (or read up on this stuff in the Michael Kay book).
So, as you saw in your e-mail, I wrote to the TEI listserv to ask the community about our use of
@level
, and I received a couple of interesting responses so far. One is a suggestion that you might just use the XPathstring-length()
function to return the lengths of all the spoken passages in the scripts, and find out which characters are associated with the longest speeches. Perhaps these characters who talk the most are the most primary or dominant in the scene. I wrote back and explained that this may not be the case in Rick and Morty or other such series, when being a primary character might not be consistently measurable by talking the most...Still, you might want to find out the most talkative characters in the episodes, and find out who's the most talked about anyway--even if it doesn't play into your interpretation of characters as "primary", "secondary", or "dimensional".