Constawait getRankedNamesByName("acetone");
// Returns: ["acetone", "2-propanone", "67-64-1", "propanone", ...]
export const getRankedNamesByName: (name: string) => Promise<string[] | undefined> = withTtlCache(
getRankedNamesByNameUncached,
{ namespace: 'rankedNames' },
);
Fetches PubChem's popularity-ranked synonyms for a chemical name via PUG-REST, caching results for three days. The leading entries are the most commonly used names, and CAS numbers appear inline among them. Returns undefined when PubChem has no match.