← Ìrònú — Notes from D.

Before the Algorithm, There Was the Oracle

From 256 odù to ChatGPT. How did I end up down this rabbit hole?

Oracle meets algorithm: a babaláwo with an Ifá tray on the left and cartoon Dami at her laptop on the right.
Oracle meets algorithm.

I've been thinking about something recently.

We talk about artificial intelligence as though we've entered this completely new era. And in many ways, we have.

But how much of the thinking behind it is actually new? Not the technology itself, obviously. I'm talking about recognising patterns, learning from experience and predicting what might happen next.

Because surely humans have been doing that for thousands of years?

Spotify predicts what music we might enjoy. Netflix recommends what to watch next. Instagram somehow knows how to keep us scrolling when we should probably be doing something more productive. And now we've got ChatGPT, which people are asking everything from career advice to whether they should break up with their boyfriend.

But long before computers, people were studying the stars, observing changes in nature and developing systems for interpreting patterns.

And long before anyone was asking ChatGPT for life advice, people were consulting oracles.

An oracle, in its historical sense, could refer to a person, place or means through which people sought divine guidance, often about decisions or uncertain events.

Have we really invented new ways of thinking about the future, or have we just developed more sophisticated tools for something humans have always been curious about?

Remember those babaláwo in Nollywood?

If you grew up watching Nigerian films, particularly the older Nollywood ones, you'll probably remember the babaláwo scenes.

The dramatic music. The dark rooms. Someone chanting. And the moment the babaláwo looked up, you just knew somebody was about to receive terrible news.

Scene from a Nigerian film showing a group seated in a traditional ritual setting with red fabric and ceremonial objects
A suspenseful scene from an older Nigerian film.

Looking back, the heavy sound effects did half the frightening. It was an entertaining portrayal, but hardly an introduction to the knowledge and interpretation behind Ifá.

Honestly, those scenes used to scare the living daylights out of me.

Although, looking back, I do wonder how much of what we thought we knew about traditional practices came from watching those films.

Because the more I've started researching Yoruba cultural traditions, the more I've realised there's a lot I simply didn't know.

Ifá is a traditional Yoruba system of divination, philosophy and knowledge associated with Ọ̀rúnmìlà, a deity of wisdom and divination in Yoruba religious belief.

According to UNESCO, the Ifá literary corpus is organised around 256 odù. An odù is one of the principal signs or configurations used within the system, associated with an extensive body of verses, stories and teachings. [1]

During a consultation, a babaláwo, a trained Ifá priest and diviner, uses sacred palm nuts or a divination chain to identify an odù.

The practitioner then draws upon the associated verses, known as ẹsẹ Ifá, to interpret the circumstances of the person seeking guidance.

Illustrated traditional Ifá divination tray, divination chain, and palm-nut-like implements on a warm neutral background.
An illustrated ọpọn Ifá and divination materials.

Those 256 configurations have a mathematical structure that can be represented using binary.

Now, before anyone thinks I've suddenly become a mathematician, let me explain.

Binary simply means working with two possible states, often represented as 0 and 1 in computing.

An odù signature can be represented through eight positions, each with two possible states.

So mathematically: 2⁸ = 256 possible combinations.

Eight positions, each with two possible states. One example pattern is shown; every position can flip, giving 256 possible combinations.

What fascinated me was discovering this mathematical structure within a Yoruba knowledge system passed down long before modern computers.

Now, I'm not suggesting the babaláwo had an ancient MacBook hidden somewhere in Yorubaland.

Although, imagine.

And it doesn't mean Ifá was an early form of artificial intelligence. A system having a binary structure is not the same thing as a machine learning from data.

But it made me wonder how many other traditional systems contained mathematical ideas or structured ways of organising knowledge that we might not immediately recognise.

The more I read, the more interesting it became.

Professor Wándé Abímbọ́lá, a Yoruba scholar and practitioner of Ifá, has spent decades documenting its oral literature.

And what I hadn't fully appreciated was just how much exists beyond those 256 signs.

The associated verses explore human relationships, morality, history, destiny and the consequences of people's actions. [2]

There's an extensive body of knowledge involved in learning and interpreting them.

Scholar Adélékè Adéẹ̀kọ́ has examined the interpretive freedom involved in Ifá divination, showing that the relationship between signs and their associated narratives isn't simply a fixed lookup exercise. [3]

