{'fraction_non_alphanumeric': 0.02403204272363151, 'fraction_numerical': 0.0, 'mean_word_length': 4.905511811023622, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
k-bit grouping moment balancing templates for spectral shaping codes

We investigate moment balancing templates for spectral shaping codes, e.g., dc-free codes, high-order spectral-null codes and spectral nulls code. A new approach by adding k grouped bits at determinate indices of the code word is found to balance the moment of the code word. Moment balanced code words preserve the spectral-null properties and can guarantee to correct one insertion or deletion error. The redundancy, which is a constant factor greater than that of the universal template for uncoded sequence, can be kept small. The new approach also involves the application of the optimized moment balancing template and the non-binary enumeration of balancing moment values.