package levik.belegar.util;

public class LanguageUtil {
    public static final String [][] pronouns =
    { {"they","them","their","theirs"},
      {"he","him","his","his"},
      {"she","her","her","hers"},
      {"it","it","its","its"} };

    public static String getPronoun(int gender, int form, boolean capitalized) {
	try {
	    String pronoun = pronouns[gender][form];
	    if (capitalized)
		pronoun=capitalize(pronoun);
	    return pronoun;
	}
	catch (Exception e) {
	    return "";
	}
    }

    public static String capitalize(String word) {
	String firstChar = word.substring(0,1);
	String rest = word.substring(1);
	return firstChar.toUpperCase()+rest;
    }
}
