Ruby Client

Elegant Ruby client for Gender-API.com designed for Rails, Sinatra, and Ruby applications. Our AI-powered API delivers 99.5% accurate gender detection with beautiful, idiomatic Ruby syntax. Process names in under 100ms with 10x-90x better performance than generic AI models. The gem provides simple methods for single and batch lookups, perfect for user registration, email personalization, and CRM integration. Unlike ChatGPT or other LLMs, our specialized database contains 37% more names with country-specific accuracy across 150+ countries. Supports smart normalization and handles international character sets. Start free with 100 monthly API calls. GDPR compliant and trusted globally.

सबसे पहले composer के साथ हमारी लाइब्रेरी स्थापित करें:

यहाँ पूरी क्लाइंट दस्तावेज़ीकरण देखें:

https://github.com/markus-perl/gender-api-client

सबसे पहले npm के साथ हमारी लाइब्रेरी स्थापित करें:

यहाँ पूरी क्लाइंट दस्तावेज़ीकरण देखें:

https://github.com/markus-perl/gender-api-client-npm

सबसे पहले npm के साथ हमारी लाइब्रेरी स्थापित करें:

यहाँ पूरी क्लाइंट दस्तावेज़ीकरण देखें:

https://github.com/markus-perl/gender-api-client-npm

सबसे पहले pip से हमारी लाइब्रेरी इंस्टॉल करो:

यहाँ पूरी क्लाइंट दस्तावेज़ीकरण देखें:

https://github.com/markus-perl/gender-api-client-python
https://pypi.org/project/gender-api-client/

require 'net/http'
require 'json'
require 'uri'

# Determine the gender of a first name using API V2
# ---------------------------------------------------
api_key = 'YOUR_API_KEY' # Get your key at https://gender-api.com/en/account/auth-tokens
uri = URI('https://gender-api.com/v2/gender/by-first-name')

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = "Bearer #{api_key}"
request.body = JSON.dump({ first_name: 'Theresa' })

begin
  response = http.request(request)
  
  # Parse the JSON response
  result = JSON.parse(response.read_body)

  puts "Gender: #{result['gender']}"
  puts "Probability: #{result['probability']}"
rescue StandardError => e
  puts "Error: #{e.message}"
end

तुमच्या अॅप्लिकेशन्ससाठी प्रोफेशनल लिंग ओळख

Gender-API.com 150+ देशों में 99.5% सटीकता के साथ एंटरप्राइज़-ग्रेड gender detection देता है। हमारा specialized API, generic AI solutions की तुलना में 10x-90x तेज़ response times और 9-34% बेहतर accuracy के साथ साफ़ तौर पर आगे है।

क्यों चुनो Gender-API को Generic AI के बजाय?

  • उद्देश्य के लिए विशेष रूप से बनाया गया : जेंडर पहचान के लिए खास तौर पर बनाया गया है, यह सामान्य उपयोग वाला AI नहीं है
  • अत्यंत तेज़ : सामान्य AI की तुलना में 100ms से कम रिस्पॉन्स टाइम — सेकंड्स नहीं
  • और भी ज़्यादा सटीक सांस्कृतिक और क्षेत्रीय समझ के साथ 99.5% सटीकता
  • और भी बड़ा डेटाबेस 9+ मिलियन नाम, सामान्य AI प्रशिक्षण डेटा की तुलना में 37% ज़्यादा
  • विश्वसनीय 99.9% अपटाइम SLA, साथ में भरोसेमंद और अनुमानित परफॉर्मेंस

मुख्य विशेषताएँ

  • सिर्फ़ कुछ लाइनों के कोड के साथ आसान इंटीग्रेशन
  • उच्च-वॉल्यूम ऐप्लिकेशनों के लिए बैच प्रोसेसिंग
  • क्षेत्रीय नामों के अलग-अलग रूपों के लिए देश-विशिष्ट सटीकता
  • टाइपो और अलग-अलग वैरिएंट्स को स्मार्ट तरीके से नॉर्मलाइज़ करने की सुविधा
  • GDPR के अनुरूप और एंटरप्राइज़ के लिए तैयार

आज ही मुफ़्त में शुरू करो

हर महीने 100 मुफ्त API कॉल्स पाओ — बिना क्रेडिट कार्ड के। जैसे-जैसे तुम बढ़ो, हर यूज़ केस के लिए लचीली प्राइसिंग के साथ आसानी से स्केल करो।

संवाद