\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{nanpa}[2020/12/15 nanpa]

\def\@nanpa#1{%
\ifnum #1 < 1
ala\else\ifcase#1\or wan\or tu\else mute\fi\fi}

\def\@nanpasuli#1{%
\ifnum #1 < 1
ala \fi
\ifnum #1 > 100
ale \@nanpasuli{\the\numexpr#1-100}\fi
\ifnum #1 = 100
ale\fi
\ifnum #1 > 20
\ifnum #1 < 100
mute \@nanpasuli{\numexpr#1-20}\fi\fi
\ifnum #1 = 20
mute\fi
\ifnum #1 > 5
\ifnum #1 < 20
luka \@nanpasuli{\the\numexpr#1-5}\fi\fi
\ifcase#1 \or wan\or tu\or tu wan\or tu tu\or luka\fi
}

\def\nanpa#1{\expandafter\@nanpa\csname c@#1\endcsname}
\def\nanpasuli#1{\expandafter\@nanpasuli\csname c@#1\endcsname}
