from typing import List
from pathlib import Path


def read_activity_names(data_original_dir: str) -> List[str]:
    """Reads the list of names for human activities, and returns a list
    containing those activities.

    Activities are: WALKING, WALKING_UPSTAIRS, WALKING_DOWNSTAIRS, SITTING,
    STANDING, LAYING.
    """
    activity_names_path = Path(data_original_dir, "UCI HAR Dataset",
                               "activity_labels.txt")
    activity_names = []
    with open(activity_names_path, "rt", encoding="utf-8") as f:
        lines = f.readlines()
    for line in lines:
        (_, value) = line.split(" ")
        pretty_value = value.rstrip().lower().replace("_", " ")
        activity_names.append(pretty_value)
    return activity_names