Skip to content
A recursive descent parser for translating English to Swahili.
Mathematica
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Mfasiri
Msingi
README.md

README.md

This is the first commit of my Swahili translator. It uses a recursive descent parser to parse English sentences and convert them to their Swahili equivalent. It is written in Mathematica, and can be loaded into Mathematica as an external package.

To anyone who doesn't know how to load a package into their Mathematica session, here's a quick tutorial:

AppendTo[$Path,"/path/to/something/Swahili-Translator/Mfasiri"];
AppendTo[$Path,"path/to/something/Swahili-Translator/Msingi"];

Needs["Mfasiri`"]
Needs["Msingi`"]


(* now the packages are loaded into Mathematica, but you need to create the database. For this, go to the Msingi.m file located at Msingi/Msingi/Msingi.m and change the directory of $DatabaseDirectory to something in your computer *)

CreateMsingiDatabase[]

(* if you get errors, call *)

UpdateMsingiDatabase[]

(* and there it is! now you can call things like *)

Tafsiri["I am a student."]
You can’t perform that action at this time.