Coverage for langsmith/evaluation/_name_generation.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.10.1, created at 2025-12-11 16:15 -0800

1import random 

2 

3adjectives = [ 

4 "abandoned", 

5 "aching", 

6 "advanced", 

7 "ample", 

8 "artistic", 

9 "back", 

10 "best", 

11 "bold", 

12 "brief", 

13 "clear", 

14 "cold", 

15 "complicated", 

16 "cooked", 

17 "crazy", 

18 "crushing", 

19 "damp", 

20 "dear", 

21 "definite", 

22 "dependable", 

23 "diligent", 

24 "drab", 

25 "earnest", 

26 "elderly", 

27 "enchanted", 

28 "essential", 

29 "excellent", 

30 "extraneous", 

31 "fixed", 

32 "flowery", 

33 "formal", 

34 "fresh", 

35 "frosty", 

36 "giving", 

37 "glossy", 

38 "healthy", 

39 "helpful", 

40 "impressionable", 

41 "kind", 

42 "large", 

43 "left", 

44 "long", 

45 "loyal", 

46 "mealy", 

47 "memorable", 

48 "monthly", 

49 "new", 

50 "notable", 

51 "only", 

52 "ordinary", 

53 "passionate", 

54 "perfect", 

55 "pertinent", 

56 "proper", 

57 "puzzled", 

58 "reflecting", 

59 "respectful", 

60 "roasted", 

61 "scholarly", 

62 "shiny", 

63 "slight", 

64 "sparkling", 

65 "spotless", 

66 "stupendous", 

67 "sunny", 

68 "tart", 

69 "terrific", 

70 "timely", 

71 "unique", 

72 "upbeat", 

73 "vacant", 

74 "virtual", 

75 "warm", 

76 "weary", 

77 "whispered", 

78 "worthwhile", 

79 "yellow", 

80] 

81 

