Ryleigh Walker

Ryleigh Walker

1666335595

Top Metaverse Crypto tokens

Metaverse crypto coins or tokens are digital assets used natively within these immersive virtual worlds. Blockchains are essential in ensuring a decentralized Metaverse, but most importantly, it facilitates value transfer because you need a token to build an economy within these virtual spaces. These tokens are created on top of established blockchain networks.

In this article you will see Top 30 Metaverse Crypto tokens by Volume

 NameDescribeExchangeWebsite
1Decentraland - MANA

Decentraland (MANA) is a decentralized virtual world platform with software based on the Ethereum blockchain, where users create, test and monetize content. In short: users buy virtual plots of land as NFTs with MANA tokens on the Decentraland platform. Progress in the game depends only on players themselves, their efforts and their imagination.

The digital platform is completely owned by its users. Within the Decentraland metaverse, participants can explore the virtual world, purchase plots of land that can be monetized, create works of art, own non-fungible tokens (NFTs), and take part in a decentralized autonomous organization of the platform Decentraland DAO. Due to the DAO, the community influences the development vector of the project.

In addition, users have access to interactive applications, in-world payments and peer-to-peer communication. The 3D world resonates with many participants as Decentraland has many applications, both entertainment for gamers and business for investors.

BuyLink
2The Sandbox - SAND

The Sandbox is a blockchain-based virtual world allowing users to create, build, buy and sell digital assets in the form of a game. By combining the powers of decentralized autonomous organizations (DAO) and non-fungible tokens (NFTs), the Sandbox creates a decentralized platform for a thriving gaming community.

The Sandbox platform’s main mission is to introduce blockchain technology in mainstream gaming successfully. The platform focuses on facilitating a creative “play-to-earn” model, which allows users to be both creators and gamers simultaneously. The Sandbox employs the powers of blockchain technology by introducing the SAND utility token, which facilitates transactions on the platform.

Buy Link
3Axie Infinity - AXS

Axie Infinity is a blockchain-based trading and battling game that is partially owned and operated by its players.

These Axies can take various forms, and there are more than 500 different body parts available, including aquatic, beast, bird, bug, plant and reptile parts. Parts from each type class come in four different rarity scales: common, rare, ultra rare and legendary — and Axies can have any combination of body parts, making them highly variable and often rare and unique.

Each Axie is a non-fungible token (NFT) with different attributes and strengths and can be entered into 3v3 battles, with the winning team earning more experience (exp) points that are used to level up an Axie's stats or evolve their body parts. These Axies can be bred together to produce new and unique offspring, which can be used or sold on the Axie marketplace.

The Axie Infinity ecosystem also has its own unique governance token, known as Axie Infinity Shards (AXS). These are used to participate in key governance votes and will give holders a say in how funds in the Axie Community Treasury are spent.

BuyLink
4Render Token - RNDR 

RNDR is an ERC-20 utility token used by artists on the network to exchange for GPU compute power from GPU providers (node operators). RNDR utilizes a combination manual and automatic proof of work system, or in this case proof of render, in order to verify all art has been successfully rendered prior to payment disbursal and art release.

Utilizing the inherent security properties of the Ethereum blockchain, proprietary assets are hashed upon upload and sent to nodes piecemeal for rendering. All RNDR payments are stored in escrow during rendering, and are released to node operators upon manual verification by the commissioning artist of successful work. To prevent malicious actors in both user bases, all assets rendered on the network are watermarked until payment is successfully disbursed, upon which time un-watermarked renderings may be downloaded, and all payment is held in escrow until manually verified as being correctly rendered.

BuyLink
5Vulcan Forged

Vulcan Forged is a blockchain-based play-to-earn crypto game created by gamers for gamers. The game is based on an Ethereum blockchain that makes its games, incubates decentralized applications (DApps), supports third-party game creators and facilitates NFT trading for its native ecosystem.

Gamers are rewarded with Vulcan Forged's native token, called PYR, which can also be used to pay fees for marketplace settlement. Vulcan Forged's most popular game (out of a library of eight P2E video games) is VulcanVerse, where players can buy and upgrade land and earn NFTs.

BuyLink
6Mobox - MBOX

Is a gaming platform & metaverse creator that combines automated optimized DeFi yield farming and gaming NFTs to create a GameFi metaverse — the MOMOverse , is a cross platform metaverse that can be enjoyed on all devices no matter where you are. Whether it is creating content or enjoying others’ creations, the MOMOverse rewards players, developers, and collectors for their engagement and enjoyment.

MBOX is the native utility token that is used for:

In-game currency: The MBOX token facilitates in-game purchases such as acquiring additional characters, lottery wheel, and incentives for in-game activity such as rewards for Player-versus-Player (PvP) battles.

Governance: MBOX token holders will be able to submit and vote on proposals to influence the platform's development and direction.

Liquidity mining: Users can stake in various liquidity pools on the platform or stake MOMO NFTs to earn staking rewards paid in MBOX tokens.

