Claude 4 Sonnetのコーディング能力を試す 7
Claude 4 が話題を呼んでいる.今まではReactで動的な処理をしていたが,今回は勉強用のwebページを作ってみることにした.
すると動的かつ,内容をまとめたページを作成してくれた.これは勉強の仕方が変わるだろう.
プロンプトは下記.
この考えを学べるようにわかりやすく整理したwebページを作成.
This faculty has justly been considered as one of the chief distinctions between man and the lower animals. But man, as a highly competent judge, Archbishop Whately remarks, “is not the only animal that can make use of language to express what is passing in his mind, and can understand, more or less, what is so expressed by another.” (47. Quoted in ‘Anthropological Review,’ 1864, p. 158.) In Paraguay the Cebus azarae when excited utters at least six distinct sounds, which excite in other monkeys similar emotions. (48. Rengger, ibid. s. 45.)
> Darwin (1871)
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ダーウィンの言語能力論 - 人間と動物の境界線</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', '游ゴシック', Arial, sans-serif;
line-height: 1.8;
color: #333;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
}
.container {
max-width: 900px;
margin: 0 auto;
padding: 40px 20px;
}
.hero {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 40px;
margin-bottom: 30px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
text-align: center;
transform: translateY(0);
transition: transform 0.3s ease;
}
.hero:hover {
transform: translateY(-5px);
}
h1 {
font-size: 2.5em;
color: #4a5568;
margin-bottom: 10px;
background: linear-gradient(45deg, #667eea, #764ba2);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle {
font-size: 1.2em;
color: #718096;
margin-bottom: 20px;
}
.year {
display: inline-block;
background: linear-gradient(45deg, #667eea, #764ba2);
color: white;
padding: 8px 20px;
border-radius: 25px;
font-weight: bold;
margin-top: 10px;
}
.content-card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 15px;
padding: 30px;
margin-bottom: 20px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.content-card:hover {
transform: translateY(-3px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
h2 {
color: #4a5568;
font-size: 1.8em;
margin-bottom: 20px;
border-left: 4px solid #667eea;
padding-left: 15px;
}
.original-text {
background: linear-gradient(135deg, #f7fafc, #edf2f7);
border-left: 4px solid #667eea;
padding: 25px;
margin: 20px 0;
border-radius: 10px;
font-style: italic;
position: relative;
overflow: hidden;
}
.original-text::before {
content: '"';
font-size: 4em;
color: #667eea;
position: absolute;
top: -10px;
left: 10px;
opacity: 0.3;
}
.key-points {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin: 30px 0;
}
.point-card {
background: linear-gradient(135deg, #4299e1, #667eea);
color: white;
padding: 25px;
border-radius: 15px;
transition: transform 0.3s ease;
}
.point-card:hover {
transform: scale(1.05);
}
.point-number {
font-size: 2em;
font-weight: bold;
opacity: 0.7;
margin-bottom: 10px;
}
.examples {
background: linear-gradient(135deg, #fef5e7, #fed7aa);
padding: 25px;
border-radius: 15px;
margin: 20px 0;
}
.example-item {
display: flex;
align-items: center;
margin: 15px 0;
padding: 15px;
background: rgba(255, 255, 255, 0.7);
border-radius: 10px;
transition: all 0.3s ease;
}
.example-item:hover {
background: rgba(255, 255, 255, 0.9);
transform: translateX(10px);
}
.animal-icon {
font-size: 2em;
margin-right: 15px;
}
.modern-perspective {
background: linear-gradient(135deg, #e6fffa, #b2f5ea);
padding: 25px;
border-radius: 15px;
margin: 20px 0;
}
.timeline {
position: relative;
padding-left: 30px;
}
.timeline::before {
content: '';
position: absolute;
left: 15px;
top: 0;
bottom: 0;
width: 2px;
background: linear-gradient(to bottom, #667eea, #764ba2);
}
.timeline-item {
position: relative;
margin-bottom: 30px;
padding: 20px;
background: rgba(255, 255, 255, 0.9);
border-radius: 10px;
margin-left: 20px;
}
.timeline-item::before {
content: '';
position: absolute;
left: -35px;
top: 25px;
width: 12px;
height: 12px;
background: #667eea;
border-radius: 50%;
border: 3px solid white;
}
.interactive-section {
background: linear-gradient(135deg, #f0fff4, #c6f6d5);
padding: 30px;
border-radius: 15px;
margin: 30px 0;
text-align: center;
}
.question-button {
background: linear-gradient(45deg, #48bb78, #38a169);
color: white;
border: none;
padding: 15px 30px;
border-radius: 25px;
font-size: 1.1em;
cursor: pointer;
margin: 10px;
transition: transform 0.3s ease;
}
.question-button:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}
.answer {
display: none;
margin-top: 20px;
padding: 20px;
background: rgba(255, 255, 255, 0.8);
border-radius: 10px;
text-align: left;
}
.footer {
text-align: center;
margin-top: 40px;
color: white;
font-size: 0.9em;
opacity: 0.8;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.content-card {
animation: fadeInUp 0.6s ease forwards;
}
.content-card:nth-child(even) {
animation-delay: 0.2s;
}
.content-card:nth-child(odd) {
animation-delay: 0.4s;
}
</style>
</head>
<body>
<div class="container">
<div class="hero">
<h1>ダーウィンの言語能力論</h1>
<p class="subtitle">人間と動物を分ける境界線はどこにあるのか?</p>
<div class="year">1871年</div>
</div>
<div class="content-card">
<h2>📜 原文(英語)</h2>
<div class="original-text">
This faculty has justly been considered as one of the chief distinctions between man and the lower animals. But man, as a highly competent judge, Archbishop Whately remarks, "is not the only animal that can make use of language to express what is passing in his mind, and can understand, more or less, what is so expressed by another." In Paraguay the Cebus azarae when excited utters at least six distinct sounds, which excite in other monkeys similar emotions.
</div>
<p><strong>出典:</strong>ダーウィン『人間の由来』(1871年)</p>
</div>
<div class="content-card">
<h2>🌸 日本語訳</h2>
<p>この能力(言語能力)は、人間と下等動物を区別する主要な特徴の一つとして、正当に考えられてきました。しかし、大主教ホイートリーが述べているように、「言語を用いて心の中で起こっていることを表現し、他者によって表現されたことを多少なりとも理解できるのは、人間だけではない」のです。パラグアイでは、興奮したアザラナキザル(Cebus azarae)が少なくとも6種類の異なる音を発し、それが他のサルたちにも同様の感情を引き起こします。</p>
</div>
<div class="content-card">
<h2>🔑 重要なポイント</h2>
<div class="key-points">
<div class="point-card">
<div class="point-number">1</div>
<h3>従来の考え</h3>
<p>言語能力は人間を動物と区別する最も重要な特徴とされていた</p>
</div>
<div class="point-card">
<div class="point-number">2</div>
<h3>ダーウィンの疑問</h3>
<p>本当に人間だけが言語的なコミュニケーションを行うのだろうか?</p>
</div>
<div class="point-card">
<div class="point-number">3</div>
<h3>具体的証拠</h3>
<p>アザラナキザルの例:6種類の音で感情を伝達</p>
</div>
</div>
</div>
<div class="content-card">
<h2>🐒 動物のコミュニケーション例</h2>
<div class="examples">
<h3>ダーウィンが注目した例</h3>
<div class="example-item">
<div class="animal-icon">🐒</div>
<div>
<strong>アザラナキザル(Cebus azarae)</strong><br>
興奮時に6種類の異なる音を発し、他の個体に感情を伝達
</div>
</div>
<h3>現代に知られる他の例</h3>
<div class="example-item">
<div class="animal-icon">🐝</div>
<div>
<strong>ミツバチの踊り</strong><br>
花の場所と距離を仲間に伝える「8の字ダンス」
</div>
</div>
<div class="example-item">
<div class="animal-icon">🐋</div>
<div>
<strong>クジラの歌</strong><br>
複雑な音のパターンで仲間とコミュニケーション
</div>
</div>
<div class="example-item">
<div class="animal-icon">🐦</div>
<div>
<strong>鳥のさえずり</strong><br>
縄張りの主張や求愛のメッセージを伝達
</div>
</div>
</div>
</div>
<div class="content-card">
<h2>🕐 歴史的意義</h2>
<div class="timeline">
<div class="timeline-item">
<h3>1871年以前</h3>
<p>言語は人間特有の能力と考えられていた。動物と人間の間には明確な境界線があるとされた。</p>
</div>
<div class="timeline-item">
<h3>ダーウィンの提案</h3>
<p>動物にも原始的な言語能力があることを示唆。人間と動物の境界は連続的なものかもしれない。</p>
</div>
<div class="timeline-item">
<h3>現代への影響</h3>
<p>動物行動学、認知科学の発展。チンパンジーの手話学習、イルカの複雑なコミュニケーションなどの研究に発展。</p>
</div>
</div>
</div>
<div class="content-card">
<h2>🧠 現代の視点</h2>
<div class="modern-perspective">
<h3>ダーウィンの予想は正しかった</h3>
<p>現代の研究により、多くの動物が高度なコミュニケーション能力を持つことが判明しています:</p>
<ul style="margin: 15px 0; padding-left: 20px;">
<li><strong>チンパンジー:</strong>手話を学習し、簡単な文を作成</li>
<li><strong>オウム:</strong>言葉の意味を理解し、適切に使用</li>
<li><strong>イルカ:</strong>個体識別のための「名前」を持つ</li>
<li><strong>ミーアキャット:</strong>危険の種類別に異なる警告音</li>
</ul>
<p>ダーウィンの洞察は、現代の動物認知学の基礎となっています。</p>
</div>
</div>
<div class="content-card">
<div class="interactive-section">
<h2>🤔 理解度チェック</h2>
<p>以下の質問をクリックして、理解を深めましょう:</p>
<button class="question-button" onclick="toggleAnswer('q1')">
Q1: ダーウィンの主張の核心は何ですか?
</button>
<div id="q1" class="answer">
<strong>答え:</strong>人間と動物の言語能力の境界は、従来考えられていたほど明確ではないということです。動物にも原始的な言語的コミュニケーション能力が存在するため、人間の特殊性を再考する必要があります。
</div>
<button class="question-button" onclick="toggleAnswer('q2')">
Q2: なぜこの考えが革新的だったのですか?
</button>
<div id="q2" class="answer">
<strong>答え:</strong>当時は言語能力が人間を動物から区別する絶対的な特徴と考えられていました。ダーウィンがこの境界線に疑問を呈したことで、人間の「特別性」に対する根本的な見直しが始まりました。
</div>
<button class="question-button" onclick="toggleAnswer('q3')">
Q3: 現代の研究との関連は?
</button>
<div id="q3" class="answer">
<strong>答え:</strong>ダーウィンの予想は現代の動物行動学や認知科学によって証明されています。動物のコミュニケーション能力の研究は、ダーウィンの洞察を出発点として大きく発展しました。
</div>
</div>
</div>
<div class="footer">
<p>学習用教材 - ダーウィン『人間の由来』(1871年)より</p>
</div>
</div>
<script>
function toggleAnswer(id) {
const answer = document.getElementById(id);
if (answer.style.display === 'none' || answer.style.display === '') {
answer.style.display = 'block';
answer.style.animation = 'fadeInUp 0.5s ease forwards';
} else {
answer.style.display = 'none';
}
}
// スムーズなスクロール効果
document.addEventListener('DOMContentLoaded', function() {
const cards = document.querySelectorAll('.content-card');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = '1';
entry.target.style.transform = 'translateY(0)';
}
});
}, {
threshold: 0.1
});
cards.forEach(card => {
observer.observe(card);
});
});
</script>
</body>
</html>

参考文献
- Darwin, C. (1871). The descent of man, and Selection in relation to sex. https://www.gutenberg.org/cache/epub/2300/pg2300-images.html#link2HCH0003