the-c0d3r / dictdb Goto Github PK
View Code? Open in Web Editor NEWA python custom dictionary application
A python custom dictionary application
When deleteing stuff, the program doesn't tell you if the word exist or not, it just try to wipe.
There are a few scenarios that needs to be taken care of.
Just print error, word doesn't exist?
Options: to delete the word, or not to delete the word and print that it is a partial match?
Options: delete all partial match words, or ask for confirmation?
Database content
a : test
aa : test aa
User triggers dictdb -e a
. This will call the editor with both words, as they are partial match.
Delete the second entry aa : test aa
from the editor. Save and quit.
dictdb -l
still contains aa
entry. It should have been removed.
When triggering edit, keep track of which words are matched and presented to the editor. When the editor is closed, compare the final vs the old, delete the entry that has been deleted from final.
Feature: Import dictionary (from txt)
Description: To be able to import a txt file into the database.
Design plan:
sample.txt
ablution : (noun) an act of washing oneself
abscond : (verb) leave hurriedly and secretly, escape, abandon a hive or nest
...
Feature: Custom db location
Description: Application should allow user to specify where to save the database, preferably through a config file. This is to allow use cases where the user want to store the database file on a shared/synced cloud drive.
Design Plan:
~/.config/dictdb/config.json
"db_path": "/path/to/db"
Feature: Interactive Mode
Description: Interactive console mode for adding, removing, updating entries, or doing anything that the program supports.
Design Plan:
./dictdb -i
dictdb> help
add: add a new entry
del: delete the entry
mod: modify the entry
purge: remove the entire dictionary
ls: list the entries
count: get the count of the entries
dictdb> add
dictdb.add> word: definition
dictdb => successfully added "word"
dictdb.add> back
dictdb>
Feature: Official Dictionary Support
Description: The ability to lookup a word on official english dictionary instead of user created dictionary
Requirement:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.