No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



  1. Install swi-prolog

  2. Run in project directory: $ swipl

  3. Play with translations English to Hungarian: ?- translate('the boy slept', Hungarian).

Hungarian to English: ?- translate(English, 'a fiúk aludtak').


English words available: Hungarian words available:


  1. What's the difference between a "lexical" and "dictionary" entries (i.e., en_lex() vs. en_dic())?

Dictionary entries map to the "root" forms of words, such as "speak", "boy". Lexical entries represent words that have may or may not have morpholgical transformations applied to them. Such as "speak" or "speaks", "boy" or "boys". All forms of valid words will satisfy at least one lex() predicate, but only their root forms will satisfy a dic() predicate.

This allows root words to be defined, and then their various morphological forms to be recognized or generated via rules. The alternative would be exhaustively listing every form of every valid word, which would quickly become untennable and unnecessarily redundant.