NFT mystery boxes: Users can stake MBOX tokens (veMBOX) for a chance to obtain unique MOMO NFT Mystery Boxes.

BuyLink
7My Neighbor Alice - ALICE

My Neighbor Alice is a farming-themed play-to-earn builder game built on Chromia.

The game bills itself as a place where “players can buy and own virtual islands, collect and build exciting items while also making new friends.” Each player has their own avatar representing them in the game, which they can modify as they please.

Players can buy virtual real estate from Alice, the game’s eponymous central figure, or the internal marketplace. All purchased land is represented as an NFT.

BuyLink
8Floki Inu - FLOKI 

Floki Inu wants to set itself apart from other meme coins by combining the memes with utility.

Its main flagship product is the NFT gaming metaverse called Valhalla. Floki Inu envisions it to be a play-to-earn gaming metaverse, where you can earn rewards for battling and trade or hold on to assets obtained in the metaverse.

The team plans to take successful elements from games like Pokémon and Skyrim and incorporate them in Valhalla. Players will be able to capture and battle with creatures called Vera, and the game will also have a gardening system where players can tend to their crops, which can later be sold as NFTs. 

BuyLink
9Aavegotchi - GHST

Aavegotchi (GHST) is the eco-governance token of the Aavegotchi NFT Gaming protocol. GHST token holders receive voting power in the AavegotchiDAO, which oversees all aspects of the protocol, Aavegotchi’s flagship game the Gotchiverse, and Aavegotchi NFTs.

Aavegotchis themselves are pixelated ghosts backed by the ERC-721 token standard. The Aavegotchi NFTs have dynamic metadata that changes over time through user interaction. An Aavegotchi’s value is determined mainly by its Base Rarity Score, Kinship Score, and XP. Base Rarity Score can be increased by dressing the Aavegotchi in Wearables (ERC-1155), Kinship can be increased by petting the Aavegotchi twice daily at 12-hour intervals, and XP can be increased by participating in the DAO, attending community calls, and participating in minigame XP events.

Aavegotchi’s also have intrinsic value through their spirit force. Spirit force are interest bearing Tokens from the Aave protocol that are required to bring an Aavegotchi to life. Each Aavegotchi requires a specific type of Spirit Force, which can be determined by looking at the symbol on their head. Owner’s can liquidate the staked tokens at any time, however, liquidating the Spirit Force means you lose your Gotchi.

BuyLink
10Decentral Games - DG 

Decentral Games builds free, play-to-earn games in the metaverse that give players economic freedom through aligned incentives, self-custody and delegation of yield-bearing metaverse assets. Decentral Games’ play-to-earn metaverse poker game (ICE Poker) generates revenue for the DG Treasury through NFT mints, secondary sale royalties, activations, and upgrades.

DG is a governance token that governs the Decentral Games treasury, which accrues value from the ICE Poker ecosystem. Staked DG (xDG) allocates votes on DG Treasury allocation and economic policy to grow and strengthen the DG ecosystem. ICE is the free play play-to-earn token and in-game currency utilized in the DG ecosystem to incentivize metaverse poker player liquidity.

In order to participate, players will need to obtain at least one exclusive ICE NFT Wearable either through purchase or delegation. When holding a one-of-a-kind ICE NFT, players will be allocated a set amount of Chips which are used to play ICE Poker. 

BuyLink
11Illuvium - ILV 

Illuvium is an open-world fantasy battle game built on the Ethereum blockchain. Often touted as the first AAA game on Ethereum, Illuvium looks to provide a source of entertainment to both casual gamers and hardcore DeFi fans through a range of collecting and trading features.

SILV cannot be withdrawn from the game and is not represented by a blockchain-based asset.

BuyLink
12League of Kingdoms - LOKA 

League of Kingdoms (LOKA) is a blockchain-based Massively Multiplayer Online (MMO) strategy game. As a play-to-earn ecosystem League of Kingdoms allows players to earn real income through in-game activity.

During gameplay users can build kingdoms, raise armies, form alliances and compete on the battlefields for power and wealth. The game supports player-versus-environment (PvE), player-versus-player (PvP) and party-play (MMO) gaming modes.

While the League of Kingdoms’s governance token LOKA allows holders to take part in the decision-making process on the platform, purchase in-game items and profit through staking, the project’s utility token called DST (Dragon Soul Token) is necessary for breeding Dragos, the dragon-like in-game characters.

BuyLink
13StarLink - STARL

Launch into the new frontier of virtual space with the STARL Metaverse. Adventure through the cosmos alone or with others and discover space stations where you can meet people, trade items and NFTs, access various gaming experiences and entertainment, modify your spaceship, learn, craft, and create.

The STARL Metaverse will act as a gaming launchpad, with the first game Warp Nexus being adapted and developed by Wyrmbite Studios. Warp Nexus is a vast space exploration and play-to-earn space MMO. Use the $STARL token to build and modify ships, hire other pilots to help guide or battle through missions, trade useful or cosmetic items and upgrades, and much more.

