Kopi Luwak civets choose which cherries to eat – i.e. those that are most ripe and flawless. Digestive mechanisms may improve the flavor profile of the coffee beans that have been eaten. The civet eats the cherries for the fleshy pulp, then in the digestive tract, fermentation occurs. The civet's protease enzymes seep into the beans, making shorter peptides and more free amino acids. Early production began when beans were gathered in the wild from where a civet would defecate as a means to mark its territory. On farms, civets are either caged or allowed to roam within defined boundaries. Coffee berries
Coffee production in Indonesia farmers remove the outer skin from the cherries mechanically, using rustic pulping machines, called "luwak". The coffee beans, still coated with mucilage, are then stored for up to a day. Following this waiting period, the mucilage is washed off and the coffee is partially dried for sale. At least one U.S. manufacturer, soft drink producer Bai, purchases the non-bean remnants of coffee cherries for use in their products. Otherwise, these remnants are discarded. Collectors and processors then hull the coffee in a semi-wet state, which gives the beans a distinctive bluish-green appearance. This process reduces acidity and increases body, resulting