This is a script that is meant to change all female hebrew word to male.
It includes basic flask interface.
The script uses Hspell and HspellPy with linginfo.
Get Hspell and HspellPy (see https://github.com/nirroz93/HspellPy):
- Download Hspell: http://hspell.ivrix.org.il/
- Configure: ./configure --enable-shared --enable-linginfo
- Build: make
- Install: make install
- Download HspellPy with lingonfo https://github.com/nirroz93/HspellPy
- python setup.py install
any error about libhspell.so can be handled by defining LD_LIBRARY_PATH to include libhspell.so.0 directory (as metioned in HspellPy page)
After running the script the flask interface will run listeing to port 5000. A text can be passed to te script using http://localhost:5000/antiFemine?text="Hebrew text" You can also pass a url by http://localhost:5000/antiFemine?url="Web page url"