SWI-Prolog Did You Know Did you know? SWI-Prolog has probabilistic logic Search Documentation:
Predicate udp_term_string_hook/3