goodmami/wn

A modern, interlingual wordnet interface for Python

Python

302

687 commits

updated Sep 5, 2026

See the code

README

Wn logo
a Python library for wordnets
PyPI link Python Support tests Documentation Status
Available Wordnets | Documentation | FAQ | Migrating from NLTK | Citation


Wn is a Python library for exploring information in wordnets.

Installation

Install it from PyPI using pip:

pip install wn

or uv:

uv add wn

[!IMPORTANT] Existing users of Wn may encounter an error about an incompatible database schema. The remedy is to rebuild the database. There is a new function to help with this:

>>> wn.reset_database(rebuild=True)  # re-add any indexed lexicons

or

>>> wn.reset_database()  # initialize without re-adding; start from scratch

Getting Started

First, download some data:

python -m wn download oewn:2025+  # the Open English WordNet 2025+

Now start exploring:

>>> import wn
>>> en = wn.Wordnet('oewn:2025+')       # Create Wordnet object to query
>>> ss = en.synsets('win', pos='v')[0]  # Get the first synset for 'win'
>>> ss.definition()                     # Get the synset's definition
'be the winner in a contest or competition; be victorious'

Features

Available Wordnets

Any WN-LMF-formatted wordnet can be added to Wn's database from a local file or remote URL, but Wn also maintains an index (see wn/index.toml) of available projects, similar to a package manager for software, to aid in the discovery and downloading of new wordnets. The projects in this index are listed below.

English Wordnets

There are several English wordnets available. In general it is recommended to use the latest Open English Wordnet, but if you have stricter compatibility needs for, e.g., experiment replicability, you may try the OMW English Wordnet based on WordNet 3.0 (compatible with the Princeton WordNet 3.0 and with the NLTK), or OpenWordnet-EN (for use with the Portuguese wordnet OpenWordnet-PT).

NameSpecifier# SynsetsNotes
Open English WordNetoewn:2025+
oewn:2025
oewn:2024
oewn:2023
oewn:2022
oewn:2021
ewn:2020
ewn:2019
120564
107519
120630
120135
120068
120039
120053
117791
← Recommended
 
 
 
 
 
 
 
OMW English Wordnet based on WordNet 1.5omw-en15:2.091591
OMW English Wordnet based on WordNet 1.6omw-en16:2.099642
OMW English Wordnet based on WordNet 1.7omw-en17:2.0109377
OMW English Wordnet based on WordNet 1.7.1omw-en171:2.0111223
OMW English Wordnet based on WordNet 2.0omw-en20:2.0115424
OMW English Wordnet based on WordNet 2.1omw-en21:2.0117597
OMW English Wordnet based on WordNet 3.0omw-en:2.0
omw-en:1.4
117659
117659
Included with omw:2.0
Included with omw:1.4
OMW English Wordnet based on WordNet 3.1omw-en31:2.0
omw-en31:1.4
117791
117791
OpenWordnet-ENown-en:1.0.0117659Included with own:1.0.0

Other Wordnets and Collections

These are standalone non-English wordnets and collections. The wordnets of each collection are listed further down.

NameSpecifier# SynsetsLanguage
Open Multilingual Wordnetomw:1.4n/amultiple [mul]
Open German WordNetodenet:1.4
odenet:1.3
36268
36159
German [de]
Open Wordnets for Portuguese and Englishown:1.0.0n/amultiple [mul]
KurdNetkurdnet:1.02144Kurdish [ckb]

Open Multilingual Wordnet (OMW) Collection

The Open Multilingual Wordnet collection (omw:1.4) installs the following lexicons (from here) which can also be downloaded and installed independently:

