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

Come usare questo prompt su un file CSV?

Datablist ti consente di prendere un intero file CSV ed eseguire prompts direttamente su ogni riga.

La buona notizia �e8 che il prompt che ti serve �e8 gi�e0 disponibile in Datablist nella sezione "Templates". Non serve partire da zero! Seleziona semplicemente il template adatto al tuo task ed �e8 pronto per essere eseguito su ogni riga del tuo CSV. Cos�ec trasformi i tuoi dati in pochi click.

Importa il tuo file CSV in Datablist. Poi seleziona "Enrich" dall'header.

Seleziona il template: Parse Full Name into First Name, Last Name and Gender

Seleziona Template
Seleziona Template

Sostituisci le variabili del prompt con le propriet�e0 della tua collezione usando / o '{{'.

Definisci le variabili usando le propriet�e0 della tua collezione
Definisci le variabili usando le propriet�e0 della tua collezione

Se non hai tutte le variabili, modifica semplicemente il prompt.

Fatto! Ora puoi eseguire il prompt su ogni riga del tuo file CSV e ottenere i risultati in una nuova colonna. 680

Quanto costa?

Hai due opzioni. Entrambe sono molto semplici.

Opzione 1 �13 Usa la tua OpenAI API key.

Totalmente gratuito dalla nostra parte. Collega la tua key e Datablist invier�e0 le richieste tramite il tuo account. Paghi OpenAI direttamente, in base alle loro tariffe. Nessun intermediario. Nessun costo extra.

Con la tua API key, per 1.000 elementi potresti pagare a OpenAI circa $2.

Perfetto se hai gi�e0 una key OpenAI o vuoi il pieno controllo dei costi. Bonus: nessun rate limit da parte nostra!

Opzione 2 �13 Usa i Datablist Credits.

Nessuna API key? Nessun problema. Puoi usare l'account ChatGPT integrato di Datablist. Gestiamo noi l'API per te. Tu paghi con i Datablist credits.

  • Setup API key �13 saltato
  • Rate limits di ChatGPT �13 evitati
  • Restrizioni dell'account �13 non sono un tuo problema

Funziona e basta.

TL;DR

  • Usa la tua key = pi�f9 economico
  • Usa i Datablist credits = pi�f9 semplice

In ogni caso, hai tu il controllo.