I have produced the below macros for generating the custom acronym.
\documentclass{book}
\usepackage{ifthen}
\makeatletter
\def\Option#1=#2\relax{\bgroup
\ifthenelse{\equal{#1}{longplural}}{#2}{}
\egroup}
\def\myacronym#1{
\@ifnextchar[%]
{\@myacronym{#1}}%
{\@myacronyma{#1}}%
}
\newcommand\@myacronyma[3]{%
\newcounter{#1}%
\expandafter\edef\csname#2long\endcsname{#3 (#2)}%
\expandafter\edef\csname#2longprl\endcsname{#3s (#2s)}%
}
\newcommand\@myacronym[4][]{%
\newcounter{#2}%
\expandafter\expandafter\expandafter\Option{#1}\relax
\expandafter\edef\csname#2short\endcsname{#2}%
\expandafter\edef\csname#2shortprl\endcsname{#2s}%
\expandafter\edef\csname#2long\endcsname{#3 (#2)}%
\expandafter\edef\csname#2longprl\endcsname{#3s (#2s)}%
}%
\def\anpl#1{
\stepcounter{#1}%
\ifnum\csname the#1\endcsname>1%
\csname#1shortprl\endcsname%
\else%
\csname#1longprl\endcsname%
\fi}%
\makeatother
\myacronym[longplural=Hindustan Libraries]{hl}{HLB}{Hindustan Library}
\myacronym{flp}{floppy}{floppy desk}
\begin{document}
\chapter{Sample Title}%\label{ch01}
\anpl{hl} \anpl{flp}
\end{document}
Requirement: When we call the \anpl{hl} the output needs to be rendered as "Hindustan Libraries" and \anpl{flp} then the default plural s to be added at the end (i.e.) "floppy desks" needed in the output. i'm getting the below error message.
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.39 \myacronym[lon
gplural=Hindustan Libraries]{hl}{HLB}{Hindustan Library}
Could you please advice. how to handle such cases. Thanks for your help in advance.

\myacronymcall on line 39 after\begin{document}might help. – Marijn Aug 30 '19 at 10:06