All source files

src/word-data.mjs

Download raw file

import {FIVE_LETTER_WORDS} from './five-letter-words.mjs';

// Offensive-word denylist for guesses and answers. Scope and boundary decisions
// are documented in data/scowl/SOURCE.md; every entry must be five lowercase letters.
export const OFFENSIVE_WORDS = [
  'bitch','chink','cocks','coons','cunts','dagos','darky','dicks','dildo','dykes',
  'faggy','fagot','fucks','glans','gooks','hebes','honky','hussy','hymie','kikes',
  'kraut','labia','limey','milfs','negro','nigga','pakis','penis','pommy','poofs',
  'porno','pubes','pubic','pubis','pussy','raped','rapes','semen','sissy','sluts',
  'sperm','spics','squaw','titty','twats','vulva','wanks','whore'
];

const offensive = new Set(OFFENSIVE_WORDS);

const PUZZLES = [
  ['apple','fruit','水果','A round fruit with firm flesh and a central core.','一种果肉紧实、中心有核的圆形水果。'],
  ['plant','nature','自然','A living thing that usually grows in soil.','一种通常在土壤中生长的生物。'],
  ['crane','machine','机械','A tall machine used to lift heavy objects.','一种用于吊起重物的高大机械。'],
  ['bloom','nature','自然','A flower, or the process of opening into flower.','花朵,或开花的过程。'],
  ['honey','food','食物','A sweet substance made by bees.','蜜蜂酿造的甜味物质。'],
  ['sheep','animal','动物','A farm animal raised for wool and meat.','一种为羊毛和肉而饲养的农场动物。'],
  ['house','place','场所','A building made for people to live in.','供人居住的建筑物。'],
  ['water','nature','自然','A clear liquid that people, animals and plants need.','人、动物和植物都需要的清澈液体。'],
  ['bread','food','食物','A baked food made mainly from flour and water.','主要由面粉和水烘焙而成的食物。'],
  ['chair','object','物品','A seat for one person, usually with a back.','通常带靠背、供一人使用的座椅。'],
  ['table','object','物品','Furniture with a flat top and legs.','有平面和支腿的家具。'],
  ['light','nature','自然','The energy that lets us see things.','让我们看见事物的能量。'],
  ['music','art','艺术','Organized sounds made for expression or enjoyment.','为表达或欣赏而组织起来的声音。'],
  ['river','nature','自然','A large natural stream flowing toward a sea or lake.','流向海洋或湖泊的大型天然水流。'],
  ['ocean','nature','自然','A very large body of salt water.','一片非常大的咸水体。'],
  ['cloud','weather','天气','A visible mass of water droplets in the sky.','天空中可见的水滴聚集物。'],
  ['storm','weather','天气','Severe weather with strong wind and often rain.','伴有强风、通常还有降雨的恶劣天气。'],
  ['earth','nature','自然','Our planet, or the soil on its surface.','我们的行星,或行星表面的土壤。'],
  ['world','place','场所','The earth and all its people and places.','地球及其所有的人和地方。'],
  ['stone','nature','自然','A small piece of hard mineral matter.','一小块坚硬的矿物物质。'],
  ['flame','nature','自然','The visible glowing part of a fire.','火中可见的发光部分。'],
  ['woods','place','场所','An area of land covered with many trees.','长满树木的一片土地。'],
  ['beach','place','场所','A sandy or pebbly shore beside water.','水边由沙或卵石构成的岸地。'],
  ['field','place','场所','An open area of land used for crops, animals or sport.','用于作物、动物或运动的开阔土地。'],
  ['grass','nature','自然','Low green plants covering lawns and fields.','覆盖草坪和田野的低矮绿色植物。'],
  ['maple','nature','自然','A tree known for lobed leaves and sweet sap.','一种以裂片叶和甜树汁闻名的树。'],
  ['olive','food','食物','A small oval fruit often pressed for oil.','一种常用于榨油的椭圆形小果实。'],
  ['berry','food','食物','A small juicy fruit without a stone.','一种没有硬核的多汁小果实。'],
  ['lemon','food','食物','A sour yellow citrus fruit.','一种味道酸的黄色柑橘类水果。'],
  ['peach','food','食物','A soft juicy fruit with fuzzy skin and a large stone.','一种果皮有绒毛、果核大的柔软多汁水果。'],
  ['grape','food','食物','A small fruit growing in clusters on vines.','成串生长在藤蔓上的小果实。'],
  ['onion','food','食物','A pungent layered bulb used in cooking.','烹饪中使用的辛辣层状鳞茎。'],
  ['salad','food','食物','A dish of mixed raw or cooked ingredients, often vegetables.','由多种生或熟食材拌成的菜肴,常有蔬菜。'],
  ['pizza','food','食物','A baked flat bread topped with cheese and other ingredients.','铺有奶酪和其他配料的烤制扁面包。'],
  ['pasta','food','食物','Italian dough shapes often boiled and served with sauce.','通常煮熟并配酱食用的意大利面制品。'],
  ['sugar','food','食物','Sweet crystals used in food and drinks.','用于食物和饮料的甜味晶体。'],
  ['spice','food','食物','An aromatic plant substance used to flavor food.','用于给食物调味的芳香植物物质。'],
  ['tiger','animal','动物','A large striped wild cat.','一种有条纹的大型野生猫科动物。'],
  ['horse','animal','动物','A large hoofed animal often ridden by people.','一种常供人骑乘的大型有蹄动物。'],
  ['mouse','animal','动物','A small rodent with a pointed nose and long tail.','一种尖鼻长尾的小型啮齿动物。'],
  ['eagle','animal','动物','A large bird of prey with strong eyesight.','一种视力敏锐的大型猛禽。'],
  ['shark','animal','动物','A large predatory fish with cartilage instead of bones.','一种骨骼由软骨构成的大型掠食鱼类。'],
  ['whale','animal','动物','A very large marine mammal.','一种非常大的海洋哺乳动物。'],
  ['snake','animal','动物','A long legless reptile.','一种细长的无腿爬行动物。'],
  ['bunny','animal','动物','An informal word for a rabbit.','对兔子的亲昵称呼。'],
  ['puppy','animal','动物','A young dog.','幼犬。'],
  ['kitty','animal','动物','An informal word for a cat or kitten.','对猫或幼猫的亲昵称呼。'],
  ['goose','animal','动物','A large water bird with a long neck.','一种长颈大型水鸟。'],
  ['otter','animal','动物','A playful mammal that swims and eats fish.','一种善于游泳、以鱼为食的活泼哺乳动物。'],
  ['camel','animal','动物','A desert mammal with one or two humps.','有一或两个驼峰的沙漠哺乳动物。'],
  ['phone','object','物品','A device used to call or communicate with people.','用于与人通话或交流的设备。'],
  ['clock','object','物品','A device that displays or measures time.','显示或计量时间的设备。'],
  ['watch','object','物品','A small timepiece worn on the wrist.','戴在手腕上的小型计时器。'],
  ['paper','object','物品','Thin material used for writing, printing or wrapping.','用于书写、印刷或包装的薄片材料。'],
  ['novel','book','书籍','A long fictional story in book form.','书册形式的长篇虚构故事。'],
  ['story','art','艺术','An account of connected events, real or imagined.','对真实或想象的相连事件的叙述。'],
  ['movie','art','艺术','A motion picture made for cinema, television or streaming.','为影院、电视或流媒体制作的影片。'],
  ['radio','object','物品','A device or medium for receiving broadcast sound.','接收广播声音的设备或媒介。'],
  ['photo','art','艺术','An image made with a camera.','用相机拍摄的图像。'],
  ['brush','object','物品','A tool with bristles used for cleaning, painting or grooming.','带刷毛、用于清洁、绘画或梳理的工具。'],
  ['knife','object','物品','A tool with a sharp blade for cutting.','带锋利刀刃、用于切割的工具。'],
  ['spoon','object','物品','A utensil with a shallow bowl used for eating or stirring.','带浅勺头、用于进食或搅拌的餐具。'],
  ['plate','object','物品','A flat dish from which food is eaten.','用于盛食物的浅平盘。'],
  ['towel','object','物品','Absorbent cloth used for drying.','用于擦干的吸水织物。'],
  ['sheet','object','物品','A broad thin piece of cloth, paper or other material.','一大片薄布、纸或其他材料。'],
  ['shirt','clothing','衣物','A garment covering the upper body.','遮盖上半身的衣物。'],
  ['denim','clothing','衣物','A sturdy cotton fabric often used for jeans.','一种常用于制作牛仔裤的结实棉布。'],
  ['dress','clothing','衣物','A one-piece garment with a top and skirt.','上衣与裙身连在一起的服装。'],
  ['skirt','clothing','衣物','A garment hanging from the waist.','从腰部向下垂落的服装。'],
  ['apron','clothing','衣物','A protective garment tied around the waist and worn in front.','系在腰间、遮在身前的防护衣物。'],
  ['tunic','clothing','衣物','A loose garment covering the body, often extending to the hips.','一种宽松、通常长至臀部的上衣。'],
  ['glove','clothing','衣物','A covering for the hand with separate fingers.','分手指的手部覆盖物。'],
  ['scarf','clothing','衣物','A strip of cloth worn around the neck or head.','围在颈部或头部的长条织物。'],
  ['jeans','clothing','衣物','Trousers made from denim.','由牛仔布制成的裤子。'],
  ['train','transport','交通','Connected rail vehicles pulled by an engine.','由机车牵引、相互连接的轨道车辆。'],
  ['plane','transport','交通','A powered aircraft with fixed wings.','带固定机翼的动力飞行器。'],
  ['truck','transport','交通','A road vehicle designed to carry loads.','用于运载货物的道路车辆。'],
  ['ferry','transport','交通','A boat or ship that carries people or vehicles across water.','载人或车辆过水的船。'],
  ['metro','transport','交通','An urban railway system, often underground.','城市轨道交通系统,通常位于地下。'],
  ['canoe','transport','交通','A narrow light boat moved with paddles.','用桨划行的窄而轻的船。'],
  ['hotel','place','场所','A business providing rooms for travelers.','为旅行者提供房间的营业场所。'],
  ['store','place','场所','A place where goods are sold.','出售商品的场所。'],
  ['class','place','场所','A group of students learning together, or their lesson.','一起学习的一组学生,或他们的课程。'],
  ['dance','activity','活动','Moving rhythmically, often to music.','通常随着音乐有节奏地移动身体。'],
  ['smile','expression','表情','A pleased expression made by raising the mouth corners.','嘴角上扬形成的愉悦表情。'],
  ['laugh','expression','表情','To make sounds showing amusement or joy.','发出表示愉悦或快乐的声音。'],
  ['write','activity','活动','To form letters, words or symbols on a surface.','在表面上写出字母、文字或符号。'],
  ['speak','activity','活动','To say words using your voice.','用声音说出词语。'],
  ['learn','activity','活动','To gain knowledge or skill through study or experience.','通过学习或经历获得知识或技能。'],
  ['think','activity','活动','To use your mind to form ideas or make decisions.','运用头脑形成想法或作出决定。'],
  ['actor','people','人物','A person who performs a role on stage or screen.','在舞台或银幕上扮演角色的人。'],
  ['adobe','material','材料','Sun-dried clay used to build houses in dry regions.','干旱地区用于建房、经日晒制成的黏土砖。'],
  ['alarm','object','物品','A device that makes a loud sound to warn people.','发出响亮声音以警告人们的装置。'],
  ['album','media','媒体','A collection of songs or photographs released together.','一起发行的一组歌曲或照片。'],
  ['alien','being','存在','A being from another planet.','来自另一颗行星的生命。'],
  ['badge','object','物品','A small flat pin that shows who you are.','表明身份的小巧扁平别针。'],
  ['bagel','food','食物','A ring-shaped bread roll boiled before baking.','烘烤前先水煮的环形面包。'],
  ['bacon','food','食物','Salted or smoked meat from the back or sides of a pig.','用猪背或猪肋部位腌制或熏制的肉。'],
  ['banjo','music','音乐','A stringed instrument with a round body and long neck.','圆腹长颈的弦乐器。'],
  ['bench','object','物品','A long seat for several people, often outdoors.','常设在户外、可供数人同坐的长椅。'],
  ['cache','object','物品','A hidden store of supplies or data.','隐藏存放的物资或数据。'],
  ['cadet','people','人物','A young person training to be an officer.','正在受训成为军官的年轻人。'],
  ['canal','place','场所','A long man-made waterway for boats.','供船只通行的长条人工水道。'],
  ['carol','music','音乐','A joyful song sung at Christmas.','圣诞节时唱的欢快歌曲。'],
  ['catch','action','动作','To grab something moving through the air.','接住空中移动的物体。'],
  ['cello','music','音乐','A large stringed instrument held between the knees.','夹在双膝之间演奏的大型弦乐器。'],
  ['debut','event','事件','The first public appearance of a performer.','表演者首次公开亮相。'],
  ['decoy','object','物品','A fake object used to lure someone away.','用来把人引开的假物件。'],
  ['delay','time','时间','A period of waiting before something happens.','事情发生前的一段等待时间。'],
  ['delta','nature','自然','The triangular area where a river splits before the sea.','河流入海前分成多支形成的三角形地带。'],
  ['doubt','state','状态','A feeling of not being sure.','不确定的感觉。'],
  ['eager','state','状态','Very keen to do something.','非常渴望做某事的。'],
  ['eight','number','数字','The number that comes after seven.','排在七之后的数字。'],
  ['elder','people','人物','A member of a family or community who is respected for experience and wisdom.','家族或群体中因经验与智慧而受敬重的人。'],
  ['elite','people','人物','A small group seen as the best of its kind.','被视为同类中最优秀的一小群人。'],
  ['facet','quality','品质','One side or aspect of something.','事物的一个方面。'],
  ['faint','quality','品质','Barely noticeable.','几乎察觉不到的。'],
  ['fatal','quality','品质','Causing death.','导致死亡的。'],
  ['fault','quality','品质','A mistake or a weakness in something.','错误,或事物中的缺陷。'],
  ['fifth','number','数字','Coming after the fourth.','排在第四之后的。'],
  ['ghost','being','存在','The spirit of a dead person in stories.','故事中死去之人的灵魂。'],
  ['giant','being','存在','A very large person or creature in stories.','故事中极其巨大的人或生物。'],
  ['giddy','state','状态','Feeling dizzy and light-headed.','感到头晕目眩的。'],
  ['globe','object','物品','A round model of the earth.','地球的球形模型。'],
  ['gloom','state','状态','A feeling of sadness and darkness.','悲伤而昏暗的感觉。'],
  ['habit','activity','活动','Something you do often without thinking.','经常不假思索就会做的事。'],
  ['handy','quality','品质','Useful and easy to reach.','有用且容易拿到的。'],
  ['harsh','quality','品质','Unkind or unpleasantly severe.','刻薄或严厉得令人不适的。'],
  ['haste','activity','活动','Hurry, especially when it causes mistakes.','匆忙,尤其指因此出错。'],
  ['hatch','action','动作','To break out of an egg.','破壳而出。'],
  ['ideal','quality','品质','Perfect for a particular purpose.','非常适合特定用途的。'],
  ['idiom','language','语言','A phrase whose meaning is not literal.','含义并非字面的短语。'],
  ['image','media','媒体','A picture or likeness of something.','某物的图像或相似形象。'],
  ['irony','quality','品质','Humor based on saying the opposite of what is meant.','说反话来表达的幽默。'],
  ['jolly','quality','品质','Cheerful and full of fun.','愉快而充满乐趣的。'],
  ['joker','people','人物','A person who likes to make people laugh.','爱逗人发笑的人。'],
  ['judge','people','人物','A person who decides cases in a court.','在法庭上裁决案件的人。'],
  ['karma','concept','概念','The idea that actions shape your future.','认为行为决定未来的观念。'],
  ['kebab','food','食物','Small pieces of meat cooked on a skewer.','串在签子上烤制的肉块。'],
  ['knock','action','动作','To hit a door to get attention.','敲门以引起注意。'],
  ['label','object','物品','A small tag giving information about something.','标明某物信息的小标签。'],
  ['large','quality','品质','Said of a size that does not fit in a small space.','尺码大到小空间放不下的。'],
  ['laser','object','物品','A device that makes a narrow beam of light.','发出细窄光束的装置。'],
  ['layer','object','物品','One thickness of material laid over another.','覆盖在另一层材料上的一层物质。'],
  ['magic','art','艺术','Tricks that seem to break the laws of nature.','看似违反自然规律的戏法。'],
  ['major','quality','品质','Very important, or greater in size than others.','非常重要或规模很大的。'],
  ['march','activity','活动','To walk with regular steps in a group.','成群按整齐步伐行走。'],
  ['match','object','物品','A small stick that makes fire when struck.','摩擦后能点火的细木棒。'],
  ['metal','material','材料','A hard shiny substance such as iron or gold.','铁或金之类坚硬发亮的物质。'],
  ['naked','state','状态','Not wearing any clothes.','没有穿任何衣服的。'],
  ['nasty','quality','品质','Very unpleasant or unkind.','令人很不快或刻薄的。'],
  ['nerve','body','身体','A fibre that carries signals through the body.','在体内传递信号的纤维。'],
  ['night','time','时间','The dark hours between evening and morning.','傍晚到清晨之间的黑暗时段。'],
  ['offer','action','动作','To present something for someone to accept.','提出某物供人接受。'],
  ['often','time','时间','Many times, on most occasions.','许多次,在多数情况下。'],
  ['order','action','动作','To ask a restaurant or shop for food or goods.','向餐馆或商店点餐或订货。'],
  ['organ','body','身体','A part of the body with a special job.','身体中承担特定功能的部分。'],
  ['panel','object','物品','A flat board set into a surface.','嵌在表面中的平板。'],
  ['panic','state','状态','Sudden strong fear that stops clear thought.','使人无法清晰思考的突然强烈恐惧。'],
  ['party','event','事件','A social gathering for fun.','为娱乐而举行的社交聚会。'],
  ['peace','state','状态','A time when there is no war.','没有战争的时期。'],
  ['pedal','object','物品','A lever pressed with the foot.','用脚踩踏的杠杆。'],
  ['piano','music','音乐','A large keyboard instrument with strings and hammers.','带琴键、琴弦和琴槌的大型乐器。'],
  ['quack','sound','声音','The sound a duck makes.','鸭子发出的叫声。'],
  ['queen','people','人物','A female ruler of a country.','一个国家的女性统治者。'],
  ['quick','quality','品质','Moving or happening fast.','移动或发生得很快的。'],
  ['raise','action','动作','To lift something to a higher position.','把某物举到更高的位置。'],
  ['ranch','place','场所','A large farm where cattle or horses are kept.','饲养牛或马的大型农场。'],
  ['rapid','quality','品质','Happening in a very short time.','发生得非常快的。'],
  ['reach','action','动作','To stretch out in order to touch something.','伸手去够到某物。'],
  ['ready','state','状态','Prepared for what is about to happen.','为即将发生的事做好准备的。'],
  ['route','transport','交通','A way from one place to another.','从一个地方到另一个地方的路径。'],
  ['saint','people','人物','A person honored for great holiness.','因极其圣洁而受尊崇的人。'],
  ['sauce','food','食物','A thick liquid poured over food.','浇在食物上的浓稠液体。'],
  ['scene','media','媒体','A part of a play or film.','戏剧或影片中的一段。'],
  ['scent','nature','自然','A smell, often a pleasant one.','气味,通常指好闻的。'],
  ['score','activity','活动','The number of points in a game.','比赛中的得分。'],
  ['scrap','object','物品','A small leftover piece.','剩下的一小块。'],
  ['sense','ability','能力','The power to notice or understand something.','察觉或理解事物的能力。'],
  ['serve','action','动作','To give food or drink to someone.','把食物或饮料端给某人。'],
  ['shade','nature','自然','An area away from direct sunlight.','避开阳光直射的地方。'],
  ['taste','sense','感觉','The flavour of food in your mouth.','食物在口中的味道。'],
  ['teach','activity','活动','To help someone gain knowledge.','帮助他人获得知识。'],
  ['thank','action','动作','To tell someone you are grateful.','向某人表示感激。'],
  ['theme','art','艺术','The main subject of a work or talk.','作品或谈话的主要题材。'],
  ['thick','quality','品质','Wide from one side to the other, or hard to see through.','两侧之间距离大的,或不易看透的。'],
  ['thing','object','物品','An object or an idea being talked about.','被谈及的物体或想法。'],
  ['third','number','数字','Coming after the second.','排在第二之后的。'],
  ['title','media','媒体','The name of a book, film or song.','书、电影或歌曲的名称。'],
  ['tooth','body','身体','One of the hard parts in the mouth.','口腔中坚硬的部分之一。'],
  ['under','place','场所','In a lower position than something.','位置低于某物的。'],
  ['unite','action','动作','To join together as one.','联合成为一体。'],
  ['until','time','时间','Up to the point when something happens.','直到某事发生的那一刻。'],
  ['upset','state','状态','Unhappy or worried about something.','为某事感到不快或担忧的。'],
  ['vague','quality','品质','Not clear or exact.','不清楚或不精确的。'],
  ['valid','quality','品质','Acceptable under the rules.','符合规则因而可接受的。'],
  ['value','quality','品质','The worth of something.','某物所具有的价值。'],
  ['vapor','nature','自然','A mist of tiny drops in the air.','空气中细小液滴形成的雾。'],
  ['venue','place','场所','The place where an event takes place.','活动举行的地点。'],
  ['wacky','quality','品质','Funny in a strange way.','古怪而滑稽的。'],
  ['waist','body','身体','The narrow part of the body above the hips.','身体上位于臀部上方的纤细部位。'],
  ['weary','state','状态','Very tired.','非常疲倦的。'],
  ['weave','activity','活动','To make cloth by crossing threads.','交错编织线材制成布料。'],
  ['wheel','transport','交通','A round part that turns to move a vehicle.','转动后使车辆前进的圆形部件。'],
  ['where','place','场所','In or at which place.','在哪个地方。'],
  ['yearn','state','状态','To want something very much.','非常渴望某物。'],
  ['yield','action','动作','To produce a result, or to give way.','产生结果,或让步。'],
  ['young','time','时间','Having lived only a short time.','只活了很短时间的。'],
  ['zilch','quantity','数量','Nothing at all.','什么都没有。'],
  ['zonal','quality','品质','Relating to a particular area.','与特定区域有关的。']
];

