The calculator that knows french!
Because why not.
This calculator relies on several modules to translate numbers from french to english and turn words into numbers. It also uses math.js to evaluate the result. It might take a few seconds to calculate your equasion.
node >= 14.15.0
npm >= 7.10.0
git clone https://github.com/danik4985/frenchulator.git
cd frenchulator
npm install
Assuming you are in the folder with the source code
ln -s "$PWD/cli/start.js" ~/.local/bin/frenchulator
chmod a+rx ~/.local/bin/frenchulator
# Then run with
frenchulator
Assuming you are in the folder with the source code Not tested
echo "alias frenchulator='$(realpath "cli/start.js")'" >> ~/.bash_profile
reset # Update your terminal session
# Then run with
frenchulator
I don't know
frenchulator
Assuming you are in the folder with the source code
Linux & Mac
./cli/start.js
Sh*tdows
node out/main.js
You will be asked to enter your equation. You have to enter it full in french, Fully means even operators to be words! I dont know frech, so the operators were just translated using google translate:
plus | +
moins | -
fois | *
divisé | /
If you speak french and this is wrong please dm me on discord: danik#4985
. Keep in mind this calculator recognises french french (not swiss french) (Swiss french has separate words for 70, 80, 90).
An example equation is
(quatre-vingt-trois moins [quinze divisé cinq]) fois treize
Frenchulator can handle ()
, []
and {}
brackets.
If you find any isuse, please report in the issues tab. PRs welcome, but please keep the code the same style as I have it.
If you want to contact me, you can do so on discord: danik#4985