This script inductively analyzes relationships between conditional values and their dependent substructures from XML files exported from the [official website of Standard Korean Language Dictionary (標準國語大辭典)][1].[^1]
Tested with Python 3.9, but it would probably work with Python 3.8, and maybe even 3.7.
The usage is simple. Just pass all exported dictionary XML files into its arguments: