لوسمحتم ابغى مساعده في حل هذا باسرع وقت باستخدام ال prolog
Modify your translator program. Your program should be able to accept ONE SENTENCE and translate each WORD into opposite language (English or Malay). If the word cannot be translated it will remain as it is.
Example:
?- run.
Enter a sentence: ‘i like to eat banana’.
saya suka to makan pisang
Enter a sentence: 'i suka makan'.
saya like eat