So there's a structured system, but there's also human interpretation.

A computer can identify statistical patterns and produce responses, but that doesn't necessarily mean it understands their cultural or personal significance.

And Ifá wasn't the only example I came across.

In Mali, anthropologist Ron Eglash studied mathematical recursion within Bamana sand divination. Recursion involves repeating or reapplying a procedure, and it appears in various forms of mathematics and computing. [4]

In China, the I Ching, or Book of Changes, uses combinations of broken and unbroken lines to form 64 hexagrams.

And the word algorithm itself traces its history to the ninth-century mathematician al-Khwārizmī. An algorithm is a defined set of steps for solving a problem or completing a task. [5]

So algorithms, in that broader mathematical sense, existed long before computers.

Of course, these traditions developed for different purposes. And religious divination isn't the same thing as scientific prediction.

Have we just created a modern oracle?

Despite all our technological progress, we're still asking remarkably familiar questions.

Am I making the right decision? What's going to happen next? Will everything work out?

We've gone from consulting oracles to consulting algorithms.

Now, the methods are completely different. Traditional divination involves religious and cultural practices, whereas modern predictive AI relies on computational techniques and statistical relationships.

But our desire for answers, reassurance and some sense of what might come next feels rather familiar.

And sometimes I wonder whether we place too much confidence in technology simply because it can process more information than we can.

Because let's be fair, ChatGPT can be extremely confident and completely wrong.

A convincing answer isn't necessarily a correct one.

Interestingly, a study published in 2025 interviewed seven Ifá priests in southwestern Nigeria about the possibility of computerising divination.

Some welcomed its potential to improve access to aspects of the tradition, while others raised concerns about spiritual significance and the misuse of sacred knowledge. [6]

If we programmed a computer to generate all 256 odù and retrieve their associated verses, would that mean we'd recreated Ifá?

Or would we have digitised only one part of a much larger tradition?

And this is where it gets personal.

I've been exploring some of these questions through The Woven Voice, a project looking at the relationships between Yoruba language, rhythm, oral traditions and textile patterns.

But there's a difference between measuring something and understanding what it means.

A computer might analyse the pitch or rhythm of an oríkì, a form of Yoruba praise poetry often connected to a person, family or lineage.

But would it understand what that oríkì means to the family it belongs to?

And when we convert cultural knowledge into data, how do we decide which parts to preserve?

I don't think technology is necessarily the problem. It could be incredibly useful for documenting and sharing traditions.

But I do wonder whether we sometimes become more interested in what technology can do with cultural knowledge than in understanding the knowledge itself.

So, were algorithms around before computers?

Absolutely.

People developed mathematical procedures and structured ways of reasoning long before electronic computing.

But modern artificial intelligence is something different, and I think that distinction matters.

And Ifá doesn't need to resemble a computer for us to appreciate its intellectual complexity.

And I've ended up learning about a Yoruba knowledge system with an extraordinary mathematical structure, an extensive oral tradition and generations of interpretation behind it.

But I suppose that's what I enjoy about following these little questions. You start somewhere completely ordinary and end up discovering something you hadn't even thought to look for.

We've become so fascinated by what machines might learn next. I wonder whether we're equally curious about what humans have already learned.

After all, we've been trying to make sense of the future for a very long time.

We've just become rather good at putting it on a screen.

Four-panel pink and yellow comic showing a fictional consultation between a babaláwo and cartoon Dami about future opportunities.
One imaginary consultation, two very confident answers.

Notes from D.

Ìrònú — a collection of thoughts, questions and things I find curious.

Sources

  1. UNESCO, Ifá Divination System
  2. Wándé Abímbọ́lá (1976), Ifá: An Exposition of Ifá Literary Corpus
  3. Adélékè Adéẹ̀kọ́, “Writing” and “Reference” in Ifá Divination Chants
  4. Ron Eglash (1997), Bamana Sand Divination: Recursion in Ethnomathematics
  5. NASA (2018), How Algorithm Got Its Name
  6. Fayemi, Akin-Otiko & Ofuasia (2025), Moral Challenges and Technological Prospects of Computerized Ifá Divination
Image credits
Cover illustration
Tijani Works · Creative direction · AI-assisted
Nollywood film still
Author-supplied · Film and rights holder unconfirmed
Ifá illustration
Tijani Works · AI-assisted depiction
Closing comic
Tijani Works · Creative direction · AI-assisted