Text this: The Mamdani fuzzy inference algorithm