The STARL Marketplace is the interconnection between the metaverse, games, and blockchain. Use it to find, create, and trade NFT items for your adventures and virtual life in space. 

BuyLink
14Boson Protocol - BOSON 

Boson Protocol (BOSON) is a decentralized infrastructure for e-commerce transactions. The ecosystem enables the exchange of digital value for real-world products and services through the use of tokenized futures contracts. Сommitments to buy and sell physical assets are represented as stateful non-fungible tokens (NFTs) on the platform.

Together with its native utility token BOSON, the protocol aims to demonopolize commerce and allow buyers and merchants to interact with minimal intervention from intermediaries.

BOSON tokens serve both to govern the ecosystem and to incentivize actions that can maximize the supply of quality NFT redemptions. A user can acquire the currency by participating in development bounties, joining meetups, entering competitions and being an active member of the community. As stated in its official lightpaper, BOSON accrues value from transaction fees and commerce data sales via Boson’s Web 3.0. data marketplace.

BuyLink
15Victoria - VR 

Victoria VR is a Blockchain-based MMORPG in Virtual Reality with Realistic Graphics built on Unreal Engine, created and owned by its users. The whole world is built to be a universal platform for all virtual realities, games, and decentralized applications, collectively creating a Metaverse — a shared virtual realm, the 3D internet.

In the Victoria VR World, there will be games, quests, never-ending adventure, virtual galleries, and The Big Market VR where you can exchange NFT's in 3D! In addition, users will be rewarded for each of their activities in the VR world.

Victoria VR Tokens (VR) are the native utility tokens and will be the only acceptable currency in the Victoria VR world. 

BuyLink
16Aurory - AURY Aurory is a tactical, turn-based, NFT-creature battler JRPG built on the Solana Blockchain. Players are invited to explore a rich and diverse universe where they will travel across the worlds of Antik and Tokané as they complete quests, discover lost relics, defeat enemies, and compete against other players using creatures called “Nefties”.BuyLink
17Binamon - BMONBinamon is a complete metaverse of Digital Monsters that live on the Binance Smart Chain (BSC), which allows millions of people to join the NFT & blockchain-based gaming world in an easy, creative and fun way.BuyLink
18GensoKishi Metaverse - MV

GensoKishi Online Metaworld or "Genso" for short, is a GameFi and metaverse incarnation of the award-winning Nintendo Switch/PS4 game “Elemental Knights”.

On this GameFi version, all these items will now be registered on the blockchain to be transferred, sold, and bought as NFTs.

BuyLink
19NFT Worlds - WRLD 

NFT Worlds is a play-to-earn (P2E) metaverse platform based on Minecraft, and built on blockchain technology. Players can purchase non-fungible tokens (NFTs), explore community-created metaverses, play games and earn cryptocurrencies — a trending sector coined GameFi.

Players collect unique pieces of digital real estate, and game plots are algorithmically generated, creating an open virtual world. There are 10,000 worlds available in the NFT Worlds collection.

The decentralized platform is community driven and runs on Ethereum. NFT Worlds has its own in-game cryptocurrency — the WRLD token, which can be obtained as payment for gaming experience, in addition, WRLD can be won in the mini-games of the ecosystem.

BuyLink
20Torum - XTM 

Torum is a SocialFi Metaverse ecosystem that is specially designed for cryptocurrency users and projects.

The Web 3.0 ecosystem is built on a social media platform at its core, integrated with a yield farming hub for DeFi players, an NFT marketplace for crypto artists and Avatar NFT for Metaverse enthusiasts.

Torum strives to become an open, safe and interconnected entry point for crypto users to discuss crypto and get connected.

BuyLink
21RMRK - RMRK RMRK.app is a part of Kusama's broader NFT strategy and a way to abuse Kusama's system.remark extrinsic to write custom notes onto the chain in a standardized and structured way. The protocol runs on the Kusama blockchain.
 
BuyLink
22DeFi Kingdoms - JEWEL 

DeFi Kingdoms (JEWEL) is a browser-based blockchain game combining several DeFi elements in an intriguing and compelling way.

Its gameplay elements merge together a DEX, an NFT marketplace, and a liquidity pool all under an umbrella of fantasy pixel art, giving the game its trademark combination of DeFi and retro game design. In this fashion, the team behind DeFi Kingdoms wants to “embrace the full potential of the blockchain in game form” and create synergies between gaming and decentralized finance.

BuyLink
23SENSO - SENSO 

SENSO token is the in-platform currency of Sensorium Galaxy, a social VR platform that aims to rethink the way people interact with each other and experience the arts.

ERC20 SENSO token drives all value transactions within Sensorium Galaxy, an alternate universe that is being built in partnership with artists, producers, and entertainment companies.

BuyLink
24REVV - REVV 

