<p>As part of our continuing effort to digitise poetry and to automate new forms of poetry, we released an R package called <strong>pattern.nlp</strong>, which is available at <a href="https://github.com/bnosac/pattern.nlp">https://github.com/bnosac/pattern.nlp</a> . It allows R users to do sentiment analysis and Parts of Speech tagging for text written in Dutch, French, English, German, Spanish or Italian. Of course this can also be used for other purposes like data preparation as part of a topic modelling flow.</p>
<p></p>
<p>If you are interested in text mining, feel free to register for the text mining courses listed at <a href="http://www.bnosac.be/index.php?option=com_content&view=article&id=59:text-mining-with-r-upcoming-training-schedule&catid=8:blog&Itemid=107">our last blog post.</a></p>
<p>If you just want to do sentiment analysis and POS tagging in these 5 European languages, go ahead as follows. <strong>Sentiment analysis is available for Dutch, French &amp; English</strong>.</p>
<div>
<div>
<pre>library(pattern.nlp)<br><br>## Sentiment analysis<br>x &lt;- pattern_sentiment(&quot;i really really hate iphones&quot;, language = &quot;english&quot;)<br>y &lt;- pattern_sentiment(&quot;de wereld is een mooie plaats, nietwaar sherlock&quot;, language = &quot;dutch&quot;)<br>z &lt;- pattern_sentiment(&quot;j'aime Paris, c'est super&quot;, language = &quot;french&quot;)<br>rbind(x, y, z)<br><br>polarity subjectivity                                               id<br>   -0.80         0.90                     i really really hate iphones<br>    0.70         1.00 de wereld is een mooie plaats, nietwaar sherlock<br>    0.65         0.75                        j'aime Paris, c'est super<br></pre>
</div>
</div>
<p><strong>Parts of Speech tagging is available for Dutch, French, English, Spanish &amp; Italian.</strong></p>
<div>
<div>
<pre>library(pattern.nlp)<br><br>x &lt;- &quot;Il pleure dans mon coeur comme il pleut sur la ville. Quelle est cette langueur qui penetre mon coeur?&quot;<br>pattern_pos(x = x, language = 'french')<br><br>x &lt;- &quot;Avevamo vegliato tutta la notte - i miei amici ed io sotto lampade <br>  di moschea dalle cupole di ottone traforato, stellate come le nostre anime, <br>  perché come queste irradiate dal chiuso fulgòre di un cuore elettrico.&quot;<br>pattern_pos(x = x, language = 'italian')<br></pre>
</div>
</div>
<p></p>
<p> </p>
<p>We are also working on a Dutch wordnet - which will be fully released in due date. More information at <a href="https://github.com/weRbelgium/wordnet.dutch">https://github.com/weRbelgium/wordnet.dutch</a>.<br>Hope you use the package for spreading new languages!</p>