All URIs are relative to https://v2.namsor.com/NamSorAPIv2
Method | HTTP request | Description |
---|---|---|
genderJapaneseNameFull | GET /api2/json/genderJapaneseNameFull/{japaneseName} | Infer the likely gender of a Japanese full name ex. 王晓明 |
genderJapaneseNameFullBatch | POST /api2/json/genderJapaneseNameFullBatch | Infer the likely gender of up to 100 full names |
genderJapaneseNamePinyin | GET /api2/json/genderJapaneseName/{japaneseSurname}/{japaneseGivenName} | Infer the likely gender of a Japanese name in LATIN (Pinyin). |
genderJapaneseNamePinyinBatch | POST /api2/json/genderJapaneseNameBatch | Infer the likely gender of up to 100 Japanese names in LATIN (Pinyin). |
japaneseNameGenderKanjiCandidatesBatch | POST /api2/json/japaneseNameGenderKanjiCandidatesBatch | Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname) with KNOWN gender, ex. Yamamoto Sanae |
japaneseNameKanjiCandidates | GET /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae |
japaneseNameKanjiCandidates1 | GET /api2/json/japaneseNameKanjiCandidates/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{knownGender} | Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender. |
japaneseNameKanjiCandidatesBatch | POST /api2/json/japaneseNameKanjiCandidatesBatch | Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname), ex. Yamamoto Sanae |
japaneseNameLatinCandidates | GET /api2/json/japaneseNameLatinCandidates/{japaneseSurnameKanji}/{japaneseGivenNameKanji} | Romanize japanese name, based on the name in Kanji. |
japaneseNameLatinCandidatesBatch | POST /api2/json/japaneseNameLatinCandidatesBatch | Romanize japanese names, based on the name in KANJI |
japaneseNameMatch | GET /api2/json/japaneseNameMatch/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{japaneseName} | Return a score for matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae |
japaneseNameMatchBatch | POST /api2/json/japaneseNameMatchBatch | Return a score for matching a list of Japanese names in KANJI ex. 山本 早苗 with romanized names ex. Yamamoto Sanae |
japaneseNameMatchFeedbackLoop | GET /api2/json/japaneseNameMatchFeedbackLoop/{japaneseSurnameLatin}/{japaneseGivenNameLatin}/{japaneseName} | [CREDITS 1 UNIT] Feedback loop to better perform matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae |
parseJapaneseName | GET /api2/json/parseJapaneseName/{japaneseName} | Infer the likely first/last name structure of a name, ex. 山本 早苗 or Yamamoto Sanae |
parseJapaneseNameBatch | POST /api2/json/parseJapaneseNameBatch | Infer the likely first/last name structure of a name, ex. 山本 早苗 or Yamamoto Sanae |
PersonalNameGenderedOut genderJapaneseNameFull(japaneseName)
Infer the likely gender of a Japanese full name ex. 王晓明
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
String japaneseName = "japaneseName_example"; // String |
try {
PersonalNameGenderedOut result = apiInstance.genderJapaneseNameFull(japaneseName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#genderJapaneseNameFull");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
japaneseName | String |
- Content-Type: Not defined
- Accept: application/json
BatchPersonalNameGenderedOut genderJapaneseNameFullBatch(batchPersonalNameIn)
Infer the likely gender of up to 100 full names
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
BatchPersonalNameIn batchPersonalNameIn = new BatchPersonalNameIn(); // BatchPersonalNameIn | A list of personal names
try {
BatchPersonalNameGenderedOut result = apiInstance.genderJapaneseNameFullBatch(batchPersonalNameIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#genderJapaneseNameFullBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchPersonalNameIn | BatchPersonalNameIn | A list of personal names | [optional] |
- Content-Type: application/json
- Accept: application/json
FirstLastNameGenderedOut genderJapaneseNamePinyin(japaneseSurname, japaneseGivenName)
Infer the likely gender of a Japanese name in LATIN (Pinyin).
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
String japaneseSurname = "japaneseSurname_example"; // String |
String japaneseGivenName = "japaneseGivenName_example"; // String |
try {
FirstLastNameGenderedOut result = apiInstance.genderJapaneseNamePinyin(japaneseSurname, japaneseGivenName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#genderJapaneseNamePinyin");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
japaneseSurname | String | ||
japaneseGivenName | String |
- Content-Type: Not defined
- Accept: application/json
BatchFirstLastNameGenderedOut genderJapaneseNamePinyinBatch(batchFirstLastNameIn)
Infer the likely gender of up to 100 Japanese names in LATIN (Pinyin).
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
BatchFirstLastNameIn batchFirstLastNameIn = new BatchFirstLastNameIn(); // BatchFirstLastNameIn | A list of names, with country code.
try {
BatchFirstLastNameGenderedOut result = apiInstance.genderJapaneseNamePinyinBatch(batchFirstLastNameIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#genderJapaneseNamePinyinBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchFirstLastNameIn | BatchFirstLastNameIn | A list of names, with country code. | [optional] |
- Content-Type: application/json
- Accept: application/json
BatchNameMatchCandidatesOut japaneseNameGenderKanjiCandidatesBatch(batchFirstLastNameGenderIn)
Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname) with KNOWN gender, ex. Yamamoto Sanae
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
BatchFirstLastNameGenderIn batchFirstLastNameGenderIn = new BatchFirstLastNameGenderIn(); // BatchFirstLastNameGenderIn | A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender
try {
BatchNameMatchCandidatesOut result = apiInstance.japaneseNameGenderKanjiCandidatesBatch(batchFirstLastNameGenderIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#japaneseNameGenderKanjiCandidatesBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchFirstLastNameGenderIn | BatchFirstLastNameGenderIn | A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname and known gender | [optional] |
- Content-Type: application/json
- Accept: application/json
NameMatchCandidatesOut japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin)
Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
String japaneseSurnameLatin = "japaneseSurnameLatin_example"; // String |
String japaneseGivenNameLatin = "japaneseGivenNameLatin_example"; // String |
try {
NameMatchCandidatesOut result = apiInstance.japaneseNameKanjiCandidates(japaneseSurnameLatin, japaneseGivenNameLatin);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#japaneseNameKanjiCandidates");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
japaneseSurnameLatin | String | ||
japaneseGivenNameLatin | String |
- Content-Type: Not defined
- Accept: application/json
NameMatchCandidatesOut japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender)
Identify japanese name candidates in KANJI, based on the romanized name ex. Yamamoto Sanae - and a known gender.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
String japaneseSurnameLatin = "japaneseSurnameLatin_example"; // String |
String japaneseGivenNameLatin = "japaneseGivenNameLatin_example"; // String |
String knownGender = "knownGender_example"; // String |
try {
NameMatchCandidatesOut result = apiInstance.japaneseNameKanjiCandidates1(japaneseSurnameLatin, japaneseGivenNameLatin, knownGender);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#japaneseNameKanjiCandidates1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
japaneseSurnameLatin | String | ||
japaneseGivenNameLatin | String | ||
knownGender | String |
- Content-Type: Not defined
- Accept: application/json
BatchNameMatchCandidatesOut japaneseNameKanjiCandidatesBatch(batchFirstLastNameIn)
Identify japanese name candidates in KANJI, based on the romanized name (firstName = japaneseGivenName; lastName=japaneseSurname), ex. Yamamoto Sanae
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
BatchFirstLastNameIn batchFirstLastNameIn = new BatchFirstLastNameIn(); // BatchFirstLastNameIn | A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname
try {
BatchNameMatchCandidatesOut result = apiInstance.japaneseNameKanjiCandidatesBatch(batchFirstLastNameIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#japaneseNameKanjiCandidatesBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchFirstLastNameIn | BatchFirstLastNameIn | A list of personal japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname | [optional] |
- Content-Type: application/json
- Accept: application/json
NameMatchCandidatesOut japaneseNameLatinCandidates(japaneseSurnameKanji, japaneseGivenNameKanji)
Romanize japanese name, based on the name in Kanji.
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
String japaneseSurnameKanji = "japaneseSurnameKanji_example"; // String |
String japaneseGivenNameKanji = "japaneseGivenNameKanji_example"; // String |
try {
NameMatchCandidatesOut result = apiInstance.japaneseNameLatinCandidates(japaneseSurnameKanji, japaneseGivenNameKanji);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#japaneseNameLatinCandidates");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
japaneseSurnameKanji | String | ||
japaneseGivenNameKanji | String |
- Content-Type: Not defined
- Accept: application/json
BatchNameMatchCandidatesOut japaneseNameLatinCandidatesBatch(batchFirstLastNameIn)
Romanize japanese names, based on the name in KANJI
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
BatchFirstLastNameIn batchFirstLastNameIn = new BatchFirstLastNameIn(); // BatchFirstLastNameIn | A list of personal japanese names in KANJI, firstName = japaneseGivenName; lastName=japaneseSurname
try {
BatchNameMatchCandidatesOut result = apiInstance.japaneseNameLatinCandidatesBatch(batchFirstLastNameIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#japaneseNameLatinCandidatesBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchFirstLastNameIn | BatchFirstLastNameIn | A list of personal japanese names in KANJI, firstName = japaneseGivenName; lastName=japaneseSurname | [optional] |
- Content-Type: application/json
- Accept: application/json
NameMatchedOut japaneseNameMatch(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName)
Return a score for matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
String japaneseSurnameLatin = "japaneseSurnameLatin_example"; // String |
String japaneseGivenNameLatin = "japaneseGivenNameLatin_example"; // String |
String japaneseName = "japaneseName_example"; // String |
try {
NameMatchedOut result = apiInstance.japaneseNameMatch(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#japaneseNameMatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
japaneseSurnameLatin | String | ||
japaneseGivenNameLatin | String | ||
japaneseName | String |
- Content-Type: Not defined
- Accept: application/json
BatchNameMatchedOut japaneseNameMatchBatch(batchMatchPersonalFirstLastNameIn)
Return a score for matching a list of Japanese names in KANJI ex. 山本 早苗 with romanized names ex. Yamamoto Sanae
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
BatchMatchPersonalFirstLastNameIn batchMatchPersonalFirstLastNameIn = new BatchMatchPersonalFirstLastNameIn(); // BatchMatchPersonalFirstLastNameIn | A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname
try {
BatchNameMatchedOut result = apiInstance.japaneseNameMatchBatch(batchMatchPersonalFirstLastNameIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#japaneseNameMatchBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchMatchPersonalFirstLastNameIn | BatchMatchPersonalFirstLastNameIn | A list of personal Japanese names in LATIN, firstName = japaneseGivenName; lastName=japaneseSurname | [optional] |
- Content-Type: application/json
- Accept: application/json
FeedbackLoopOut japaneseNameMatchFeedbackLoop(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName)
[CREDITS 1 UNIT] Feedback loop to better perform matching Japanese name in KANJI ex. 山本 早苗 with a romanized name ex. Yamamoto Sanae
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
String japaneseSurnameLatin = "japaneseSurnameLatin_example"; // String |
String japaneseGivenNameLatin = "japaneseGivenNameLatin_example"; // String |
String japaneseName = "japaneseName_example"; // String |
try {
FeedbackLoopOut result = apiInstance.japaneseNameMatchFeedbackLoop(japaneseSurnameLatin, japaneseGivenNameLatin, japaneseName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#japaneseNameMatchFeedbackLoop");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
japaneseSurnameLatin | String | ||
japaneseGivenNameLatin | String | ||
japaneseName | String |
- Content-Type: Not defined
- Accept: application/json
PersonalNameParsedOut parseJapaneseName(japaneseName)
Infer the likely first/last name structure of a name, ex. 山本 早苗 or Yamamoto Sanae
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
String japaneseName = "japaneseName_example"; // String |
try {
PersonalNameParsedOut result = apiInstance.parseJapaneseName(japaneseName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#parseJapaneseName");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
japaneseName | String |
- Content-Type: Not defined
- Accept: application/json
BatchPersonalNameParsedOut parseJapaneseNameBatch(batchPersonalNameIn)
Infer the likely first/last name structure of a name, ex. 山本 早苗 or Yamamoto Sanae
// Import classes:
//import com.namsor.sdk2.invoke.ApiClient;
//import com.namsor.sdk2.invoke.ApiException;
//import com.namsor.sdk2.invoke.Configuration;
//import com.namsor.sdk2.invoke.auth.*;
//import com.namsor.sdk2.api.JapaneseApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
JapaneseApi apiInstance = new JapaneseApi();
BatchPersonalNameIn batchPersonalNameIn = new BatchPersonalNameIn(); // BatchPersonalNameIn | A list of personal names
try {
BatchPersonalNameParsedOut result = apiInstance.parseJapaneseNameBatch(batchPersonalNameIn);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JapaneseApi#parseJapaneseNameBatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
batchPersonalNameIn | BatchPersonalNameIn | A list of personal names | [optional] |
- Content-Type: application/json
- Accept: application/json