%% Add Rules Using French Language
% Load a fuzzy inference system (FIS).

fis = readfis('tipper');

%
% Specify if-then rules using French keywords.

rule1 = "Si service est poor ou food est rancid alors tip est cheap";
rule2 = "Si service est excellent et food n''est_pas rancid alors tip est generous";
rules = [rule1 rule2];

%
% Add the rules to the FIS.

fis2 = addRule(fis,rules);

% fis2 is equivalent to fis, except that the specified rules are added to the rule base.
%
% Copyright 2018 The MathWorks, Inc.