NameSpecifier# SynsetsLanguage
Albanetomw-sq:2.0
omw-sq:1.4
4679
4675
Albanian [sq]
Arabic WordNet (AWN v2)omw-arb:2.0
omw-arb:1.4
9916
9916
Arabic [arb]
BulTreeBank Wordnet (BTB-WN)omw-bg:2.0
omw-bg:1.4
4959
4959
Bulgarian [bg]
Chinese Open Wordnetomw-cmn:2.0
omw-cmn:1.4
42300
42312
Mandarin (Simplified) [cmn-Hans]
Croatian Wordnetomw-hr:2.0
omw-hr:1.4
23115
23120
Croatian [hr]
DanNetomw-da:2.0
omw-da:1.4
4476
4476
Danish [da]
FinnWordNetomw-fi:2.0
omw-fi:1.4
116763
116763
Finnish [fi]
Greek Wordnetomw-el:2.0
omw-el:1.4
18113
18049
Greek [el]
Hebrew Wordnetomw-he:2.0
omw-he:1.4
5448
5448
Hebrew [he]
IceWordNetomw-is:2.0
omw-is:1.4
4951
4951
Icelandic [is]
Italian Wordnetomw-iwn:2.0
omw-iwn:1.4
15563
15563
Italian [it]
Japanese Wordnetomw-ja:2.0
omw-ja:1.4
117659
57184
Japanese [ja]
Lithuanian WordNetomw-lt:2.0
omw-lt:1.4
9462
9462
Lithuanian [lt]
Multilingual Central Repositoryomw-ca:2.0
omw-ca:1.4
60765
45826
Catalan [ca]
Multilingual Central Repositoryomw-eu:2.0
omw-eu:1.4
29420
29413
Basque [eu]
Multilingual Central Repositoryomw-gl:2.0
omw-gl:1.4
34776
19312
Galician [gl]
Multilingual Central Repositoryomw-es:2.0
omw-es:1.4
78948
38512
Spanish [es]
MultiWordNetomw-it:2.0
omw-it:1.4
35001
35001
Italian [it]
Norwegian Wordnetomw-nb:2.0
omw-nb:1.4
4455
4455
Norwegian (Bokmål) [nb]
Norwegian Wordnetomw-nn:2.0
omw-nn:1.4
3671
3671
Norwegian (Nynorsk) [nn]
OMW English Wordnet based on WordNet 3.0omw-en:2.0
omw-en:1.4
117659
117659
English [en]
Open Dutch WordNetomw-nl:2.0
omw-nl:1.4
30177
30177
Dutch [nl]
OpenWN-PTomw-pt:2.0
omw-pt:1.4
43895
43895
Portuguese [pt]
plWordNetomw-pl:2.0
omw-pl:1.4
33826
33826
Polish [pl]
Romanian Wordnetomw-ro:2.0
omw-ro:1.4
58754
56026
Romanian [ro]
Slovak WordNetomw-sk:2.0
omw-sk:1.4
18507
18507
Slovak [sk]
sloWNetomw-sl:2.0
omw-sl:1.4
42590
42583
Slovenian [sl]
Swedish (SALDO)omw-sv:2.0
omw-sv:1.4
6796
6796
Swedish [sv]
Thai Wordnetomw-th:2.0
omw-th:1.4
73350
73350
Thai [th]
WOLF (Wordnet Libre du Français)omw-fr:2.0
omw-fr:1.4
59091
59091
French [fr]
Wordnet Bahasaomw-id:2.0
omw-id:1.4
46774
38085
Indonesian [id]
Wordnet Bahasaomw-zsm:2.0
omw-zsm:1.4
36911
36911
Malaysian [zsm]

Open Wordnet (OWN) Collection

The Open Wordnets for Portuguese and English collection (own:1.0.0) installs the following lexicons (from here) which can also be downloaded and installed independently:

NameSpecifier# SynsetsLanguage
OpenWordnet-PTown-pt:1.0.052670Portuguese [pt]
OpenWordnet-ENown-en:1.0.0117659English [en]

Collaborative Interlingual Index

While not a wordnet, the Collaborative Interlingual Index (CILI) represents the interlingual backbone of many wordnets. Wn, including interlingual queries, will function without CILI loaded, but adding it to the database makes available the full list of concepts, their status (active, deprecated, etc.), and their definitions.

NameSpecifier# Concepts
Collaborative Interlingual Indexcili:1.0117659

Changes to the Index

ewnoewn

The 2021 version of the Open English WordNet (oewn:2021) has changed its lexicon ID from ewn to oewn, so the index is updated accordingly. The previous versions are still available as ewn:2019 and ewn:2020.

pwnomw-en, omw-en31

The wordnet formerly called the Princeton WordNet (pwn:3.0, pwn:3.1) is now called the OMW English Wordnet based on WordNet 3.0 (omw-en) and the OMW English Wordnet based on WordNet 3.1 (omw-en31). This is more accurate, as it is a OMW-produced derivative of the original WordNet data, and it also avoids license or trademark issues.

*wnomw-* for OMW wordnets

All OMW wordnets have changed their ID scheme from ...wn to omw-.. and the version no longer includes +omw (e.g., bulwn:1.3+omw is now omw-bg:1.4).

Citation

Michael Wayne Goodman and Francis Bond. 2021. Intrinsically Interlingual: The Wn Python Library for Wordnets In Proceedings of the 11th Global Wordnet Conference, pages 100–107, University of South Africa (UNISA). Global Wordnet Association.

dictionary
lexicon
library
nlp
python-library
wordnet
wordnets

Contributors

goodmami

668 commits

fcbond

5 commits

AmitMY

2 commits

forgot

1 commits

goodmami/wn

