10000 Add verbose mode to Wiktionary by Offpics · Pull Request #274 · zdict/zdict · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Add verbose mode to Wiktionary #274

Merged
merged 6 commits into from
Oct 28, 2018
Merged

Conversation

Offpics
Copy link
Contributor
@Offpics Offpics commented Oct 17, 2018

Description:

Previous version only showed the first definition provided by the API to the user.
This version does cover every part of speech , definitions and examples provided by the API ♻️.
I'm really sad it turned out to be O(n^3) but can't think of a better solution right now.

There is also some code repetition in query and show function. I'm not sure if this is a problem. I tried to follow instructions provided in the dictionaries/template.py and that's why it turned out to be repetitive.

Sometimes there are repetitions in the API that are parsed to the Record, for example for a word 'box'. It is a good idea to fix this issue in the future.

This version does cover every part of speech, definitions and examples
provided by the API.
@coveralls
Copy link
coveralls commented Oct 17, 2018

Coverage Status

Coverage decreased (-0.5%) to 83.941% when pulling 8a73fe0 on Aquakor:refactor-wiktionary into db272ae on zdict:master.

@Offpics Offpics closed this Oct 17, 2018
@Offpics Offpics reopened this Oct 17, 2018
@fkztw
Copy link
Member
fkztw commented Oct 17, 2018

I think you can modify the code to make this patch as verbose mode of wiktionary.
Don't just replace the previous version.

@Offpics
Copy link
Contributor Author
Offpics commented Oct 17, 2018

I think you can modify the code to make this patch as verbose mode of wiktionary.
Don't just replace the previous version.

I wasn't aware that verbose mode exists. I will do this.

@Offpics Offpics changed the title Refactor Wiktionary dictionary [WIP] Refactor Wiktionary dictionary Oct 17, 2018
@Offpics Offpics changed the title [WIP] Refactor Wiktionary dictionary Add verbose mode to Wiktionary Oct 18, 2018
@iblislin
Copy link
Member

BTW, could you add a screenshot on README?

@Offpics
Copy link
Contributor Author
Offpics commented Oct 19, 2018

BTW, could you add a screenshot on README?

Sure 👍

@fkztw fkztw closed this Oct 28, 2018
@fkztw fkztw reopened this Oct 28, 2018
@fkztw fkztw merged commit d34cb9d into zdict:master Oct 28, 2018
fkztw pushed a commit that referenced this pull request Oct 28, 2018
- [#274] Add verbose mode for wikitionary.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0