Calculate if two separate list of words are homophones as:
- In German using Cologne phonetics as implemented by https://github.com/provinzkraut/cologne_phonetics.
- In English using Soundex as implemented by https://github.com/Lilykos/pyphonetics.
- In English using Metaphone as implemented by https://github.com/Lilykos/pyphonetics.
Here is working demo.
API documentation here or here in redoc.
First you do need to copy .env.sample to .env and change it if you want.
cp .env.sample .env
If you don't do the step above the database container will not be initialized. Just copy the file and run docker-compose build
.
Change docker-compose.yml if necessary, specially the services port number. Run it with:
$ docker-compose up
Create first a python virtual environment and activate it:
python -m venv ~/phonetic-env
source ~/phonetic-env/bin/activate
cd phoneticapi && pip install -r requirements.txt
uvicorn main:app
cd phoneticapi-frontend
yarn
yarn run dev
# oryarn run build
If you want to ran the development server with yarn run dev
and use a running backend in the docker container you will need to
change .env.development VITE_API_URL
to point to your container address and port (if you haven't changed the docker-compose.yml
this is 'http://localhost:8082').