A modern, interlingual wordnet interface for Python

Python

302

687 commits

updated Sep 5, 2026

See the code

README

Wn logo
a Python library for wordnets
PyPI link Python Support tests Documentation Status
Available Wordnets | Documentation | FAQ | Migrating from NLTK | Citation


Wn is a Python library for exploring information in wordnets.

Installation

Install it from PyPI using pip:

pip install wn

or uv:

uv add wn

[!IMPORTANT] Existing users of Wn may encounter an error about an incompatible database schema. The remedy is to rebuild the database. There is a new function to help with this:

>>> wn.reset_database(rebuild=True)  # re-add any indexed lexicons

or

>>> wn.reset_database()  # initialize without re-adding; start from scratch

Getting Started

First, download some data:

python -m wn download oewn:2025+  # the Open English WordNet 2025+

Now start exploring:

>>> import wn
>>> en = wn.Wordnet('oewn:2025+')       # Create Wordnet object to query
>>> ss = en.synsets('win', pos='v')[0]  # Get the first synset for 'win'
>>> ss.definition()                     # Get the synset's definition
'be the winner in a contest or competition; be victorious'

Features

Available Wordnets

Any WN-LMF-formatted wordnet can be added to Wn's database from a local file or remote URL, but Wn also maintains an index (see wn/index.toml) of available projects, similar to a package manager for software, to aid in the discovery and downloading of new wordnets. The projects in this index are listed below.

English Wordnets

There are several English wordnets available. In general it is recommended to use the latest Open English Wordnet, but if you have stricter compatibility needs for, e.g., experiment replicability, you may try the OMW English Wordnet based on WordNet 3.0 (compatible with the Princeton WordNet 3.0 and with the NLTK), or OpenWordnet-EN (for use with the Portuguese wordnet OpenWordnet-PT).

NameSpecifier# SynsetsNotes
Open English WordNetoewn:2025+
oewn:2025
oewn:2024
oewn:2023
oewn:2022
oewn:2021
ewn:2020
ewn:2019
120564
107519
120630
120135
120068
120039
120053
117791
← Recommended
 
 
 
 
 
 
 
OMW English Wordnet based on WordNet 1.5omw-en15:2.091591
OMW English Wordnet based on WordNet 1.6omw-en16:2.099642
OMW English Wordnet based on WordNet 1.7omw-en17:2.0109377
OMW English Wordnet based on WordNet 1.7.1omw-en171:2.0111223
OMW English Wordnet based on WordNet 2.0omw-en20:2.0115424
OMW English Wordnet based on WordNet 2.1omw-en21:2.0117597
OMW English Wordnet based on WordNet 3.0omw-en:2.0
omw-en:1.4
117659
117659
Included with omw:2.0
Included with omw:1.4
OMW English Wordnet based on WordNet 3.1omw-en31:2.0
omw-en31:1.4
117791
117791
OpenWordnet-ENown-en:1.0.0117659Included with own:1.0.0

Other Wordnets and Collections

These are standalone non-English wordnets and collections. The wordnets of each collection are listed further down.

NameSpecifier# SynsetsLanguage
Open Multilingual Wordnetomw:1.4n/amultiple [mul]
Open German WordNetodenet:1.4
odenet:1.3
36268
36159
German [de]
Open Wordnets for Portuguese and Englishown:1.0.0n/amultiple [mul]
KurdNetkurdnet:1.02144Kurdish [ckb]

Open Multilingual Wordnet (OMW) Collection

The Open Multilingual Wordnet collection (omw:1.4) installs the following lexicons (from here) which can also be downloaded and installed independently:

