We give simple sufficient conditions for a code to be rectangular and show
that large families of well-known nonlinear codes are rectangular. These in
clude Hadamard, Levenshtein, Delsarte-Goethals, Kerdock, and Nordstrom-Robi
nson codes. Being rectangular, each of these codes has a unique minimal tre
llis that can he used for soft-decision maximum-likelihood decoding.