Categorizing natural content
<p>My question is how to extract a relevant category from a natural content.</p>

<p>For example, below is a news article from a newspaper.</p>

<blockquote>
  <p>Arsenal have completed the signing of Shkodran Mustafi from Valencia as the Gunners enter deadline day having made six signings this summer, in the form of Lucas Perez, Granit Xhaka, and the young trio of Rob Holding, Takuma Asano and Kelechi Nwakali, alongside the German international. The news comes hours after the north London club announced the transfer of Perez to the Emirates, which is likely to see an end to their transfer business this summer.</p>
</blockquote>

<p>I want likely to  categorize this content in category <strong>Sports</strong>. Is there any well written library in any programming languages like python,php,ruby?</p>

<p>Question inspiration : <a href="http://www.newsnow.co.uk/" rel="nofollow">http://www.newsnow.co.uk/</a></p>

<p>I saw one another question related to this but the answer not satisfying my requirement.</p>

<p><a href="http://stackoverflow.com/questions/820296/auto-categorization-of-content">Auto Categorization of Content</a></p>

<p>Ther is a rubygem which can help you out in this. check <a href="https://github.com/alexandru/stuff-classifier" rel="nofollow">this</a></p>

php python ruby content-management-system lexical-analysis