Pitch Accents? Where did these come from..?

@Invertex One more thing. There seems to be a bug in the script for when the first result in Weblio isn’t the expected reading.

For example:
端 is a [0] but your script says [1] (Pitch starts high, ends low.)
橋 is a [2] but your script says [1] (Pitch starts high, ends low.)

In both cases, the first search result says [1], which is why I assume that’s the cause.