title: Is there a one-liner for dealing with singular/plural words in common languages?
body: <p>All too often I see websites do things like 1 views, 1 days left, or 1 answers. To me this is just lazy as its often as easy to fix as something like:</p>
  
  <pre><code>if(views == 1)
     print views + " view"
  else print views + " views"
  </code></pre>
  
  <p>What I want to know is if there is a one liner in a common language like java, python, php, etc., something that I can comment on sites that do this and say, its as easy as adding this to your code. Is that possible?</p>