Niles C.

asked • 10/09/24

How can I replace all punctuation with spaces before breaking into words (creating the function: `wordsnopunc/1` in SWI-Prolog)?

How can I replace all punctuation with spaces before breaking into words (creating the function: `wordsnopunc/1`). I vaguely understand the concept but am really struggling to get it to function properly in SWI-Prolog. Thank you so much for any help you can provide.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.