/**
 * Removes a leading forward slash (/) from the given word if it exists.
 *
 * @param word - The input string that may start with a forward slash (/).
 * @returns The input string without the leading slash, or the original string if no leading slash exists.
 */
export function removeLeadingSlash(word: string): string {
  return word.startsWith("/") ? word.slice(1) : word;
}