underthestars-zhy/DictApi v1.1.0
An unparalleled dictionary collection API
⭐️ 2
🕓 2 years ago
iOS
macOS
watchOS
tvOS
.package(url: "https://github.com/underthestars-zhy/DictApi.git", from: "v1.1.0")
DictApi
A powerful library for swift programmer to get word from dicts.
DictType
Collins
- from language: en
- to language: cn
- pronunciation: US
- method: web
- Extra attributes: None
let data = await DictApi.shared.getData(with: .collins, for: "Swift", from: .en, to: .cn)
print(data.word)
Data Model
DictDataModel
Flow: Identifiable, WriteAndReadAble, Mappable
- sound: Extra attributes
- pt: Extra attributes
- word: the word you search, actually is lowercase
- paraphrase: Paraphrase array
Paraphrase
Flow: Identifiable, WriteAndReadAble, Mappable
- ps: Part of speech
- explain: Paraphrase (array)
- exampleSentence: Sentence (Corresponds to explain)