Swift Package Manager is a tool for
managing the distribution of Swift code.
Once you have your Swift package set up, adding
WordNetDecoder as a dependency is as
easy as adding it to the
dependencies value of your
dependencies: [ .package(url: "https://github.com/wacumov/WordNetDecoder", from: "0.0.2") ]
Just read contents of a wordnet file in XML format and pass it to a
WordNetXMLDecoder. You will get
Codable models that are convenient to work with.
let wordnet = try WordNetXMLDecoder().decode(data)