Skip to main content

No project description provided

Project description

English IPA

a python package for getting the IPA of an given English word

Usage

from english_ipa.cambridge import CambridgeDictScraper

scraper = CambridgeDictScraper()
ipa_in_dict = scraper.get_ipa_in_dict("hello")
# returned value
# {'word': 'hello', 'ipas': [{'region': 'uk', 'ipas': ['/heˈləʊ/']}, {'region': 'us', 'ipas': ['/heˈloʊ/']}]}

ipa_in_json = scraper.get_ipa_in_json("hello")
# returned value
# {"word":"hello","ipas":[{"region":"uk","ipas":["/heˈləʊ/"]},{"region":"us","ipas":["/heˈloʊ/"]}]}

ipa_in_str = scraper.get_ipa_in_str("hello")
# returned value
# uk: ['/heˈləʊ/']; us: ['/heˈloʊ/']

Async Version

import asyncio

from english_ipa.cambridge_async import AsyncCambridgeDictScraper


async def main():
    scraper = AsyncCambridgeDictScraper()
    ipa_in_dict = await scraper.get_ipa_in_dict("apple")
    print(ipa_in_dict)


asyncio.run(main())

# printed value
# {'word': 'apple', 'ipas': [{'region': 'uk', 'ipas': ['/ˈæp.əl/']}, {'region': 'us', 'ipas': ['/ˈæp.əl/']}]}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

english_ipa-1.0.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

english_ipa-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file english_ipa-1.0.0.tar.gz.

File metadata

  • Download URL: english_ipa-1.0.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for english_ipa-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b9d318c66f05e51c0b529b79233d8ee2e7e715d3d193c397023f4bedf59fc35e
MD5 ec8f02915c66b184ab69285dc17accf7
BLAKE2b-256 632601f67f1c03ec135adf8e99b2785d0d3b3518d314229d7b13fffd3e141ebd

See more details on using hashes here.

File details

Details for the file english_ipa-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: english_ipa-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for english_ipa-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 902c838bdbf1055cfd7a9b4064beee6e2263b942e40ed8633501c5bee90075bf
MD5 1de639ea8edf3593229b74d978fb77d7
BLAKE2b-256 32eba4b70ae023a3ac435aaa89ae3ecab756237bd26436f1144b2648be15ab2a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page