https://github.com/bjesus/swe
Command line interface for Folkets lexikon, the Swedish-English dictionary
https://github.com/bjesus/swe
dictionary folkets-lexikon swedish
Last synced: over 1 year ago
JSON representation
Command line interface for Folkets lexikon, the Swedish-English dictionary
- Host: GitHub
- URL: https://github.com/bjesus/swe
- Owner: bjesus
- License: mit
- Created: 2023-12-29T08:52:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-08T18:47:08.000Z (over 1 year ago)
- Last Synced: 2025-04-06T08:06:06.551Z (over 1 year ago)
- Topics: dictionary, folkets-lexikon, swedish
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swe - Swedish-English Dictionary
`swe` is a command-line interface to the great Swedish-English dictionary "[Folkets lexikon](https://folkets-lexikon.csc.kth.se/folkets/om.en.html)". It works 100% offline. Users can explore translations, idioms, synonyms and more. It can also be used for finding words containing specific substrings, and for listening to the pronunciations of words. Since version 0.3, it can also access [Wiktionary](https://sv.wiktionary.org).
https://github.com/user-attachments/assets/097a29ee-c829-4f6a-acd7-a83e93ee742d
## Installation
You can run `swe` using `uvx swe`, or install it using `uv tool install swe` or `pipx install swe`
### Zsh Completion
The repository includes a Zsh completion file [\_swe](_swe) to enhance the user experience by enabling word auto-completion.
To enable Zsh completion, do the following:
```sh
cp swe/_swe ~/.zsh/completion/_swe
chmod +x ~/.zsh/completion/_swe
```
You will need to restart Zsh for the changes to take effect.
## Usage
1. `swe` - Enter interactive mode
2. `swe ord` - Print the translation for the specified word
3. `swe -s ord` - Print all words containing the specified substring ("ord" in this example).