REVV (REVV) is a utility token used as an in-game currency in blockchain motorsport games developed by Animoca Brands. It serves to maintain the gaming economy in F1 Delta Time, MotoGP Ignition and REVV Racing. These projects implement the concept of play-to-earn, through which gamers are provided with financial benefits in the form of cryptocurrency for their contribution to the game world.

During gameplay, REVV is obtained as a reward for participating in time-trial races and grand-prix tournaments, as well as through staking of the race cars and collecting dividends from track ownership. Players can spend the currency on non-fungible token (NFT) purchases and gameplay entry fees inside of this digital universe.

BuyLink
25DeFi Land - DFL

DeFi Land is a multi-chain agriculture-simulation game created to gamify Decentralized Finance. Our game will have all the features that traditional platforms have but it will be gathered all in one place.

Players will be able to start playing the game for free, grind their way up to the play-2-earn tier, compete with others, craft, trade and more.

BuyLink
26Polka City - POLC 

Polkacity is an NFT marketplace that aims to “revolutionize the ownership of virtual assets” by building the world’s first 3D and AR NFT platform that will be on multiple blockchains. Users can purchase and own virtual taxis, gas stations, and services and earn interest on their assets.

By holding the NFTs representing them, users receive weekly payments as the virtual city combining different DeFi elements grows. Polkacity is constantly expanding the available assets, now also including land and infrastructure.

BuyLink
27Avocado DAO - AVG 

Avocado DAO will focus on investing in current and future NFT (Non-Fungible Token) assets within games and emerging metaverses and lend the NFTs back to their guild members to optimize yield. The goal is to share the profits of the DAO with the guild members and the owners of the Avocado Guild ($AVG) token and maximize the utility of all the NFT assets owned by Avocado DAO.

Avocado DAO not only invests in NFT assets, but is also focused on growing and enriching a community for virtual gamers to produce content as well as enjoy blockchain games.

BuyLink
28Onston - ONSTON

ONSTON is a link that integrates or expands all members of the metaverse community. ONSTON team will build a multi-metaverse to integrate various metaverse.

ONSTON team will build game, economy, culture, and communication platform in ONSTON metaverse using technologies of ONSTON team's VR (virtual reality) and AR (augmented reality) production know-how, facial recognition technology, and VR game to provide users more advanced experience

BuyLink
29IOI Token - IOI 

IOI Token is a utility token of a unique project that combines trading, gaming, and blockchain technology.

The backbone of the project are NFTs and complete ecosystem consisting of Marketplace, Multichain Wallet and play-to-earn games. IOI Token is tying this ecosystem together.

BuyLink
30Kalao - KLO 

Kalao (KLO) is a non-fungible token (NFT) ecosystem built on Avalanche (AVAX), a layer 1 blockchain. It aims to accelerate the adoption of virtual reality (VR) technology and combines its own VR showroom with DeFi capabilities on its NFT marketplace.

On the Kalao NFT marketplace, users can create, sell, purchase and collect NFTs. Furthermore, they can also showcase their NFT collections in a personalized 3D NFT gallery. By using Avalanche as its blockchain of choice, Kalao offers fast and secure transactions at low fees. Kalao also aims to integrate NFTs into real-world use cases by enabling users to exhibit their art, sell luxury goods through the marketplace, or even use it as an event ticketing framework. 

BuyLink
31Ethermon - EMONEthermon is a decentralized game where you can catch, train, transform digital Monsters and trade them. Ethermon, your assets are protected thanks to the blockchain technology, they fully belong to you and will never be taken away.BuyLink
32StarSharks - SEA 

StarSharks is a community-driven shark metaverse where players, developers and investors could define the value evolution of underlying NFTs in a sustainable ecosystem.

This project aims to cultivate and share value of content with the community, and to disrupt the current GameFi world where assets are isolated in one game.

BuyLink

article data source: coinmarketcap


How and Where to Buy Metaverse Tokens?

You will have to first buy one of the major cryptocurrencies, usually either Bitcoin (BTC), Ethereum (ETH), Tether (USDT), Binance (BNB)…

We will use Binance Exchange here as it is one of the largest crypto exchanges that accept fiat deposits.

Once you finished the KYC process. You will be asked to add a payment method. Here you can either choose to provide a credit/debit card or use a bank transfer, and buy one of the major cryptocurrencies, usually either Bitcoin (BTC), Ethereum (ETH), Tether (USDT), Binance (BNB)…

☞ SIGN UP ON BINANCE

Once finished you will then need to make a BTC/ETH/USDT/BNB deposit to the exchange from Binance depending on the available market pairs. After the deposit is confirmed you may then purchase Coin/Token from the Binance exchange.

Read more: Best Virtual Reality coins by Volume

Thank you for reading !

#blockchain #bitcoin #cryptocurrency

What is GEEK

Buddha Community

Top Metaverse Crypto tokens
Aylin Hazel

Aylin Hazel

1648115675

Germany: 44% Will Invest in #Crypto and Join ‘The Future of Finance’

Germany was the first country to recognize #Bitcoins as “units of value” and that they could be classified as a “financial instrument.”

