Talmud for Ketubot 1:10
אָמַר רַבִּי יוֹסֵי, מַעֲשֶׂה בְתִינוֹקֶת שֶׁיָּרְדָה לְמַלֹּאת מַיִם מִן הָעַיִן, וְנֶאֱנְסָה. אָמַר רַבִּי יוֹחָנָן בֶּן נוּרִי, אִם רֹב אַנְשֵׁי הָעִיר מַשִּׂיאִין לַכְּהֻנָּה, הֲרֵי זוֹ תִנָּשֵׂא לַכְּהֻנָּה:
R. Yossi said: It once happened that a child went to draw water from the well and was raped. R. Yochanan b. Nuri said: If the majority of the men of the city (are kasher and their daughters and widows may be) married to the priesthood, she may marry to the priesthood. [Even though one majority is generally sufficient, "pedigree" was accorded special status, and in this instance the rabbis required two majorities — the majority of (traveling) companies passing through there (as being pedigreed) and "the majority of the city." Women are not married ab initio to the priesthood without two majorities. And this is the halachah.]
Jerusalem Talmud Yevamot
“Desecrated” children are children of the marriage of a Cohen with a divorcee or a prostitute; such a marriage is not incestuous and stringent exclusionary rules do not apply.. This refers to what we have stated there: “Ten classes returned from Babylonia.83Mishnah Qiddushin 4:1: “Ten classes returned from Babylonia, Cohanim, Levites, Israel, desecrated, proselytes, freed slaves, bastards, Gibeonites, people of unknown paternity, and foundlings. Cohanim, Levites, Israel may marry one another. Levites, Israel, desecrated, proselytes, and freed slaves, may marry one another. Proselytes, freed slaves, bastards, Gibeonites, people of unknown paternity, and foundlings, may marry one another.”
For R. Eliezer ben Jacob, bastards, people of unknown paternity, and foundlings, all form one group.
In Mishnah Ketubot 1:8, Rabban Gamliel and R. Eliezer hold that the unmarried mother of a child of unknown paternity is believed if she asserts that the father was one of the first six categories (or a Gentile). For them, the special category of “child of unknown paternity” does not exist since the child inherits the status of his mother.” In the opinion of Rebbi Eliezer ben Jacob, eight. In the opinion of Rabban Gamliel and Rebbi Eliezer, nine. In the opinion of the rabbis, ten.