TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: ScotusWars – see your state's win rate in state vs. state court cases

107 pointsby lordgilmanalmost 5 years ago

10 comments

JackCalmost 5 years ago
Cool! If the OP or anyone wants to try this across all US caselaw (as opposed to just Supreme Court) we recently released a data set of citation data at the Caselaw Access Project:<p><a href="https:&#x2F;&#x2F;case.law&#x2F;download&#x2F;citation_graph&#x2F;" rel="nofollow">https:&#x2F;&#x2F;case.law&#x2F;download&#x2F;citation_graph&#x2F;</a><p>I used that data to build a visualization of how often states cite each other, for example:<p><a href="https:&#x2F;&#x2F;case.law&#x2F;exhibits&#x2F;cite-grid" rel="nofollow">https:&#x2F;&#x2F;case.law&#x2F;exhibits&#x2F;cite-grid</a>
6gvONxR4sf7oalmost 5 years ago
I can&#x27;t exactly put my reasoning to words, but it&#x27;s really nice to see a map of the U.S. include the territories as well as the states.
评论 #23760678 未加载
评论 #23760081 未加载
评论 #23760145 未加载
评论 #23761339 未加载
duxupalmost 5 years ago
Interesting, not sure this tells you much of anything but it is visually interesting.
评论 #23760705 未加载
dlgeekalmost 5 years ago
Seems to not show the whole truth for multi-state cases.<p>Ex: <a href="https:&#x2F;&#x2F;www.courtlistener.com&#x2F;opinion&#x2F;147530&#x2F;alabama-v-north-carolina&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.courtlistener.com&#x2F;opinion&#x2F;147530&#x2F;alabama-v-north...</a> just shows as AL v. NC, but it&#x27;s actually Alabama, Florida, Tennessee, Virginia and an interstate commission vs North Carolina.
评论 #23759899 未加载
评论 #23764392 未加载
koolbaalmost 5 years ago
Is there a similar breakdown by federal circuit, judge, and the President that appointed them?<p>Alternatively, anybody know a source for that type of raw data in a machine readable format?
chrismorganalmost 5 years ago
This has severe accessibility issues which are fortunately fairly easily remedied. The short explanation of the problem: users of screen readers and others like them will be unable to use this at all.<p>Your map is essentially an imagemap, implemented with SVG rather than a raster image and &lt;map&gt;. But this draws attention to two important things about imagemaps that aren’t implemented: indication of what you’re hovering on, and keyboard accessibility.<p>With an imagemap, each area is a link, so at the very least you’ll see the href in the status bar of your browser in desktop browsers; and you can do better by adding a tooltip with the title attribute.<p>The HTML title attribute translates to the SVG &lt;title&gt; element, which should be the first child of the element it applies to:<p><pre><code> &lt;path …&gt; &lt;title&gt;…&lt;&#x2F;title&gt; &lt;&#x2F;path&gt; </code></pre> Secondly, each state needs to be focusable so that keyboard users and screen readers can click on them.<p>One way of doing that is to just slap tabindex=&quot;0&quot; on each path, and slap a keydown handler on it to detect Enter. That’s an improvement and would make it tolerably accessible, but it’s not the <i>best</i> solution.<p>The best solution is to make each state <i>actually</i> a link. Wrap each &lt;path&gt; element with &lt;a xlink:href=&quot;…&quot;&gt; (remember this is the SVG anchor element, not the HTML one, hence xlink:href. On the latest browsers you can use href instead, but Safari has only supported this for 16 months and Firefox for three years, so xlink:href is safest).<p>The eventual markup should be something like this:<p><pre><code> &lt;svg&gt; &lt;a xlink:href=&quot;#AK&quot;&gt; &lt;title&gt;Alaska&lt;&#x2F;title&gt; &lt;path d=&quot;…&quot;&#x2F;&gt; &lt;&#x2F;a&gt; &lt;a xlink:href=&quot;#CA&quot;&gt; &lt;title&gt;California&lt;&#x2F;title&gt; &lt;path d=&quot;…&quot;&#x2F;&gt; &lt;&#x2F;a&gt; … &lt;&#x2F;svg&gt; </code></pre> And then start actually using the fragment for routing. This has the additional benefit of allowing sharing more precise links. The fragment used for routing should probably not match real document IDs, or else the document would be inclined to scroll underneath you; or else you could use a real one and just negate that. But if the link target is not a real element, add a link click handler that focuses the infobox, so that screen readers get pushed to the right place rather than remaining in the middle of the map.<p>Probably best also to order the paths alphabetically so that screen reader and keyboard users go through them in order.<p>Consider adding :focus and :hover styling too (e.g. change stroke colour, increase stroke-width, adjust fill-opacity, add a filter that tweaks the colour).
augusttalmost 5 years ago
It seems there&#x27;s an error when you click on MA
评论 #23759812 未加载
评论 #23759871 未加载
preommralmost 5 years ago
What&#x27;s with Oklahoma and Texas?
评论 #23760821 未加载
评论 #23760894 未加载
Shared404almost 5 years ago
I don&#x27;t know what Iowa has been doing, but they seem... problematic based on this.
评论 #23764126 未加载
sabujpalmost 5 years ago
click on DC and you&#x27;ll see that the house has a higher chance of winning