Legal regulation for the decentralized industry in Germany is ongoing. Now, 16% of the German population 18 to 60 are #crypto investors.

These people who own #cryptocurrencies or have traded cryptocurrencies in the past six months.

41% of these #crypto investors intend to increase the share of their investments in #crypto in the next six months. Another 13% of Germans are #crypto-curious.

They intend to invest in #cryptocurrencies too. Yet, only 23% of the #crypto-curious said they are highly likely to invest, with the rest remaining hesitant.

Mike doctor

Mike doctor

1624293660

7 Top Crypto Stocks To Buy in 2021 (High Growth). DO NOT MISS!!!

In this video, I’m going through 7 TOP crypto stocks to buy today - I’ve done the research and these are my top picks if you are bullish on the crypto market!
📺 The video in this post was made by Charlie Chang
The origin of the article: https://www.youtube.com/watch?v=R4IjFe_Ge08
🔺 DISCLAIMER: The article is for information sharing. The content of this video is solely the opinions of the speaker who is not a licensed financial advisor or registered investment advisor. Not investment advice or legal advice.
Cryptocurrency trading is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money
🔥 If you’re a beginner. I believe the article below will be useful to you ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner
⭐ ⭐ ⭐The project is of interest to the community. Join to Get free ‘GEEK coin’ (GEEKCASH coin)!
☞ **-----CLICK HERE-----**⭐ ⭐ ⭐
Thanks for visiting and watching! Please don’t forget to leave a like, comment and share!

#bitcoin #blockchain #top crypto stocks #op crypto stocks to buy in 2021 #7 top crypto stocks to buy in 2021 #crypto

Mike doctor

Mike doctor

1624309200

4 Top Ways to Make Passive Income with Crypto (I Earn $2,685 per Month)

In this video, I’m showing you the 4 top ways to make passive income with cryptocurrencies in 2021. If you want to know how to make money with crypto, try out these 4 strategies that anyone can do! And make sure to watch until the end for a full explanation and walkthrough of how these methods work.
I personally made $2,685 passive income last month using crypto (previous months even more), and I wanted to reveal the best ways for you to do the same. Whether you have bitcoin, ethereum, litecoin, GUSD, or pretty much any other coin, you can make money. And even you currently don’t have any crypto, 2 of these methods will still work!

0:00 - Introduction
00:17 - Crypto Affiliate marketing (my strategies)
00:41 - Walkthrough of the Coinbase refer a friend program
01:38 - Walkthrough of the Coinbase official affiliate program
03:38 - Crypto lending using BlockFi (up to 8.6% APY)
04:21 - Walkthrough of BlockFi’s website and interest rates
06:34 - My BlockFi dashboard and earnings
07:43 - Bitcoin mining
10:14 - Staking
10:40 - Taking you through crypto.com’s staking rewards page
12:22 - How much I have made and outro
📺 The video in this post was made by Charlie Chang
The origin of the article: https://www.youtube.com/watch?v=58WKjp57TXs
🔺 DISCLAIMER: The article is for information sharing. The content of this video is solely the opinions of the speaker who is not a licensed financial advisor or registered investment advisor. Not investment advice or legal advice.
Cryptocurrency trading is VERY risky. Make sure you understand these risks and that you are responsible for what you do with your money
🔥 If you’re a beginner. I believe the article below will be useful to you ☞ What You Should Know Before Investing in Cryptocurrency - For Beginner
⭐ ⭐ ⭐The project is of interest to the community. Join to Get free ‘GEEK coin’ (GEEKCASH coin)!
☞ **-----CLICK HERE-----**⭐ ⭐ ⭐
Thanks for visiting and watching! Please don’t forget to leave a like, comment and share!

#bitcoin #crypto #ways to make passive income with crypto #$2,685 per month #4 top ways to make passive income with crypto (i earn $2,685 per month) #4 top ways to make passive income with crypto

Royce  Reinger

Royce Reinger

1658068560

WordsCounted: A Ruby Natural Language Processor

WordsCounted

We are all in the gutter, but some of us are looking at the stars.

-- Oscar Wilde

WordsCounted is a Ruby NLP (natural language processor). WordsCounted lets you implement powerful tokensation strategies with a very flexible tokeniser class.

Features

  • Out of the box, get the following data from any string or readable file, or URL:
    • Token count and unique token count
    • Token densities, frequencies, and lengths
    • Char count and average chars per token
    • The longest tokens and their lengths
    • The most frequent tokens and their frequencies.
  • A flexible way to exclude tokens from the tokeniser. You can pass a string, regexp, symbol, lambda, or an array of any combination of those types for powerful tokenisation strategies.
  • Pass your own regexp rules to the tokeniser if you prefer. The default regexp filters special characters but keeps hyphens and apostrophes. It also plays nicely with diacritics (UTF and unicode characters): Bayrūt is treated as ["Bayrūt"] and not ["Bayr", "ū", "t"], for example.
  • Opens and reads files. Pass in a file path or a url instead of a string.

Installation

Add this line to your application's Gemfile:

gem 'words_counted'

And then execute:

$ bundle

Or install it yourself as:

$ gem install words_counted

Usage

Pass in a string or a file path, and an optional filter and/or regexp.

counter = WordsCounted.count(
  "We are all in the gutter, but some of us are looking at the stars."
)

# Using a file
counter = WordsCounted.from_file("path/or/url/to/my/file.txt")

.count and .from_file are convenience methods that take an input, tokenise it, and return an instance of WordsCounted::Counter initialized with the tokens. The WordsCounted::Tokeniser and WordsCounted::Counter classes can be used alone, however.

API

WordsCounted

WordsCounted.count(input, options = {})

Tokenises input and initializes a WordsCounted::Counter object with the resulting tokens.

counter = WordsCounted.count("Hello Beirut!")

Accepts two options: exclude and regexp. See Excluding tokens from the analyser and Passing in a custom regexp respectively.

WordsCounted.from_file(path, options = {})

Reads and tokenises a file, and initializes a WordsCounted::Counter object with the resulting tokens.

counter = WordsCounted.from_file("hello_beirut.txt")

Accepts the same options as .count.

Tokeniser

The tokeniser allows you to tokenise text in a variety of ways. You can pass in your own rules for tokenisation, and apply a powerful filter with any combination of rules as long as they can boil down into a lambda.

Out of the box the tokeniser includes only alpha chars. Hyphenated tokens and tokens with apostrophes are considered a single token.

#tokenise([pattern: TOKEN_REGEXP, exclude: nil])

tokeniser = WordsCounted::Tokeniser.new("Hello Beirut!").tokenise

# With `exclude`
tokeniser = WordsCounted::Tokeniser.new("Hello Beirut!").tokenise(exclude: "hello")

# With `pattern`
tokeniser = WordsCounted::Tokeniser.new("I <3 Beirut!").tokenise(pattern: /[a-z]/i)

See Excluding tokens from the analyser and Passing in a custom regexp for more information.

Counter

The WordsCounted::Counter class allows you to collect various statistics from an array of tokens.

#token_count

Returns the token count of a given string.

counter.token_count #=> 15

#token_frequency

Returns a sorted (unstable) two-dimensional array where each element is a token and its frequency. The array is sorted by frequency in descending order.

counter.token_frequency

[
  ["the", 2],
  ["are", 2],
  ["we",  1],
  # ...
  ["all", 1]
]

#most_frequent_tokens

Returns a hash where each key-value pair is a token and its frequency.

counter.most_frequent_tokens

{ "are" => 2, "the" => 2 }

#token_lengths

Returns a sorted (unstable) two-dimentional array where each element contains a token and its length. The array is sorted by length in descending order.

counter.token_lengths

[
  ["looking", 7],
  ["gutter",  6],
  ["stars",   5],
  # ...
  ["in",      2]
]

#longest_tokens

Returns a hash where each key-value pair is a token and its length.

counter.longest_tokens

{ "looking" => 7 }

#token_density([ precision: 2 ])

Returns a sorted (unstable) two-dimentional array where each element contains a token and its density as a float, rounded to a precision of two. The array is sorted by density in descending order. It accepts a precision argument, which must be a float.

counter.token_density

[
  ["are",     0.13],
  ["the",     0.13],
  ["but",     0.07 ],
  # ...
  ["we",      0.07 ]
]

#char_count

Returns the char count of tokens.

counter.char_count #=> 76

#average_chars_per_token([ precision: 2 ])

Returns the average char count per token rounded to two decimal places. Accepts a precision argument which defaults to two. Precision must be a float.

counter.average_chars_per_token #=> 4

#uniq_token_count

Returns the number of unique tokens.

counter.uniq_token_count #=> 13

Excluding tokens from the tokeniser

You can exclude anything you want from the input by passing the exclude option. The exclude option accepts a variety of filters and is extremely flexible.

  1. A space-delimited string. The filter will normalise the string.
  2. A regular expression.
  3. A lambda.
  4. A symbol that names a predicate method. For example :odd?.
  5. An array of any combination of the above.
tokeniser =
  WordsCounted::Tokeniser.new(
    "Magnificent! That was magnificent, Trevor."
  )

# Using a string
tokeniser.tokenise(exclude: "was magnificent")
# => ["that", "trevor"]

# Using a regular expression
tokeniser.tokenise(exclude: /trevor/)
# => ["magnificent", "that", "was", "magnificent"]

# Using a lambda
tokeniser.tokenise(exclude: ->(t) { t.length < 4 })
# => ["magnificent", "that", "magnificent", "trevor"]

# Using symbol
tokeniser = WordsCounted::Tokeniser.new("Hello! محمد")
tokeniser.tokenise(exclude: :ascii_only?)
# => ["محمد"]

