Swiftpack.co - underthestars-zhy/DictApi as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by underthestars-zhy.
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

  1. sound: Extra attributes
  2. pt: Extra attributes
  3. word: the word you search, actually is lowercase
  4. paraphrase: Paraphrase array

Paraphrase

Flow: Identifiable, WriteAndReadAble, Mappable

  1. ps: Part of speech
  2. explain: Paraphrase (array)
  3. exampleSentence: Sentence (Corresponds to explain)

GitHub

link
Stars: 2
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

v1.1.0
2 years ago

What's New?

  1. support YouDao dictionary
  2. support reserve search
  3. model update

Bug Fix

  1. model sometimes cannot coversation to json string
  2. other bugs

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics