-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Idea from @PietrH via internal https://ropensci.slack.com/archives/C05C3GP1CSU/p1719994234029299, to check that
Function arguments that have similar (identical) descriptions have similar (identical) argument names across a package
Relatively easily done at scale these days thanks to developments like Finding near-duplicates with Jaccard similarity and MinHash, which could be applied to parameter descriptions. It would nevertheless involve a fair bit of work for a check that would likely almost never fail, so maybe not really worthwhile? This would also introduce some pretty heavy external deps in pkgcheck, along the likes of spacy or quanteda for efficient tokenization, which is also a minus. @PietrH happy to discuss further here. Thanks for the idea π