conversion_parity_bit
Add or check a parity bit to detect odd numbers of flipped bits in binary strings. Supports even, odd, mark, and space parity schemes.
Instructions
Parity Bit Calculator. Compute or verify a single parity bit for a binary string to support error DETECTION (not correction). In add mode it counts the 1 bits, derives the parity bit for the chosen scheme (even, odd, mark, or space), and appends it to form the codeword; in check mode it splits off the trailing bit, recomputes the expected parity from the leading data bits, and reports whether an error was detected. Parity catches only odd numbers of flipped bits and cannot locate or fix them — use conversion_hamming_code for single-bit correction or conversion_gray_code for transition-error-resistant encoding. Runs locally on the bit string you provide: read-only, non-destructive, offline, and rate-limited (60 requests/min anonymous). Returns the parity bit, the full codeword (add mode), the error-detected flag (check mode), step-by-step working, an explanation, and parity-scheme properties.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Binary string, digits 0 and 1 only. In check mode it must be at least 2 bits long (data bits plus a trailing parity bit). | |
| mode | No | add appends a computed parity bit to the data; check treats the last bit as the received parity and verifies it against the data bits. | add |
| parityType | No | Parity scheme. even/odd make the total 1 count even/odd; mark forces the parity bit to 1; space forces it to 0. | even |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether the operation succeeded. | |
| result | No | The parity calculation or verification result. |