NameSpecifier# SynsetsLanguage
Albanetomw-sq:2.0
omw-sq:1.4
4679
4675
Albanian [sq]
Arabic WordNet (AWN v2)omw-arb:2.0
omw-arb:1.4
9916
9916
Arabic [arb]
BulTreeBank Wordnet (BTB-WN)omw-bg:2.0
omw-bg:1.4
4959
4959
Bulgarian [bg]
Chinese Open Wordnetomw-cmn:2.0
omw-cmn:1.4
42300
42312
Mandarin (Simplified) [cmn-Hans]
Croatian Wordnetomw-hr:2.0
omw-hr:1.4
23115
23120
Croatian [hr]
DanNetomw-da:2.0
omw-da:1.4
4476
4476
Danish [da]
FinnWordNetomw-fi:2.0
omw-fi:1.4
116763
116763
Finnish [fi]
Greek Wordnetomw-el:2.0
omw-el:1.4
18113
18049
Greek [el]
Hebrew Wordnetomw-he:2.0
omw-he:1.4
5448
5448
Hebrew [he]
IceWordNetomw-is:2.0
omw-is:1.4
4951
4951
Icelandic [is]
Italian Wordnetomw-iwn:2.0
omw-iwn:1.4
15563
15563
Italian [it]
Japanese Wordnetomw-ja:2.0
omw-ja:1.4
117659
57184
Japanese [ja]
Lithuanian WordNetomw-lt:2.0
omw-lt:1.4
9462
9462
Lithuanian [lt]
Multilingual Central Repositoryomw-ca:2.0
omw-ca:1.4
60765
45826
Catalan [ca]
Multilingual Central Repositoryomw-eu:2.0
omw-eu:1.4
29420
29413
Basque [eu]
Multilingual Central Repositoryomw-gl:2.0
omw-gl:1.4
34776
19312
Galician [gl]
Multilingual Central Repositoryomw-es:2.0
omw-es:1.4
78948
38512
Spanish [es]
MultiWordNetomw-it:2.0
omw-it:1.4
35001
35001
Italian [it]
Norwegian Wordnetomw-nb:2.0
omw-nb:1.4
4455
4455
Norwegian (Bokmål) [nb]
Norwegian Wordnetomw-nn:2.0
omw-nn:1.4
3671
3671
Norwegian (Nynorsk) [nn]
OMW English Wordnet based on WordNet 3.0omw-en:2.0
omw-en:1.4
117659
117659
English [en]
Open Dutch WordNetomw-nl:2.0
omw-nl:1.4
30177
30177
Dutch [nl]
OpenWN-PTomw-pt:2.0
omw-pt:1.4
43895
43895
Portuguese [pt]
plWordNetomw-pl:2.0
omw-pl:1.4
33826
33826
Polish [pl]
Romanian Wordnetomw-ro:2.0
omw-ro:1.4
58754
56026
Romanian [ro]
Slovak WordNetomw-sk:2.0
omw-sk:1.4
18507
18507
Slovak [sk]
sloWNetomw-sl:2.0
omw-sl:1.4
42590
42583
Slovenian [sl]
Swedish (SALDO)omw-sv:2.0
omw-sv:1.4
6796
6796
Swedish [sv]
Thai Wordnetomw-th:2.0
omw-th:1.4
73350
73350
Thai [th]
WOLF (Wordnet Libre du Français)omw-fr:2.0
omw-fr:1.4
59091
59091
French [fr]
Wordnet Bahasaomw-id:2.0
omw-id:1.4
46774
38085
Indonesian [id]
Wordnet Bahasaomw-zsm:2.0
omw-zsm:1.4
36911
36911
Malaysian [zsm]

Open Wordnet (OWN) Collection

The Open Wordnets for Portuguese and English collection (own:1.0.0) installs the following lexicons (from here) which can also be downloaded and installed independently:

NameSpecifier# SynsetsLanguage
OpenWordnet-PTown-pt:1.0.052670Portuguese [pt]
OpenWordnet-ENown-en:1.0.0117659English [en]

Collaborative Interlingual Index

While not a wordnet, the Collaborative Interlingual Index (CILI) represents the interlingual backbone of many wordnets. Wn, including interlingual queries, will function without CILI loaded, but adding it to the database makes available the full list of concepts, their status (active, deprecated, etc.), and their definitions.

NameSpecifier# Concepts
Collaborative Interlingual Indexcili:1.0117659

Changes to the Index

ewnoewn

The 2021 version of the Open English WordNet (oewn:2021) has changed its lexicon ID from ewn to oewn, so the index is updated accordingly. The previous versions are still available as ewn:2019 and ewn:2020.

pwnomw-en, omw-en31

The wordnet formerly called the Princeton WordNet (pwn:3.0, pwn:3.1) is now called the OMW English Wordnet based on WordNet 3.0 (omw-en) and the OMW English Wordnet based on WordNet 3.1 (omw-en31). This is more accurate, as it is a OMW-produced derivative of the original WordNet data, and it also avoids license or trademark issues.

*wnomw-* for OMW wordnets

All OMW wordnets have changed their ID scheme from ...wn to omw-.. and the version no longer includes +omw (e.g., bulwn:1.3+omw is now omw-bg:1.4).

Citation

Michael Wayne Goodman and Francis Bond. 2021. Intrinsically Interlingual: The Wn Python Library for Wordnets In Proceedings of the 11th Global Wordnet Conference, pages 100–107, University of South Africa (UNISA). Global Wordnet Association.

dictionary
lexicon
library
nlp
python-library
wordnet
wordnets

Contributors

goodmami

668 commits

fcbond

5 commits

AmitMY

2 commits

forgot

1 commits

Languages

Python

100.0%