Parsing inflected forms may not always work as expected. If the following does not give the correct word, try Latin Words or Perseus.
Melae, ārum, f., a town in the Samnite country, Liv. 24, 20; called also Meles, ĭum, Liv. 27, 1.
1. mēles (maeles) and mēlis (mae-lis), is, f., a marten or badger, Varr. R. R. 3, 12, 3; Plin. 8, 38, 58, § 138; Grat. Cyneg. 340.
2. Mĕles, ētis, m., Μέλης, a river in Ionia, near Smyrna, on the banks of which, it is said, Homer was born, Plin. 5, 29, 31, § 118; Stat. S. 2, 7, 33; 3, 3, 60.
Hence,
3. Mĕles, ium, f. plur., a village in the Samnite territory, Liv. 27, 1, 1.