Task is to write a program that can decide whether two words are synonyms or not.
I have pairs of synonymous words, E.g.: [big large] [large huge] [small little] We can derive the synonymous relationship indirectly: if big is a synonym for large and large is a synonym for huge then big is a synonym for huge. Being synonyms doesn’t depend on order, e.g. if big is a synonym for large then large is a synonym for big. The program has to answer whether given two words are synonyms or not. This seems to me as a good candidate for logic programming, e.g. with clojure.core.logic. a. How to state the input pairs of synonyms as logical statements/constraints? b. How to perform a query to find all synonyms of a given word? Or perhaps I am yack shaving? What would be a simpler way to solve this? This question is also on stackowerflow, if you want to get some points: https://stackoverflow.com/questions/67002758/logic-programming-find-synonyms-of-a-given-word -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/0cd164b2-56eb-4e99-866d-b1f63522ac52n%40googlegroups.com.