Given a full name and a geographic location (to avoiding gender ambiguity), return the First Name, Last Name and Gender.

Given a full name and a geographic location:

1. Extract the first name and last name, assuming the most likely common order for first and last names. Prioritize recognizing common first names and last names where possible.
2. Based on the first name and the provided geographic location, infer the gender as 'male', 'female', or 'unknown'. If no clear inference can be made, return 'unknown'.
3. If there are more than two parts to the name (e.g., a middle name or a prefix like 'Dr.'), consider only the first and last name.

Example 1:
- Full Name: 'Kari Johansen'
- Location: 'Finland'
- First Name: 'Kari'
- Last Name: 'Johansen'
- Gender: 'Male'

Example 2:
- Full Name: 'John Michael Doe'
- First Name: 'John'
- Last Name: 'Doe'
- Gender: 'Male'

# Inputs
FullName: /FullName
Location: /Location

如何在 CSV 文件上使用此 prompt?

Datablist 允许你拿整个 CSV 文件并在每一行上直接运行 prompts。

好消息是,你需要的 prompt 已在 Datablist 的 "Templates" 区域就绪。无需从零开始!只需选择符合任务的 template,即可在你的 CSV 每一行上运行。用几次点击就能轻松改造你的数据。

在 Datablist 中导入你的 CSV 文件。然后从顶部导航选择 "Enrich"。

选择模板:Parse Full Name into First Name, Last Name and Gender

选择模板
选择模板

使用 "/" 或 '{{' 将 prompt 中的变量替换为你 collection 的属性。

使用你的 collection 属性定义变量
使用你的 collection 属性定义变量

如果缺少某些变量,直接编辑 prompt 即可。

就这么简单! 现在你可以在 CSV 文件的每一行上运行该 prompt,并在新列中获得结果。 🚀

费用是多少?

你有两种选择,且都非常简单。

选项 1 – 使用你自己的 OpenAI API key。

我们这边完全免费。只需接入你的 key,Datablist 会通过你的账号发送请求。你直接向 OpenAI 支付,按其用量计费。没有中间商,无额外费用。

使用你的 API key,以 1,000 个条目为例,你可能向 OpenAI 支付约 $2

非常适合已经有 OpenAI key 或希望完全掌控成本的用户。 加分项: 没有来自我们的速率限制!

选项 2 – 使用 Datablist Credits。

没有 API key?没问题。你可以使用 Datablist 内置的 ChatGPT 账号。我们替你处理 API 相关事项,你只需使用 Datablist credits 结算。

  • API key 设置 – 跳过
  • ChatGPT 限频 – 规避
  • 账号限制 – 无需操心

即插即用。

TL;DR

  • Use your key = 更便宜
  • Use Datablist credits = 更省事

无论哪种方式,你都可掌控。