title: How can I get the possessive form of a noun?
body: <p>Here's an algorithm for adding an apostrophe to a given input noun.</p>
  
  <p>How would you contruct a string to show ownership?</p>
  
  <pre><code>/**
   * apostrophizes the string properly
   * &lt;pre&gt;
   * curtis = curtis'
   * shaun = shaun's
   * &lt;/pre&gt;
   *
   * @param input string to apostrophize
   * @return apostrophized string or empty string if the input was empty or null.
   */
  public static String apostrophize(String input) {
      if (isEmpty(input)) return "";
  
      if ("s".equalsIgnoreCase(StringUtils.right(input,1))) {
          return input + "'";
      } else {
          return input + "'s";
      }
  }
  </code></pre>