# Using an array
tokeniser = WordsCounted::Tokeniser.new(
  "Hello! اسماءنا هي محمد، كارولينا، سامي، وداني"
)
tokeniser.tokenise(
  exclude: [:ascii_only?, /محمد/, ->(t) { t.length > 6}, "و"]
)
# => ["هي", "سامي", "وداني"]

Passing in a custom regexp

The default regexp accounts for letters, hyphenated tokens, and apostrophes. This means twenty-one is treated as one token. So is Mohamad's.

/[\p{Alpha}\-']+/

You can pass your own criteria as a Ruby regular expression to split your string as desired.

For example, if you wanted to include numbers, you can override the regular expression:

counter = WordsCounted.count("Numbers 1, 2, and 3", pattern: /[\p{Alnum}\-']+/)
counter.tokens
#=> ["numbers", "1", "2", "and", "3"]

Opening and reading files

Use the from_file method to open files. from_file accepts the same options as .count. The file path can be a URL.

counter = WordsCounted.from_file("url/or/path/to/file.text")

Gotchas

A hyphen used in leu of an em or en dash will form part of the token. This affects the tokeniser algorithm.

counter = WordsCounted.count("How do you do?-you are well, I see.")
counter.token_frequency

[
  ["do",   2],
  ["how",  1],
  ["you",  1],
  ["-you", 1], # WTF, mate!
  ["are",  1],
  # ...
]

In this example -you and you are separate tokens. Also, the tokeniser does not include numbers by default. Remember that you can pass your own regular expression if the default behaviour does not fit your needs.

A note on case sensitivity

The program will normalise (downcase) all incoming strings for consistency and filters.

Roadmap

Ability to open URLs

def self.from_url
  # open url and send string here after removing html
end

Are you using WordsCounted to do something interesting? Please tell me about it.

Gem Version 

RubyDoc documentation.

Demo

Visit this website for one example of what you can do with WordsCounted.


Contributors

See contributors.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author: Abitdodgy
Source Code: https://github.com/abitdodgy/words_counted 
License: MIT license

#ruby #nlp 

Words Counted: A Ruby Natural Language Processor.

WordsCounted

We are all in the gutter, but some of us are looking at the stars.

-- Oscar Wilde

WordsCounted is a Ruby NLP (natural language processor). WordsCounted lets you implement powerful tokensation strategies with a very flexible tokeniser class.

Are you using WordsCounted to do something interesting? Please tell me about it.

 

Demo

Visit this website for one example of what you can do with WordsCounted.

Features

  • Out of the box, get the following data from any string or readable file, or URL:
    • Token count and unique token count
    • Token densities, frequencies, and lengths
    • Char count and average chars per token
    • The longest tokens and their lengths
    • The most frequent tokens and their frequencies.
  • A flexible way to exclude tokens from the tokeniser. You can pass a string, regexp, symbol, lambda, or an array of any combination of those types for powerful tokenisation strategies.
  • Pass your own regexp rules to the tokeniser if you prefer. The default regexp filters special characters but keeps hyphens and apostrophes. It also plays nicely with diacritics (UTF and unicode characters): Bayrūt is treated as ["Bayrūt"] and not ["Bayr", "ū", "t"], for example.
  • Opens and reads files. Pass in a file path or a url instead of a string.

Installation

Add this line to your application's Gemfile:

gem 'words_counted'

And then execute:

$ bundle

Or install it yourself as:

$ gem install words_counted

Usage

Pass in a string or a file path, and an optional filter and/or regexp.

counter = WordsCounted.count(
  "We are all in the gutter, but some of us are looking at the stars."
)

# Using a file
counter = WordsCounted.from_file("path/or/url/to/my/file.txt")

.count and .from_file are convenience methods that take an input, tokenise it, and return an instance of WordsCounted::Counter initialized with the tokens. The WordsCounted::Tokeniser and WordsCounted::Counter classes can be used alone, however.

API

WordsCounted

WordsCounted.count(input, options = {})

Tokenises input and initializes a WordsCounted::Counter object with the resulting tokens.

counter = WordsCounted.count("Hello Beirut!")

Accepts two options: exclude and regexp. See Excluding tokens from the analyser and Passing in a custom regexp respectively.

WordsCounted.from_file(path, options = {})

Reads and tokenises a file, and initializes a WordsCounted::Counter object with the resulting tokens.

counter = WordsCounted.from_file("hello_beirut.txt")

Accepts the same options as .count.

Tokeniser

The tokeniser allows you to tokenise text in a variety of ways. You can pass in your own rules for tokenisation, and apply a powerful filter with any combination of rules as long as they can boil down into a lambda.

Out of the box the tokeniser includes only alpha chars. Hyphenated tokens and tokens with apostrophes are considered a single token.

#tokenise([pattern: TOKEN_REGEXP, exclude: nil])

tokeniser = WordsCounted::Tokeniser.new("Hello Beirut!").tokenise

# With `exclude`
tokeniser = WordsCounted::Tokeniser.new("Hello Beirut!").tokenise(exclude: "hello")

# With `pattern`
tokeniser = WordsCounted::Tokeniser.new("I <3 Beirut!").tokenise(pattern: /[a-z]/i)

See Excluding tokens from the analyser and Passing in a custom regexp for more information.

Counter

The WordsCounted::Counter class allows you to collect various statistics from an array of tokens.

#token_count

Returns the token count of a given string.

counter.token_count #=> 15

#token_frequency

Returns a sorted (unstable) two-dimensional array where each element is a token and its frequency. The array is sorted by frequency in descending order.

counter.token_frequency

[
  ["the", 2],
  ["are", 2],
  ["we",  1],
  # ...
  ["all", 1]
]

#most_frequent_tokens

Returns a hash where each key-value pair is a token and its frequency.

counter.most_frequent_tokens

{ "are" => 2, "the" => 2 }

#token_lengths

Returns a sorted (unstable) two-dimentional array where each element contains a token and its length. The array is sorted by length in descending order.

counter.token_lengths

[
  ["looking", 7],
  ["gutter",  6],
  ["stars",   5],
  # ...
  ["in",      2]
]

#longest_tokens

Returns a hash where each key-value pair is a token and its length.

counter.longest_tokens

{ "looking" => 7 }

#token_density([ precision: 2 ])

Returns a sorted (unstable) two-dimentional array where each element contains a token and its density as a float, rounded to a precision of two. The array is sorted by density in descending order. It accepts a precision argument, which must be a float.

counter.token_density

[
  ["are",     0.13],
  ["the",     0.13],
  ["but",     0.07 ],
  # ...
  ["we",      0.07 ]
]

#char_count

Returns the char count of tokens.

counter.char_count #=> 76

#average_chars_per_token([ precision: 2 ])

Returns the average char count per token rounded to two decimal places. Accepts a precision argument which defaults to two. Precision must be a float.

counter.average_chars_per_token #=> 4

#uniq_token_count

Returns the number of unique tokens.

counter.uniq_token_count #=> 13

Excluding tokens from the tokeniser

You can exclude anything you want from the input by passing the exclude option. The exclude option accepts a variety of filters and is extremely flexible.

  1. A space-delimited string. The filter will normalise the string.
  2. A regular expression.
  3. A lambda.
  4. A symbol that names a predicate method. For example :odd?.
  5. An array of any combination of the above.
tokeniser =
  WordsCounted::Tokeniser.new(
    "Magnificent! That was magnificent, Trevor."
  )

# Using a string
tokeniser.tokenise(exclude: "was magnificent")
# => ["that", "trevor"]

# Using a regular expression
tokeniser.tokenise(exclude: /trevor/)
# => ["magnificent", "that", "was", "magnificent"]

# Using a lambda
tokeniser.tokenise(exclude: ->(t) { t.length < 4 })
# => ["magnificent", "that", "magnificent", "trevor"]

# Using symbol
tokeniser = WordsCounted::Tokeniser.new("Hello! محمد")
tokeniser.tokenise(exclude: :ascii_only?)
# => ["محمد"]

# Using an array
tokeniser = WordsCounted::Tokeniser.new(
  "Hello! اسماءنا هي محمد، كارولينا، سامي، وداني"
)
tokeniser.tokenise(
  exclude: [:ascii_only?, /محمد/, ->(t) { t.length > 6}, "و"]
)
# => ["هي", "سامي", "وداني"]

Passing in a custom regexp

The default regexp accounts for letters, hyphenated tokens, and apostrophes. This means twenty-one is treated as one token. So is Mohamad's.

/[\p{Alpha}\-']+/

You can pass your own criteria as a Ruby regular expression to split your string as desired.

For example, if you wanted to include numbers, you can override the regular expression:

counter = WordsCounted.count("Numbers 1, 2, and 3", pattern: /[\p{Alnum}\-']+/)
counter.tokens
#=> ["numbers", "1", "2", "and", "3"]

Opening and reading files

Use the from_file method to open files. from_file accepts the same options as .count. The file path can be a URL.

counter = WordsCounted.from_file("url/or/path/to/file.text")

Gotchas

A hyphen used in leu of an em or en dash will form part of the token. This affects the tokeniser algorithm.

counter = WordsCounted.count("How do you do?-you are well, I see.")
counter.token_frequency

[
  ["do",   2],
  ["how",  1],
  ["you",  1],
  ["-you", 1], # WTF, mate!
  ["are",  1],
  # ...
]

In this example -you and you are separate tokens. Also, the tokeniser does not include numbers by default. Remember that you can pass your own regular expression if the default behaviour does not fit your needs.

A note on case sensitivity

The program will normalise (downcase) all incoming strings for consistency and filters.

Roadmap

Ability to open URLs

def self.from_url
  # open url and send string here after removing html
end

Contributors

See contributors.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author: abitdodgy
Source code: https://github.com/abitdodgy/words_counted
License: MIT license

#ruby  #ruby-on-rails