82nouns = [ 

83 "account", 

84 "acknowledgment", 

85 "address", 

86 "advertising", 

87 "airplane", 

88 "animal", 

89 "appointment", 

90 "arrival", 

91 "artist", 

92 "attachment", 

93 "attitude", 

94 "availability", 

95 "backpack", 

96 "bag", 

97 "balance", 

98 "bass", 

99 "bean", 

100 "beauty", 

101 "bibliography", 

102 "bill", 

103 "bite", 

104 "blossom", 

105 "boat", 

106 "book", 

107 "box", 

108 "boy", 

109 "bread", 

110 "bridge", 

111 "broccoli", 

112 "building", 

113 "butter", 

114 "button", 

115 "cabbage", 

116 "cake", 

117 "camera", 

118 "camp", 

119 "candle", 

120 "candy", 

121 "canvas", 

122 "car", 

123 "card", 

124 "carrot", 

125 "cart", 

126 "case", 

127 "cat", 

128 "chain", 

129 "chair", 

130 "chalk", 

131 "chance", 

132 "change", 

133 "channel", 

134 "character", 

135 "charge", 

136 "charm", 

137 "chart", 

138 "check", 

139 "cheek", 

140 "cheese", 

141 "chef", 

142 "cherry", 

143 "chicken", 

144 "child", 

145 "church", 

146 "circle", 

147 "class", 

148 "clay", 

149 "click", 

150 "clock", 

151 "cloth", 

152 "cloud", 

153 "clove", 

154 "club", 

155 "coach", 

156 "coal", 

157 "coast", 

158 "coat", 

159 "cod", 

160 "coffee", 

161 "collar", 

162 "color", 

163 "comb", 

164 "comfort", 

165 "comic", 

166 "committee", 

167 "community", 

168 "company", 

169 "comparison", 

170 "competition", 

171 "condition", 

172 "connection", 

173 "control", 

174 "cook", 

175 "copper", 

176 "copy", 

177 "corn", 

178 "cough", 

179 "country", 

180 "cover", 

181 "crate", 

182 "crayon", 

183 "cream", 

184 "creator", 

185 "crew", 

186 "crown", 

187 "current", 

188 "curtain", 

189 "curve", 

190 "cushion", 

191 "dad", 

192 "daughter", 

193 "day", 

194 "death", 

195 "debt", 

196 "decision", 

197 "deer", 

198 "degree", 

199 "design", 

200 "desire", 

201 "desk", 

202 "detail", 

203 "development", 

204 "digestion", 

205 "dime", 

206 "dinner", 

207 "direction", 

208 "dirt", 

209 "discovery", 

210 "discussion", 

211 "disease", 

212 "disgust", 

213 "distance", 

214 "distribution", 

215 "division", 

216 "doctor", 

217 "dog", 

218 "door", 

219 "drain", 

220 "drawer", 

221 "dress", 

222 "drink", 

223 "driving", 

224 "dust", 

225 "ear", 

226 "earth", 

227 "edge", 

228 "education", 

229 "effect", 

230 "egg", 

231 "end", 

232 "energy", 

233 "engine", 

234 "error", 

235 "event", 

236 "example", 

237 "exchange", 

238 "existence", 

239 "expansion", 

240 "experience", 

241 "expert", 

242 "eye", 

243 "face", 

244 "fact", 

245 "fall", 

246 "family", 

247 "farm", 

248 "father", 

249 "fear", 

250 "feeling", 

251 "field", 

252 "finger", 

253 "fire", 

254 "fish", 

255 "flag", 

256 "flight", 

257 "floor", 

258 "flower", 

259 "fold", 

260 "food", 

261 "football", 

262 "force", 

263 "form", 

264 "frame", 

265 "friend", 

266 "frog", 

267 "fruit", 

268 "fuel", 

269 "furniture", 

270 "game", 

271 "garden", 

272 "gate", 

273 "girl", 

274 "glass", 

275 "glove", 

276 "goat", 

277 "gold", 

278 "government", 

279 "grade", 

280 "grain", 

281 "grass", 

282 "green", 

283 "grip", 

284 "group", 

285 "growth", 

286 "guide", 

287 "guitar", 

288 "hair", 

289 "hall", 

290 "hand", 

291 "harbor", 

292 "harmony", 

293 "hat", 

294 "head", 

295 "health", 

296 "heart", 

297 "heat", 

298 "hill", 

299 "history", 

300 "hobbies", 

301 "hole", 

302 "hope", 

303 "horn", 

304 "horse", 

305 "hospital", 

306 "hour", 

307 "house", 

308 "humor", 

309 "idea", 

310 "impulse", 

311 "income", 

312 "increase", 

313 "industry", 

314 "ink", 

315 "insect", 

316 "instrument", 

317 "insurance", 

318 "interest", 

319 "invention", 

320 "iron", 

321 "island", 

322 "jelly", 

323 "jet", 

324 "jewel", 

325 "join", 

326 "judge", 

327 "juice", 

328 "jump", 

329 "kettle", 

330 "key", 

331 "kick", 

332 "kiss", 

333 "kitten", 

334 "knee", 

335 "knife", 

336 "knowledge", 

337 "land", 

338 "language", 

339 "laugh", 

340 "law", 

341 "lead", 

342 "learning", 

343 "leather", 

344 "leg", 

345 "lettuce", 

346 "level", 

347 "library", 

348 "lift", 

349 "light", 

350 "limit", 

351 "line", 

352 "linen", 

353 "lip", 

354 "liquid", 

355 "list", 

356 "look", 

357 "loss", 

358 "love", 

359 "lunch", 

360 "machine", 

361 "man", 

362 "manager", 

363 "map", 

364 "marble", 

365 "mark", 

366 "market", 

367 "mass", 

368 "match", 

369 "meal", 

370 "measure", 

371 "meat", 

372 "meeting", 

373 "memory", 

374 "metal", 

375 "middle", 

376 "milk", 

377 "mind", 

378 "mine", 

379 "minute", 

380 "mist", 

381 "mitten", 

382 "mom", 

383 "money", 

384 "monkey", 

385 "month", 

386 "moon", 

387 "morning", 

388 "mother", 

389 "motion", 

390 "mountain", 

391 "mouth", 

392 "muscle", 

393 "music", 

394 "nail", 

395 "name", 

396 "nation", 

397 "neck", 

398 "need", 

399 "news", 

400 "night", 

401 "noise", 

402 "note", 

403 "number", 

404 "nut", 

405 "observation", 

406 "offer", 

407 "oil", 

408 "operation", 

409 "opinion", 

410 "orange", 

411 "order", 

412 "organization", 

413 "ornament", 

414 "oven", 

415 "page", 

416 "pail", 

417 "pain", 

418 "paint", 

419 "pan", 

420 "pancake", 

421 "paper", 

422 "parcel", 

423 "parent", 

424 "part", 

425 "passenger", 

426 "paste", 

427 "payment", 

428 "peace", 

429 "pear", 

430 "pen", 

431 "pencil", 

432 "person", 

433 "pest", 

434 "pet", 

435 "picture", 

436 "pie", 

437 "pin", 

438 "pipe", 

439 "pizza", 

440 "place", 

441 "plane", 

442 "plant", 

443 "plastic", 

444 "plate", 

445 "play", 

446 "pleasure", 

447 "plot", 

448 "plough", 

449 "pocket", 

450 "point", 

451 "poison", 

452 "police", 

453 "pollution", 

454 "popcorn", 

455 "porter", 

456 "position", 

457 "pot", 

458 "potato", 

459 "powder", 

460 "power", 

461 "price", 

462 "print", 

463 "process", 

464 "produce", 

465 "product", 

466 "profit", 

467 "property", 

468 "prose", 

469 "protest", 

470 "pull", 

471 "pump", 

472 "punishment", 

473 "purpose", 

474 "push", 

475 "quarter", 

476 "question", 

477 "quiet", 

478 "quill", 

479 "quilt", 

480 "quince", 

481 "rabbit", 

482 "rail", 

483 "rain", 

484 "range", 

485 "rat", 

486 "rate", 

487 "ray", 

488 "reaction", 

489 "reading", 

490 "reason", 

491 "record", 

492 "regret", 

493 "relation", 

494 "religion", 

495 "representative", 

496 "request", 

497 "respect", 

498 "rest", 

499 "reward", 

500 "rhythm", 

501 "rice", 

502 "river", 

503 "road", 

504 "roll", 

505 "room", 

506 "root", 

507 "rose", 

508 "route", 

509 "rub", 

510 "rule", 

511 "run", 

512 "sack", 

513 "sail", 

514 "salt", 

515 "sand", 

516 "scale", 

517 "scarecrow", 

518 "scarf", 

519 "scene", 

520 "scent", 

521 "school", 

522 "science", 

523 "scissors", 

524 "screw", 

525 "sea", 

526 "seat", 

527 "secretary", 

528 "seed", 

529 "selection", 

530 "self", 

531 "sense", 

532 "servant", 

533 "shade", 

534 "shake", 

535 "shame", 

536 "shape", 

537 "sheep", 

538 "sheet", 

539 "shelf", 

540 "ship", 

541 "shirt", 

542 "shock", 

543 "shoe", 

544 "shop", 

545 "show", 

546 "side", 

547 "sign", 

548 "silk", 

549 "sink", 

550 "sister", 

551 "size", 

552 "sky", 

553 "sleep", 

554 "smash", 

555 "smell", 

556 "smile", 

557 "smoke", 

558 "snail", 

559 "snake", 

560 "sneeze", 

561 "snow", 

562 "soap", 

563 "society", 

564 "sock", 

565 "soda", 

566 "sofa", 

567 "son", 

568 "song", 

569 "sort", 

570 "sound", 

571 "soup", 

572 "space", 

573 "spark", 

574 "speed", 

575 "sponge", 

576 "spoon", 

577 "spray", 

578 "spring", 

579 "spy", 

580 "square", 

581 "stamp", 

582 "star", 

583 "start", 

584 "statement", 

585 "station", 

586 "steam", 

587 "steel", 

588 "stem", 

589 "step", 

590 "stew", 

591 "stick", 

592 "stitch", 

593 "stocking", 

594 "stomach", 

595 "stone", 

596 "stop", 

597 "store", 

598 "story", 

599 "stove", 

600 "stranger", 

601 "straw", 

602 "stream", 

603 "street", 

604 "stretch", 

605 "string", 

606 "structure", 

607 "substance", 

608 "sugar", 

609 "suggestion", 

610 "suit", 

611 "summer", 

612 "sun", 

613 "support", 

614 "surprise", 

615 "sweater", 

616 "swim", 

617 "system", 

618 "table", 

619 "tail", 

620 "talk", 

621 "tank", 

622 "taste", 

623 "tax", 

624 "tea", 

625 "teaching", 

626 "team", 

627 "tendency", 

628 "test", 

629 "texture", 

630 "theory", 

631 "thing", 

632 "thought", 

633 "thread", 

634 "throat", 

635 "thumb", 

636 "thunder", 

637 "ticket", 

638 "time", 

639 "tin", 

640 "title", 

641 "toad", 

642 "toe", 

643 "tooth", 

644 "toothpaste", 

645 "touch", 

646 "town", 

647 "toy", 

648 "trade", 

649 "train", 

650 "transport", 

651 "tray", 

652 "treatment", 

653 "tree", 

654 "trick", 

655 "trip", 

656 "trouble", 

657 "trousers", 

658 "truck", 

659 "tub", 

660 "turkey", 

661 "turn", 

662 "twist", 

663 "umbrella", 

664 "uncle", 

665 "underwear", 

666 "unit", 

667 "use", 

668 "vacation", 

669 "value", 

670 "van", 

671 "vase", 

672 "vegetable", 

673 "veil", 

674 "vein", 

675 "verse", 

676 "vessel", 

677 "view", 

678 "visitor", 

679 "voice", 

680 "volcano", 

681 "walk", 

682 "wall", 

683 "war", 

684 "wash", 

685 "waste", 

686 "watch", 

687 "water", 

688 "wave", 

689 "wax", 

690 "way", 

691 "wealth", 

692 "weather", 

693 "week", 

694 "weight", 

695 "wheel", 

696 "whip", 

697 "whistle", 

698 "window", 

699 "wine", 

700 "wing", 

701 "winter", 

702 "wire", 

703 "wish", 

704 "woman", 

705 "wood", 

706 "wool", 

707 "word", 

708 "work", 

709 "worm", 

710 "wound", 

711 "wrist", 

712 "writer", 

713 "yard", 

714 "yoke", 

715 "zebra", 

716 "zinc", 

717 "zipper", 

718 "zone", 

719] 

720 

721 

722def random_name() -> str: 

723 """Generate a random name.""" 

724 adjective = random.choice(adjectives) 

725 noun = random.choice(nouns) 

726 number = random.randint(1, 100) 

727 return f"{adjective}-{noun}-{number}"