Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cxxxr/cl-deepl
DeepL API client for Common Lisp
https://github.com/cxxxr/cl-deepl
Last synced: 23 days ago
JSON representation
DeepL API client for Common Lisp
- Host: GitHub
- URL: https://github.com/cxxxr/cl-deepl
- Owner: cxxxr
- License: mit
- Created: 2020-10-21T16:37:01.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-12T10:00:44.000Z (about 3 years ago)
- Last Synced: 2024-12-18T00:37:22.890Z (24 days ago)
- Language: Common Lisp
- Size: 10.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cl-deepl
## Usage
```common-lisp
(defvar *client* (make-instance 'deepl:client :auth-key "..."))(deepl:translate *client* "hello" :target-lang :ja)
=> (#S(DEEPL:TRANSLATION :DETECTED-SOURCE-LANGUAGE :EN :TEXT "こんにちわ"))(deepl:translate *client* '("hello" "world") :target-lang :ja)
=> (#S(DEEPL:TRANSLATION :DETECTED-SOURCE-LANGUAGE :EN :TEXT "こんにちわ")
#S(DEEPL:TRANSLATION :DETECTED-SOURCE-LANGUAGE :EN :TEXT "せかい"))(deepl:usage *client*)
=> #S(DEEPL:USAGE :CHARACTER-COUNT 318 :CHARACTER-LIMIT 1000000)(deepl:languages *client*)
=> (#S(DEEPL:LANGUAGE :KEYWORD :DE :NAME "German")
#S(DEEPL:LANGUAGE :KEYWORD :EN :NAME "English")
#S(DEEPL:LANGUAGE :KEYWORD :ES :NAME "Spanish")
#S(DEEPL:LANGUAGE :KEYWORD :FR :NAME "French")
#S(DEEPL:LANGUAGE :KEYWORD :IT :NAME "Italian")
#S(DEEPL:LANGUAGE :KEYWORD :JA :NAME "Japanese")
#S(DEEPL:LANGUAGE :KEYWORD :NL :NAME "Dutch")
#S(DEEPL:LANGUAGE :KEYWORD :PL :NAME "Polish")
#S(DEEPL:LANGUAGE :KEYWORD :PT :NAME "Portuguese")
#S(DEEPL:LANGUAGE :KEYWORD :RU :NAME "Russian")
#S(DEEPL:LANGUAGE :KEYWORD :ZH :NAME "Chinese"))
```## License
MIT