The documentation for aFind, specifies a maxDist paramater you can use, but there is no maxDist parameter you can pass into aFind?
https://cran.r-project.org/web/packages/stringdist/stringdist.pdf
using this code:
result = afind(ae_target_term, ae_search_term,method="cosine", maxDist = 0.2)
just returns
Error in afind(ae_target_term, ae_search_term, method = "cosine", maxDist = 0.2): unused argument (maxDist = 0.2) Traceback: