
    Create a function that converts database field names from the legacy user interaction tracking system (stored in snake_case) to the new frontend JavaScript naming convention (in camelCase) for the content recommendation engine. The function should handle any length of underscore-separated field names while preserving the original meaning of the database attributes.
    

    
def snake_to_camel(word):
    """
    Create a function that converts database field names from the legacy user interaction tracking system (stored in snake_case) to the new frontend JavaScript naming convention (in camelCase) for the content recommendation engine. The function should handle any length of underscore-separated field names while preserving the original meaning of the database attributes.
    

    """
import re

def snake_to_camel(word):
    """
    Create a function that converts database field names from the legacy user interaction tracking system (stored in snake_case) to the new frontend JavaScript naming convention (in camelCase) for the content recommendation engine. The function should handle any length of underscore-separated field names while preserving the original meaning of the database attributes.
    

    """
    return ''.join((x.capitalize() or '_' for x in word.split('_')))