An internet news agency asks you to generate titles for their articles. these titles should have following form:
number adjective noun suspense adjective noun
An example of a good title is
17 simple tricks ‘that will make you scream’ unbelievable ‘life hacks’
To test your code, may use this database1 of word/2
facts of which an excerpt is given below:
word(number,17).
word(number,9).
word(adjective,simple).
word(adjective,unbelievable).
word(noun,tricks).
word(noun,'life hacks').
word(suspense,'that will make you scream').
word(suspense,'which are actually').
Write the predicate title(W1,W2,W3,W4,W5,W6)
that represents good titles with the words W1
, W2
, W3
, W4
, W5
, W6
in that order.