danik4985 / frenchulator

A calculator that understands f̵͎̲͔̮̆͋̏͐͆̊͊̚r̸̢͉̟̘̹͍̜͓̝̭̲̪̓̅͐͋̿̈̐̀̈́͐͂͝͝ë̵̬̖̘̩͔̗́̉͋̋̓͋̀̓̓̈́̚n̷̬̭͉̠̿c̸̢̼͕̮̹͆̊̽̈́̆̐̃͋̃͠ḩ̷̻̖̩͈͆͘.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FrenchUlator

The calculator that knows french!

Why?

Because why not.

how did this happen

How?

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.

Instalation

System requirements

node >= 14.15.0
npm  >= 7.10.0

Basic install

git clone https://github.com/danik4985/frenchulator.git
cd frenchulator
npm install

Instalation as a terminal command

Linux

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

MacOS

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

Windows

I don't know

Usage

Running

If you installed it as a terminal command

frenchulator

If you have not

Assuming you are in the folder with the source code

Linux & Mac

./cli/start.js

Sh*tdows

node out/main.js

Using

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.

Issues & Contributing

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.

Contact

If you want to contact me, you can do so on discord: danik#4985

About

A calculator that understands f̵͎̲͔̮̆͋̏͐͆̊͊̚r̸̢͉̟̘̹͍̜͓̝̭̲̪̓̅͐͋̿̈̐̀̈́͐͂͝͝ë̵̬̖̘̩͔̗́̉͋̋̓͋̀̓̓̈́̚n̷̬̭͉̠̿c̸̢̼͕̮̹͆̊̽̈́̆̐̃͋̃͠ḩ̷̻̖̩͈͆͘.

License:MIT License


Languages

Language:JavaScript 71.0%Language:TypeScript 29.0%