diff --git a/README.md b/README.md index 7d1e75f..62149b5 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Websites we parsed: - [veganpeace](http://www.veganpeace.com/ingredients/ingredients.htm) - [peta](https://www.peta.org/living/food/animal-ingredients-list/) - [veganwolf](http://www.veganwolf.com/animal_ingredients.htm) +- [happycow](https://www.happycow.net/files/ingredients-to-avoid.pdf) **and we added also a few ourselves...** diff --git a/src/i18n/en/canbevegan.json b/src/i18n/en/canbevegan.json index cd2376c..ffb0eff 100644 --- a/src/i18n/en/canbevegan.json +++ b/src/i18n/en/canbevegan.json @@ -1,23 +1,53 @@ [ + "albumen", + "albumin", + "aldioxa", "allantoin", "alphahydroxyacids", + "alphahydroxy acids", + "alpha-hydroxy acids", "aminoacids", + "amino acids", + "aminosuccinate acid", + "ammonium hydrolyzed protein", + "aspartic acid", + "aspic", + "beta carotene", "biotin", + "benzoic acid", + "bristle", "calcium carbonate", + "calcium hydroxide", "calcium lactate", + "calcium oxide", + "calcium phosphate", "calcium stearate", + "capryl betaine", + "caprylamine oxide", + "caprylic acid", "carbonblack", + "cetyl alcohol", + "cetyl ether", + "cetyl palmitate", "cetylalcohol", "cetylpalmitate", "chalk", "charcoal", + "chitin", "cholecalciferol", "chymosin", + "color", + "colors", "civet", + "cortico steroid", "corticosteroid", "cortisone", + "cortisone corticosteroid", "dexpanthenol", + "diglycerides", "disodiuminosinate", + "dye", + "dyes", "e129", "e133", "e170", @@ -31,43 +61,76 @@ "e910", "e920", "enzymes", + "ergocalciferol", + "estradiol", + "fats", + "fd and c colors", + "fd&c colors", + "felt", "gluconolactone", "glucosamine", + "glutamic acid", + "glycerides", "glycerol", "glycine", + "glycogen", + "hydrocortisone", "inositol", "insulin", - "insulin", - "lactic acid from whey", - "lecithin", + "isopropyl myristate", + "l-lactic acid", + "lactic acid", "lecithin", + "leucine", + "linoleic acid", + "lipids", "lipoids", - "magnesium lanolate", - "magnesium tallowate", + "lysine", + "mono and di-glycerides", "mono-diglycerides", + "monoglycerides", + "monoglycerides glycerides", + "monosodium glutamate", + "msg", "musk", + "musk oil", + "myristal ether sulfate", + "myristic acid", "natural flavor", + "natural flavorings", + "natural sources", + "nucleic acids", + "nucleicacids", + "octyl dodecanol", "oestrogen", + "oils", + "oleic acid", "oleicacid", "oleicalcohol", + "oleoic oil", "oleth", - "peg", - "peg-13 hydrogenated tallow amide", - "peg-15 tallow polyamine", - "peg-2 milk solids", - "peg-20 tallowate", - "peg-28 glyceryl tallowate", - "peg-75 lanolin oil and wax", - "peg-8 hydrogenated fish glycerides", + "oleyl myristate", + "palmitamide", + "palmitamine", + "palmitate", + "palmitic acid", + "panthenol", + "panthenyl", "polysorbates", + "polypeptides", "potassium lactate", "progesterone", - "progesterone", "propyleneglycol", + "provitamin a", + "provitamin b-5", + "provitamin d-2", "quinoline yellow", "red 40", "rennet", "rennin", + "ribonucleic acid", + "rna", + "saccharide hydrolysate", "sorbitan beeswax", "sorbitanmonooleate", "sorbitanmonostearate", @@ -75,33 +138,50 @@ "sorbitantristearate", "sponge", "squalane", - "squalane", "squalene", + "stearamide", + "stearamine", + "stearamine oxide", "stearate", - "stearate", - "stearate", + "stearates", + "stearic acid", + "stearic hydrazide", "stearicacid", "stearin", - "stearin", - "stearyl alcohol", + "stearone", + "stearoxytrimethylsilane", + "stearoyl lactylic acid", + "stearyl acetate", "stearyl alcohol", + "stearyl alcohol sterols", + "stearyl betaine", + "stearyl caprylate", + "stearyl citrate", + "stearyl glycyrrhetinate", + "stearyl heptanoate", + "stearyl imidazoline", + "stearyl octanoate", + "stearyl stearate", + "stearyl tartrate", "stearyltartrate", "steroid", "sterol", "suede", "suet", "sunset yellow fcf", - "tallow aminopropylamine", "tartrazine", "taurine", "testosterone", + "threonine", "vellum", "velvet", "vitamin a", - "vitamin a", + "vitamin b", + "vitamin b-complex factor", "vitamin b1", "vitamin b12", "vitamin d3", + "vitamin h", "yellow5", "yellow6" -] \ No newline at end of file +] diff --git a/src/i18n/en/nonvegan.json b/src/i18n/en/nonvegan.json index d38a94f..8e46306 100644 --- a/src/i18n/en/nonvegan.json +++ b/src/i18n/en/nonvegan.json @@ -6,7 +6,6 @@ "acetylated lanolin alcohol", "acetylated lanolin ricinoleate", "acetylated tallow", - "acid", "acidophilus milk", "adrenaline", "adrenals of cattle", @@ -14,12 +13,8 @@ "adrenals of sheep", "afterbirth", "alanine", - "albumen", - "albumin", "alcloxa", - "aldioxa", "aliphatic alcohol", - "allantoin", "alligator", "alligator skin", "alpha-hydroxy acids", @@ -27,10 +22,7 @@ "amerachol", "amerchol l101", "aminiuccinate acid", - "amino acids", - "aminosuccinate acid", "ammonium caseinate", - "ammonium hydrolyzed protein", "amniotic fluid", "ampd isoteric hydrolyzed animal protein", "amylase", @@ -40,17 +32,17 @@ "animal bones", "animal collagen amino acids", "animal fat", + "animal fats", "animal fats and oils", "animal hair", "animal keratin amino acids", "animal oil", + "animal oils", "animal placenta", "animal protein derivative", "animal tissue extract", "arachidonic acid", "arachidyl proprionate", - "aspartic acid", - "aspic", "astrakhan", "back bacon", "back fat", @@ -70,7 +62,6 @@ "beeswax honeycomb", "belly bacon", "benzyltrimonium hydrolyzed animal protein", - "biotin vitamin h vitamin b factor", "bison", "blood", "blood plasma fractionation", @@ -87,6 +78,7 @@ "bone soup", "bone/bonemeal", "boneblack", + "bonemeal", "bonito", "bovine serum albumin", "brain extract", @@ -94,8 +86,8 @@ "brawn", "breakfast bacon", "bresaola", - "bristle", "bruehwurst", + "bruhwurst", "buffalo", "buffalo milk", "bushmeat", @@ -114,36 +106,37 @@ "calfskin extract", "camel milk", "canadian bacon", + "cantharadin", "cantharides tincture", "capiz", - "capryl betaine", - "caprylamine oxide", - "caprylic acid", "caprylic triglyceride", "carbamide", "caribou", "carmine", "carmine cochineal carminic acid", "carmine/carminic acid", - "carmine: cochineal. carminic acid", "carminic", "carminic acid", + "carotene", "carotene provitamin a beta carotene", "carp", "casein", - "casein caseinate sodium caseinate", + "casein caseinate", "caseinate", "caseinogen", "cashmere", + "castor", "castor castoreum", "castoreum", "catfish", "catgut", "catharidin", + "caviar", "caviar(e)", + "caviare", "cera flava", "cerebrosides", - "certain additives", + "ceteth", "ceteth-02", "ceteth-1", "ceteth-10", @@ -151,10 +144,8 @@ "ceteth-30", "ceteth-4", "ceteth-6", - "cetyl alcohol", "cetyl lactate", "cetyl myristate", - "cetyl palmitate", "chamois", "cheese", "chicken", @@ -162,9 +153,7 @@ "chicken liver", "chicken loaf", "chipped ham", - "chitin", "chitosan", - "cholecalciferol", "cholesterin", "cholesterol", "choline bitartrate", @@ -172,7 +161,6 @@ "chopped ham", "chorizo", "chymotrypsin", - "civet", "clarified butter", "clotted cream", "cochineal", @@ -182,7 +170,6 @@ "coleth-24", "collagen", "collagen hydrolysate", - "colors dyes", "condensed milk", "confectioners glaze", "cooked ham", @@ -192,9 +179,7 @@ "cornish game hen", "cortico steroid", "corticosteroid", - "cortisone", "cortisone corticosteroid", - "cortisone: see cortico steroid.", "cotechino", "cottage cheese", "crab", @@ -217,12 +202,11 @@ "demineralized whey", "deoxyribonucleic acid", "desamido animal collagen", + "desamido collagen", "desamidocollagen", "devon", - "dexpanthenol", "dicapryloyl cystine", "diethylene tricaseinamide", - "diglycerides", "dihydrocholesterol", "dihydrocholesterol octyledecanoate", "dihydrocholeth-15", @@ -235,6 +219,7 @@ "dimethyl stearamine", "dimethyl tallowamine", "disodium hydrogenatedtallowglutamate", + "disodium hydrogenated tallow glutamate", "disodium tallamido mea-sulfosuccinate", "disodium tallowaminodipropionate", "ditallowdimonium chloride", @@ -259,6 +244,7 @@ "egg", "egg albumen", "egg albumen/albumin", + "egg albumin", "egg oil", "egg powder", "egg protein", @@ -267,6 +253,7 @@ "egg yolk extract", "egg yolks", "eggs", + "eiderdown", "elastin", "elk bacon", "embryo extract", @@ -274,15 +261,16 @@ "emu oil", "epiderm oil r", "ergisterol", - "ergocalciferol", "ergosterol", - "estradiol", "estradiol benzoate", "estrogen", "estrogen estradiol", "estrogen/estradiol", "estrone", + "ethyl arachidonate", "ethyl ester of hydrolyzed animal protein", + "ethyl lipineate", + "ethyl morrhuate lipineate", "ethyl morrhuatelipineate", "ethylarachidonate", "ethylene dehydrogenated tallowamide", @@ -290,11 +278,8 @@ "ewe milk", "fat-free milk", "fat-free yogurt", - "fats", "fatty acids", - "fd and c colors", "feathers", - "felt", "fermented camel milk", "fermented cream", "fermented milk", @@ -313,19 +298,18 @@ "gelatin", "gelatin gel", "gelatin(e)", + "gelatine", "gelbwurst", "ghee", "gizzards", - "glucosamine", "glucose tyrosinase", "glucuronic acid", - "glutamic acid", "glycerides", "glycerin glycerol", - "glycerol", + "glycerin", "glyceryl lanolate", "glyceryls", - "glycogen", + "glycol", "glycreth-26", "goat", "goat cheese", @@ -357,14 +341,15 @@ "horse hair", "horseflesh", "horsehair", + "hog hair", "hot dog", "human placental protein", "human umbilical extract", "hyaluronic acid", "hydrlyzed human placental protein", - "hydrocortisone", "hydrogenated animal glyceride", "hydrogenated ditallow amine", + "hydrogenated ditallowamine", "hydrogenated honey", "hydrogenated laneth-20", "hydrogenated laneth-25", @@ -381,34 +366,34 @@ "hydrolyzed animal protein", "hydrolyzed casein", "hydrolyzed elastin", + "hydrolyzed human placental protein", "hydrolyzed keratin", "hydrolyzed milk protein", "hydrolyzed silk", "hydroxylated lanolin", "ice cream", "imidazolidinyl urea", - "insulin", "iron caseinate", "isinglass", "isobutylated lanolin", "isopropyl lanolate", - "isopropyl myristate", "isopropyl tallowatelsopropyl lanolate", + "isopropyl palmitate", "isopropylpalmitate", "isostearic hydrolyzed animal protein", "isostearoyl hydrolyzed animal protein", "jagdwurst", "jowl", "kangaroo", + "katsuobushi", "katsuobushi (okaka)", "keratin", "keratinamino acids", "l-cysteine", "l-form", - "l-form: see cysteine.", - "l-lactic acid", "lacotse-reduced milk", "lactalbumin", + "lactic acid from whey", "lactic yeasts", "lacticacid", "lactoferrin", @@ -461,44 +446,41 @@ "lanoinamidedea", "lanolin", "lanolin acid", - "lanolin acid: see lanolin.", + "lanolin acids", "lanolin alcohol", "lanolin alcohols", - "lanolin alcohols: see lanolin.", - "lanolin lanolin acids wool fat wool wax", "lanolin linoleate", "lanolin oil", "lanolin ricinoleate", "lanolin wax", "lanolin(e)", + "lanoline", "lanolin: lanolin acid", + "lanoinamide dea", "lanosterol", - "lanosterol: see lanolin.", "lanosterols", "lard", "lard glyceride", "lauroyl hydrolyzed animal protein", "leather", - "leather suede calfskin sheepskinalligator skin other types of skin", + "lecithin choline bitartrate", "lecithin cholinebitartrate", - "leucine", - "linoleic acid", "lipase", - "lipids", - "lipoids lipids", "liver", "liver extract", "liverwurst", "lobster", "low fat milk", "low fat yogurt", + "luna sponge", "lunasponge", "luncehon loaf", "lunch meats", "luncheon meats", - "lysine", "mackerel", "magnesium caseinate", + "magnesium lanolate", + "magnesium tallowate", "malted milk", "mammarian extract", "marine oil", @@ -509,12 +491,14 @@ "meat loaf", "meatball", "mechanically separated chicken", + "menhaden oil", "methionine", "mettwurst", "milk", "milk chocolate", "milk derivative", "milk of mammals", + "milk powder", "milk protein", "milk skin", "milk sugar", @@ -527,42 +511,29 @@ "mohair", "molluscan shellfish", "monkfish", - "mono and di-glycerides", - "monoglycerides glycerides", - "monoglycerides glycerides (see glycerin)", "moose", "mortadella", "mossbunker oil", + "mucopolysaccharides", "mullet", "muscle extract", - "musk", - "musk (oil)", "musk ambrette", "mussel", "mussels", "mutton", - "myristal ether sulfate", "myristate acid", - "myristic acid", "myristoyl hydrolyzed animal protein", "myristyl", "myristyls", "natural butter flavor", - "natural flavorings", "natural red 4", - "natural sources", "neck", "nonfat milk", - "note:", "nougat", - "nucleicacids", "ocenol", "octopus", - "octyl dodecanol", - "oils", + "okaka", "oleamidopropyl dimethylamine hydrolyzed animal protein", - "oleic acid", - "oleoic oil", "oleostearin", "oleostearine", "oleoyl hydrolyzed animal protein", @@ -571,7 +542,6 @@ "oleyl betatine", "oleyl imidazoline", "oleyl lanolate", - "oleyl myristate", "oleyl oleate", "oleyl stearate", "oleylalcohol ocenol", @@ -585,22 +555,25 @@ "ovalbumin", "ovarian extract", "ox bile", + "ox gall", "oxgall", "oyster", - "palmitamide", - "palmitamine", - "palmitate", - "palmitic acid", + "oysters", "palmitoyl hydrolyzed milk protein", - "palmitoyl hydrolyzedanimal protein", + "palmitoyl hydrolyzed animal protein", "pancetta", - "panthenol dexpanthenol vitamin b-complex factor provitamin b-5", - "panthenyl", "paracasein", "partridge", "pasteurized milk", "pearl", "pearl essence", + "peg-13 hydrogenated tallow amide", + "peg-15 tallow polyamine", + "peg-2 milk solids", + "peg-20 tallowate", + "peg-28 glyceryl tallowate", + "peg-75 lanolin oil and wax", + "peg-8 hydrogenated fish glycerides", "pentahydrosqualene", "pepsin", "perhydrosqualene", @@ -609,7 +582,6 @@ "picnic shoulder", "pigskin extract", "placenta", - "placenta placenta polypeptides protein afterbirth", "placenta polypeptides protein", "placental enzymes", "placental extract", @@ -617,13 +589,11 @@ "plaice", "pogy oil", "pollock", + "poltethylene", "poltethylene cetyl ether", "polyglycerol", - "polyglyceryl-2lanolin alcohol ether", - "polypeptides", + "polyglyceryl-2 lanolin alcohol ether", "polypeptides protein", - "polysorbates", - "polytetylene glycerol/glycol/peg", "porcine pancreas", "pork", "pork fat", @@ -633,17 +603,18 @@ "potassium undecylenoyl hydrolyzed animal protein", "poultry", "ppg-12-peg-50 lanolin", - "ppg-2,-5, -10. -20, -30 lanolinalcohol ethers", + "ppg-2 methyl ether", + "ppg-5-ceteth-20", + "ppg-10", + "ppg-20 methyl glucose ether", + "ppg-30 cetyl ether", "ppg-30 lanolin ether", "prawn", "pregnenolone acetate", "pristane", - "progesterone", "propolis", "prosciutto", "provitamin a", - "provitamin b-5", - "provitamin d-2", "purcelline oil syn", "quail", "quaternium 27", @@ -651,22 +622,16 @@ "red meat", "reduced fat milk", "reduced fat yogurt", - "rennet", "rennet casein", - "rennet rennin", - "rennin", "resinous glaze", "reticulin", "retinol", - "ribonucleic acid", - "rna ribonucleic acid", "roast beef", "roast pork", "roe", "royal jelly", "sable", "sable brushes", - "saccharide hydrolysate", "saccharide isomerate", "salami", "salceson", @@ -684,6 +649,7 @@ "shark liver oil", "shark-liver oil", "sheep milk", + "sheep skin", "sheepskin", "shellac", "shellac resinous glaze", @@ -697,6 +663,7 @@ "silk powder", "silk silk powder", "skim milk", + "skin", "slab bacon", "sliced meats", "smoked ham", @@ -712,6 +679,7 @@ "sodium tallow sulfate", "sodium tallowate", "sodium undecylenate", + "sodium steroyl lactylate", "sodiumsteroyl lactylate", "soluble collagen", "sour cream", @@ -726,38 +694,15 @@ "spleen extract", "sponge (luna and sea)", "squab", - "squalane", - "squalene", "squid", "squirrel", "steak", - "stearamide", - "stearamine", - "stearamine oxide", - "stearates", - "stearic acid", - "stearic hydrazide", - "stearin", - "stearone", - "stearoxytrimethylsilane", - "stearoyl lactylic acid", - "stearyl acetate", - "stearyl alcohol sterols", - "stearyl betaine", - "stearyl caprylate", - "stearyl citrate", - "stearyl glycyrrhetinate", - "stearyl heptanoate", - "stearyl imidazoline", - "stearyl octanoate", - "stearyl stearate", "stearyldimethyl amine", "steroids sterols", "sterols", "stewing steak", "stilton", "streaky bacon", - "suede", "sweet dairy whey", "sweet whey", "sweetbreads", @@ -768,15 +713,17 @@ "tallow amide", "tallow amine", "tallow amine oxide", + "tallow aminopropylamine", "tallow fatty alcohol", "tallow glycerides", "tallow hydroxyethal imidazoline", "tallow imidazoline", - "tallow tallow fatty alcohol stearic acid", "tallow trimonium chloride - tallow", "tallowamidopropylamine oxide", "talloweth-6", + "tallowmide dea", "tallowmide dea and mea", + "tallowmide mea", "tallowmidopropyl hydroxysultaine", "tallowminopropylamine", "tallowmphoacete", @@ -787,7 +734,6 @@ "tea-myristol hydrolyzed animal protein", "tea-undecylenoyl hydrolyzed animal protein", "testicular extract", - "threonine", "thuringian sausage", "tilapia", "tongue", @@ -815,10 +761,7 @@ "veal", "veal loaf", "venison", - "vitamin a", - "vitamin b-complex factor", "vitamin d ergocalciferol vitamin d", - "vitamin d3", "vitamin h", "vitaminb", "vitaminb factor", @@ -840,4 +783,5 @@ "yoghurt", "yogurt", "zinc caseinate", - "zinc hydrolyzed animal protein"] + "zinc hydrolyzed animal protein" +] diff --git a/test/IsVegan.test.js b/test/IsVegan.test.js index c0ffda7..c574b37 100644 --- a/test/IsVegan.test.js +++ b/test/IsVegan.test.js @@ -21,7 +21,7 @@ test('should be vegan ingredient if not all its words are in non-vegan list', () }); test('should NOT be vegan ingredient list', () => { - expect(isVegan.isVeganIngredientList(['aspic', 'albumin'])).toBe(false); + expect(isVegan.isVeganIngredientList(['abalone', 'anchovies'])).toBe(false); }); test('should be vegan ingredient list', () => { @@ -36,6 +36,6 @@ test('should NOT contain non-vegan ingredient list', () => { test('should contain non-vegan ingredient list', () => { expect( - isVegan.containsNonVeganIngredients(['aspic', 'albumin', 'soy']) - ).toEqual(expect.arrayContaining(['aspic', 'albumin'])); + isVegan.containsNonVeganIngredients(['abalone', 'anchovies', 'soy']) + ).toEqual(expect.arrayContaining(['abalone', 'anchovies'])); });