Multi-language spell-checking

Find Marbles <[email protected]> Tue, 8 Nov 2022 11:58:01 +0100
Newsgroups gmane.comp.gnu.aspell.user
Message-ID <CAK+dMbqKsiF_4=xM5W5jKJtkxRpgYsVKHifcg+bwTvynSmUp6A@mail.gmail.com>
Hello,
I know that at this point this is a 12 year old question, but in case any
other unfortunate soul happens to stumble on it, since I'm trilingual
myself the hacky "solution" I use is a shell script or a .bashrc alias that
lets me choose a language when calling aspell to spell check a text.
Something like that:
#!/usr/bin/env bash

sel=3D$(printf 'el - =CE=95=CE=BB=CE=BB=CE=B7=CE=BD=CE=B9=CE=BA=CE=AC\nde -=
 Deutsch\nen - English' | fzf --reverse
--cycle
| cut -d " " -f 1)
aspell -x -c --lang=3D"$sel" $1