あいまいさを避けるための句読点の使用

コンマまたは括弧を使用して、それらを使用しなかった場合に複数の解釈があり得るようなルールが作成されることを回避します。

あいまいさは、ルールの一部が、意味的には正しい、少なくとも 2 つの解釈を持っている場合、または 2 つの全く同じ用語または語句が語彙に含まれている場合に起こります。

例えば、以下のステートメントはあいまいです。

の場合
all of the following conditions are true :
   - the category of customer is Gold 
   - the age of customer is less than 15
および 
   the salary of customer is more than 100

エディターは、the salary of the customer is more than 100the age of the customer is at most 15 に関連付けられているかどうか、またはそれがルールの 3 番目の条件かどうかを判別できないため、あいまいさのエラーを出します。

このあいまいさを取り除くには、the age of the customer is less than 15 条件ステートメントの最後にコンマを追加することができます。

の場合
all of the following conditions are true :
   - the category of customer is Gold 
   - the age of customer is less than 15,
および 
   the salary of customer is more than 100

あいまいさを取り除くための代替方法としては、括弧を使用して式をグループ化する方法があります。

の場合
(all of the following conditions are true :
   - the category of customer is Gold 
   - the age of customer is less than 15)
および 
   the salary of customer is more than 100