{"id":13514654,"url":"https://github.com/matijapiskorec/dict","last_synced_at":"2025-03-31T03:31:16.998Z","repository":{"id":83384789,"uuid":"249028780","full_name":"matijapiskorec/dict","owner":"matijapiskorec","description":"Blazingly fast full-text Wiktionary search in command line","archived":false,"fork":false,"pushed_at":"2020-03-21T18:47:13.000Z","size":21308,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-01T18:37:45.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matijapiskorec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-03-21T17:41:57.000Z","updated_at":"2020-10-14T15:04:30.000Z","dependencies_parsed_at":"2023-03-12T18:12:58.855Z","dependency_job_id":null,"html_url":"https://github.com/matijapiskorec/dict","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matijapiskorec%2Fdict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matijapiskorec%2Fdict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matijapiskorec%2Fdict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matijapiskorec%2Fdict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matijapiskorec","download_url":"https://codeload.github.com/matijapiskorec/dict/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413377,"owners_count":20773053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T05:00:59.763Z","updated_at":"2025-03-31T03:31:11.981Z","avatar_url":"https://github.com/matijapiskorec.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# dict\n\nBlazingly fast full-text English Wiktionary search in command line. Includes word type and basic definitions of over 781K word meanings in English Wiktionary.\n\n![dict screencast](https://raw.githubusercontent.com/matijapiskorec/dict/master/image/dict-tty-screencast.gif)\n\nRun in command line (make sure it is executable with `chmod +x dict`):\n```\ndict\n```\n\nUse `Tab` to select multiple entries for output. By default the search is from the beginning, you can delete the prepended `^` to search anywhere in the text.\n\n## Prerequisites\n\nMake sure you have `gzip` and `fzf` installed. In Arch Linux you install them with:\n```\nsudo pacman -S gzip fzf\n```\n\nFor retrieving and parsing English Wiktionary data you additionally need `wget`, `bzip2` and `perl`. In Arch Linux you install them with:\n```\nsudo pacman -S wget bzip2 perl\n```\n\n## Retrieving Wiktionary data\n\nYou can retrieve original Wiktionary database dump from the following [link](https://ftp.acc.umu.se/mirror/wikimedia.org/dumps/enwiktionary/). To download an exact version with `wget` (cca 705 MB):\n```\nwget https://ftp.acc.umu.se/mirror/wikimedia.org/dumps/enwiktionary/20200301/enwiktionary-20200301-pages-articles.xml.bz2\n```\n\nYou can also preview just the first few 5 MB of the file online using `wget`, `bzcat` and `vim`:\n```\nwget -qO- https://ftp.acc.umu.se/mirror/wikimedia.org/dumps/enwiktionary/20200301/enwiktionary-20200301-pages-articles.xml.bz2 | bzcat | head --bytes=5M | vim -\n```\n\nOnce you downloaded the database dump you can decompress it with `bzip2`:\n```\nbzip2 -d enwiktionary-20200301-pages-articles.xml.bz2\n```\n\nOr you can use `bzcat` to preview first 5 MB in `vim`:\n```\nbzcat enwiktionary-20200301-pages-articles.xml.bz2 | head --bytes=5MB | vim -\n```\n\n## Parsing Wiktionary data\n\nScript `wiktionary-parse` in `parse/` folder parses the raw English Wiktionary data. Once you download the data with the instructions above you can parse it with (make sure it is executable with `chmod +x wiktionary-parse`):\n```\ndata/wiktionary-parse enwiktionary-20200301-pages-articles.xml.bz2 \u003e enwiktionary-20200301.txt\n```\n\nAs `dict` works with compressed text file you have to compress the final output with `gzip`:\n```\ngzip -c enwiktionary-20200301.txt \u003e enwiktionary-20200301.txt.gz\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatijapiskorec%2Fdict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatijapiskorec%2Fdict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatijapiskorec%2Fdict/lists"}