export const ANSWER_SCHEDULE = PUZZLES.map(([word, categoryEn, categoryZh, clueEn, clueZh], index) => ({
  date: new Date(Date.UTC(2026, 11, 5 + index)).toISOString().slice(0, 10),
  word, categoryEn, categoryZh, clueEn, clueZh, reviewed: true
}));

export const EXTRA_GUESSES = [
  'alley','alert','angel','agent','abide','adept','azure','awake','aside','amuse',
  'arise','aisle','sloth','crisp','brave','blobs','lolly','allot','loose','sooth',
  'dream','sleep','paint','build','share','solve','guess','focus','relax','enjoy',
  'start','close','enter','leave','bring','carry','catch','throw','climb','swing',
  'slide','shine','float','drift','happy','angry','proud','smart','quick','quiet',
  'sweet','fresh','clean','clear','sharp','rough','solid','empty','heavy','silly',
  'funny','lucky','daily','every','again','there','their','about','would','could',
  'shall','right','wrong','great','small','large','young','older','first','lasts'
];

export function buildAllowedWords({fiveLetterWords=FIVE_LETTER_WORDS, answerWords=ANSWER_SCHEDULE.map(entry => entry.word), extraGuesses=EXTRA_GUESSES}={}) {
  return [...new Set([...fiveLetterWords, ...answerWords, ...extraGuesses])].filter(word => !offensive.has(word));
}

export const ALLOWED_WORDS = buildAllowedWords();

export function puzzleForDate(date) {
  if (!ANSWER_SCHEDULE.length) return null;
  const key = date.toISOString().slice(0, 10);
  const index = Math.round((Date.parse(key + 'T00:00:00Z') - Date.parse(ANSWER_SCHEDULE[0].date + 'T00:00:00Z')) / 86400000);
  if (index < 0 || index >= ANSWER_SCHEDULE.length) return null;
  return {entry: ANSWER_SCHEDULE[index], puzzleNumber: index + 1};
}