Options
All
• Public
• Public/Protected
• All

# Module Logic

Fuzzy Common Sense Logic

Human Logic (also known as “common sense”) is based on five categories:

• `true` = certainly positive
• `false` = certainly negative
• `maybe` = uncertain (could be either positive or negative)
• `never` = impossible (neither positive nor negative)
• `undefined` = totally unknown

In Fuzzy Common Sense Logic the value is five-dimensional unit vector. Each vector component is a fuzzy value (between 0.0 and 1.0 inclusive) of respective `true`, `false`, `maybe`, `never` or `undefined` category.

## Functions

### and

• Fuzzy Common Sense AND (global function). Allows to use different code styles, e.g.:

``````const valueA = value1.and(value2);
const valueB = and(value1, value2);
``````

### normalize

• Fuzzy Common Sense logical value normalization (global function). Allows to use different code styles, e.g.:

``````const valueA = value.normalize();
const valueB = normalize(value);
``````

See Logic.normalize for details.

### not

• Fuzzy Common Sense NOT (global function). Allows to use different code styles, e.g.:

``````const valueA = value.not();
const valueB = not(value);
``````

### or

• Fuzzy Common Sense OR (global function). Allows to use different code styles, e.g.:

``````const valueA = value1.or(value2);
const valueB = or(value1, value2);
``````