I am looking for a program or web service that can convert sentences into propositional logic, if possible running on Windows or Linux and open source.


  • Let p = It is raining
  • Let q = Mary is sick


  • "It is not the case that Mary isn’t sick" should be converted into "¬¬q"
  • "It is raining and Mary is sick" should be converted into "p ∧ q"
  • "If it is raining, then Mary is sick"should be converted into "p → q"

This sounds like the sort of thing that you should be investigating python natural language toolkit, (nltk), and sci-kit learn for. They are free, multi-platform and open source.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.