Changed the calculation on pluralization and fixed an ingredient index bug