P+D*(A|N)*N)*"</span>, is_regex = <span class="hljs-literal">TRUE</span>, 
                                     detailed = <span class="hljs-literal">FALSE</span>)
keyw_nounphrases &lt;- subset(keyw_nounphrases, ngram &gt; <span class="hljs-number">1</span>)

<span class="hljs-comment">## Recode terms to keywords</span>
x$term &lt;- x$token
x$term &lt;- txt_recode_ngram(x$term, 
                           compound = keyw_rake$keyword, ngram = keyw_rake$ngram)
x$term &lt;- txt_recode_ngram(x$term, 
         